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

32 lines
673 B
Dart

/*
* fluro
* Created by Yakka
* https://theyakka.com
*
* Copyright (c) 2019 Yakka, LLC. All rights reserved.
* See LICENSE for distribution and usage details.
*/
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",
),
)),
);
}
}