make loader center

fix_login
Elham Rababah 5 years ago
parent 042de21831
commit fa88e9055f

@ -25,6 +25,7 @@ class MedicineSearch extends StatelessWidget {
AppScaffold( AppScaffold(
baseViewModel: model, baseViewModel: model,
appBarTitle: TranslationBase.of(context).searchMedicine, appBarTitle: TranslationBase.of(context).searchMedicine,
isShowAppBar: true,
body: Container( body: Container(
height: SizeConfig.screenHeight, height: SizeConfig.screenHeight,
child: Column( child: Column(

@ -32,7 +32,7 @@ class _GifLoaderContainerState extends State<GifLoaderContainer>
return Center( return Center(
//progress-loading.gif //progress-loading.gif
child: Container( child: Container(
margin: EdgeInsets.only(bottom: 40), // margin: EdgeInsets.only(bottom: 40),
child: GifImage( child: GifImage(
controller: controller1, controller: controller1,
image: AssetImage( image: AssetImage(

@ -42,14 +42,18 @@ class _NetworkBaseViewState extends State<NetworkBaseView>{
return widget.child; return widget.child;
break; break;
case ViewState.Busy: case ViewState.Busy:
return Stack( return Container(
children: [ height: MediaQuery.of(context).size.height,
Container(
height: MediaQuery.of(context).size.height, child: Stack(
color: Colors.grey.withOpacity(0.6), children: [
), Container(
GifLoaderContainer() color: Colors.grey.withOpacity(0.6),
], ),
Container(child: GifLoaderContainer(), margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.height * 0.09))
],
),
); );
break; break;
case ViewState.Error: case ViewState.Error:

Loading…
Cancel
Save