fluro/example/lib/components/demo/demo_message_component.dart

32 lines
730 B
Dart

/*
* fluro
* A Posse Production
* http://goposse.com
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
* See LICENSE for distribution and usage details.
*/
import 'package:flutter/foundation.dart';
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",
),
)
),
);
}
}