fix loading issue

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

@ -108,18 +108,19 @@ class _LiveCarePatientScreenState extends State<LiveCarePatientScreen> {
])),
),
),
Expanded(
child: Container(
child: model.filterData.isEmpty
? Center(
child: ErrorMessage(
error: TranslationBase.of(context)
.youDontHaveAnyPatient,
),
)
: ListView.builder(
scrollDirection: Axis.vertical,
shrinkWrap: true,
model.state == ViewState.Idle
? Expanded(
child: Container(
child: model.filterData.isEmpty
? Center(
child: ErrorMessage(
error: TranslationBase.of(context)
.youDontHaveAnyPatient,
),
)
: ListView.builder(
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: model.filterData.length,
itemBuilder: (BuildContext ctxt, int index) {
return Padding(
@ -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(
children: [
Container(
color: Colors.grey.withOpacity(0.6),
color: widget.containerColor??Colors.grey.withOpacity(0.6),
),
Container(child: GifLoaderContainer(), margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.height * 0.09))

Loading…
Cancel
Save