small fixes

merge-requests/901/head
Elham Rababh 4 years ago
parent bfd86f533a
commit d1060ba27a

@ -711,6 +711,8 @@ const Map<String, Map<String, String>> localizedValues = {
"special": {"en": "Special", "ar": "خاص"},
"allClinic": {"en": "All Clinics", "ar": "جميع العيادات"} ,
"operationReports": {"en": "Operation Reports", "ar": "تقارير العملية"},
"reports": {"en": "Reports", "ar": "تقارير "},
"operation": {"en": "Operation", "ar": " العملية"},
"registerNewPatient": {"en": "Register\nNew Patient", "ar": "تسجيل\n مريض جديد"},
"registeraPatient": {"en": "Register a Patient", "ar": "تسجيل المريض"},
"occupation": {"en": "Occupation", "ar": "مهنة"},

@ -67,14 +67,40 @@ class _ProgressNoteState extends State<OperationReportScreen> {
),
body: Container(
color: Colors.grey[200],
child: Column(
children: <Widget>[
model.reservationList == null ||
child:model.reservationList == null ||
model.reservationList.length == 0
? Center(
child: ErrorMessage(
error: TranslationBase.of(context).noDataAvailable, ),
): Expanded(
): Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
Row(
children: [
AppText(
TranslationBase.of(context).operation,
fontSize: 15.0,
fontWeight: FontWeight.w600,
fontFamily: 'Poppins',
),
],
),
Row(
children: [
AppText(
TranslationBase.of(context).reports,
fontSize: 25.0,
fontWeight: FontWeight.w700,
),
],
),
],
),
),
Expanded(
child: Container(
child: ListView.builder(
itemCount: model.reservationList.length,

@ -213,6 +213,8 @@ class TranslationBase {
String get progressNote => localizedValues['progressNote'][locale.languageCode];
String get operationReports => localizedValues['operationReports'][locale.languageCode];
String get reports => localizedValues['reports'][locale.languageCode];
String get operation => localizedValues['operation'][locale.languageCode];
String get progress => localizedValues['progress'][locale.languageCode];

Loading…
Cancel
Save