2017-05-28 13:13:36 -04:00
|
|
|
/*
|
|
|
|
* fluro
|
2018-10-25 13:48:02 -04:00
|
|
|
* Created by Yakka
|
|
|
|
* https://theyakka.com
|
|
|
|
*
|
2019-06-19 19:28:28 -04:00
|
|
|
* Copyright (c) 2019 Yakka, LLC. All rights reserved.
|
2017-05-28 13:13:36 -04:00
|
|
|
* See LICENSE for distribution and usage details.
|
|
|
|
*/
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class DemoMessageComponent extends StatelessWidget {
|
2018-07-27 21:15:51 -04:00
|
|
|
DemoMessageComponent(
|
|
|
|
{@required this.message, this.color = const Color(0xFFFFFFFF)});
|
2017-05-28 13:13:36 -04:00
|
|
|
|
|
|
|
final String message;
|
|
|
|
final Color color;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2019-07-17 23:19:56 -04:00
|
|
|
return Material(
|
2017-05-28 13:13:36 -04:00
|
|
|
color: this.color,
|
2019-07-17 23:19:56 -04:00
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
message,
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: "Lazer84",
|
|
|
|
),
|
2018-07-27 21:15:51 -04:00
|
|
|
),
|
2019-07-17 23:19:56 -04:00
|
|
|
),
|
2017-05-28 13:13:36 -04:00
|
|
|
);
|
|
|
|
}
|
2018-07-27 21:15:51 -04:00
|
|
|
}
|