demo_message_component.dart 680 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * fluro
  3. * A Posse Production
  4. * http://goposse.com
  5. * Copyright (c) 2018 Posse Productions LLC. All rights reserved.
  6. * See LICENSE for distribution and usage details.
  7. */
  8. import 'package:flutter/material.dart';
  9. class DemoMessageComponent extends StatelessWidget {
  10. DemoMessageComponent(
  11. {@required this.message, this.color = const Color(0xFFFFFFFF)});
  12. final String message;
  13. final Color color;
  14. @override
  15. Widget build(BuildContext context) {
  16. return new Material(
  17. color: this.color,
  18. child: new Center(
  19. child: new Text(
  20. message,
  21. style: new TextStyle(
  22. fontFamily: "Lazer84",
  23. ),
  24. )),
  25. );
  26. }
  27. }