|
|
|
|
@ -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,)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|