33 lines
673 B
Dart
33 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 Material(
|
|
color: this.color,
|
|
child: Center(
|
|
child: Text(
|
|
message,
|
|
style: TextStyle(
|
|
fontFamily: "Lazer84",
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|