/* * router * A Posse Production * http://goposse.com * Copyright (c) 2017 Posse Productions LLC. All rights reserved. * See LICENSE for distribution and usage details. */ import 'package:flutter/material.dart'; import 'package:router_example/helpers/color_helpers.dart'; class TestScreen01 extends StatelessWidget { TestScreen01({String message = "Testing", Color color = const Color(0xFFFFFFFF)}) : this.message = message, this.color = color; final String message; final Color color; @override Widget build(BuildContext context) { return new Material( color: color, child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: [ new Image( image: new AssetImage("assets/images/acc_boom.png"), color: ColorHelpers.blackOrWhiteContrastColor(color), width: 350.0, ), new Padding( padding: new EdgeInsets.only(left: 50.0, right: 50.0, top: 15.0), child: new Text( message, textAlign: TextAlign.center, style: new TextStyle( color: ColorHelpers.blackOrWhiteContrastColor(color), height: 2.0, ), ), ), new Padding( padding: new EdgeInsets.only(top: 15.0), child: new FlatButton( onPressed: () { Navigator.pop(context); }, child: new Text( "OK", style: new TextStyle( fontSize: 18.0, color: ColorHelpers.blackOrWhiteContrastColor(color), ), ), ), ), ], ), ); } }