|
|
|
|
@ -1,9 +1,12 @@
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/PatientSearchViewModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/patient_card/PatientCard.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_loader_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/errors/error_message.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_container.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
@ -59,7 +62,7 @@ class _InPatientPageState extends State<InPatientPage> {
|
|
|
|
|
model.filterSearchResults(value);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
model.filteredInPatientItems.length > 0
|
|
|
|
|
model.state == ViewState.Idle?model.filteredInPatientItems.length > 0
|
|
|
|
|
? Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0),
|
|
|
|
|
@ -154,6 +157,13 @@ class _InPatientPageState extends State<InPatientPage> {
|
|
|
|
|
error:
|
|
|
|
|
TranslationBase.of(context).noDataAvailable)),
|
|
|
|
|
),
|
|
|
|
|
): Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 300,
|
|
|
|
|
width: 300,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
"assets/images/progress-loading-red.gif"),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|