62 lines
1.7 KiB
Dart
62 lines
1.7 KiB
Dart
/*
|
|
* fluro
|
|
* A Posse Production
|
|
* http://goposse.com
|
|
* Copyright (c) 2017 Posse Productions LLC. All rights reserved.
|
|
* See LICENSE for distribution and usage details.
|
|
*/
|
|
import '../../helpers/color_helpers.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class DemoSimpleComponent extends StatelessWidget {
|
|
|
|
DemoSimpleComponent({String message = "Testing", Color color = const Color(0xFFFFFFFF)})
|
|
: this.message = message,
|
|
this.color = color;
|
|
|
|
final String message;
|
|
final Color color;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new Material(
|
|
color: color,
|
|
child: new Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
new Image(
|
|
image: new AssetImage("assets/images/acc_boom.png"),
|
|
color: ColorHelpers.blackOrWhiteContrastColor(color),
|
|
width: 350.0,
|
|
),
|
|
new Padding(
|
|
padding: new EdgeInsets.only(left: 50.0, right: 50.0, top: 15.0),
|
|
child: new Text(
|
|
message,
|
|
textAlign: TextAlign.center,
|
|
style: new TextStyle(
|
|
color: ColorHelpers.blackOrWhiteContrastColor(color),
|
|
height: 2.0,
|
|
),
|
|
),
|
|
),
|
|
new Padding(
|
|
padding: new EdgeInsets.only(top: 15.0),
|
|
child: new FlatButton(
|
|
onPressed: () {
|
|
Navigator.pop(context);
|
|
},
|
|
child: new Text(
|
|
"OK",
|
|
style: new TextStyle(
|
|
fontSize: 18.0,
|
|
color: ColorHelpers.blackOrWhiteContrastColor(color),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |