import 'package:aitrainer_app/widgets/app_bar_min.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class LoadingScreenMain extends StatelessWidget { @override Widget build(BuildContext context) { final Image _backgroundImage = Image.asset( 'asset/image/WT01_loading_layers.png', fit: BoxFit.cover, height: double.infinity, width: double.infinity, alignment: Alignment.center, ); return Scaffold( backgroundColor: Colors.white, appBar: AppBarMin(), body: new InkWell( child: new Stack( fit: StackFit.expand, children: [ /// Paint the area where the inner widgets are loaded with the /// background to keep consistency with the screen background new Container( decoration: BoxDecoration(color: Colors.white), ), /// Render the background image new Container( child: SafeArea( bottom: false, child: _backgroundImage, )), /// Render the Title widget, loader and messages below each other new Column( mainAxisAlignment: MainAxisAlignment.center, children: [ new Expanded( flex: 3, child: new Container( child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: [ new Padding( padding: const EdgeInsets.only(top: 30.0), ), ], )), ), Expanded( flex: 1, child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ /// Loader Animation Widget CircularProgressIndicator( valueColor: new AlwaysStoppedAnimation(Colors.lightGreenAccent), ), Padding( padding: const EdgeInsets.only(top: 20.0), ), //Text(getMessage, style: widget.styleTextUnderTheLoader), ], ), ), ], ), ], ), ), ); } }