2017-05-28 13:13:36 -04:00
|
|
|
/*
|
|
|
|
* fluro
|
|
|
|
* A Posse Production
|
|
|
|
* http://goposse.com
|
2018-01-17 00:12:32 -05:00
|
|
|
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
2017-05-28 13:13:36 -04:00
|
|
|
* See LICENSE for distribution and usage details.
|
|
|
|
*/
|
2018-03-12 22:46:27 -04:00
|
|
|
import 'package:flutter/foundation.dart';
|
2017-05-28 13:13:36 -04:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class DemoMessageComponent extends StatelessWidget {
|
|
|
|
|
|
|
|
DemoMessageComponent({@required this.message, this.color = const Color(0xFFFFFFFF)});
|
|
|
|
|
|
|
|
final String message;
|
|
|
|
final Color color;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return new Material(
|
|
|
|
color: this.color,
|
|
|
|
child: new Center(
|
|
|
|
child: new Text(
|
|
|
|
message,
|
|
|
|
style: new TextStyle(
|
|
|
|
fontFamily: "Lazer84",
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|