make loader center

merge-update-with-lab-changes
Elham Rababah 5 years ago
parent 042de21831
commit fa88e9055f

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

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

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

Loading…
Cancel
Save