fix loading issue

html_editor
Elham Rababah 5 years ago
parent 1bc01e0ad1
commit 3557e87b75

@ -108,7 +108,8 @@ class _LiveCarePatientScreenState extends State<LiveCarePatientScreen> {
])), ])),
), ),
), ),
Expanded( model.state == ViewState.Idle
? Expanded(
child: Container( child: Container(
child: model.filterData.isEmpty child: model.filterData.isEmpty
? Center( ? Center(
@ -148,7 +149,8 @@ class _LiveCarePatientScreenState extends State<LiveCarePatientScreen> {
), ),
); );
})), })),
), ) : Expanded(
child: AppLoaderWidget(containerColor: Colors.transparent,)),
], ],
), ),
), ),

@ -24,7 +24,7 @@ class _AppLoaderWidgetState extends State<AppLoaderWidget> {
child: Stack( child: Stack(
children: [ children: [
Container( Container(
color: Colors.grey.withOpacity(0.6), color: widget.containerColor??Colors.grey.withOpacity(0.6),
), ),
Container(child: GifLoaderContainer(), margin: EdgeInsets.only( Container(child: GifLoaderContainer(), margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.height * 0.09)) bottom: MediaQuery.of(context).size.height * 0.09))

Loading…
Cancel
Save