change the font size in patient card, fix the Drawer issue and change the app name in android

merge-requests/416/head
Mohammad Aljammal 5 years ago
parent 3d8a118087
commit da370fc60a

@ -15,7 +15,7 @@
android:name="io.flutter.app.FlutterApplication"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="doctor_app_flutter">
android:label="Doctors app">
<activity android:name=".ui.VideoCallActivity"></activity>
<activity
android:name=".MainActivity"

@ -1385,7 +1385,7 @@ class DashboardItem extends StatelessWidget {
height: height != null
? height
: MediaQuery.of(context).orientation == Orientation.portrait
? MediaQuery.of(context).size.height * 0.16
? MediaQuery.of(context).size.height * 0.18
: MediaQuery.of(context).size.height * 0.36,
decoration: BoxDecoration(
color: !hasBorder

@ -369,7 +369,7 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
'${TranslationBase.of(context).dr}$doctorName',
color: Colors.black,
fontWeight: FontWeight.w600,
fontSize: 14,
fontSize: 12,
),
if (orderNo != null && !isPrescriptions)
Row(
@ -377,10 +377,10 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
Texts(
'Order No: ',
color: Colors.grey[800],
fontSize: 14
fontSize: 12
),
Texts(
orderNo ?? '',fontSize: 14
orderNo ?? '',fontSize: 12
)
],
),
@ -390,11 +390,11 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
Texts(
'Invoice: ',
color: Colors.grey[800],
fontSize: 14
fontSize: 12
),
Texts(
invoiceNO,
fontSize: 14
fontSize: 12
)
],
),
@ -404,11 +404,11 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
Texts(
'Branch: ',
color: Colors.grey[800],
fontSize: 14
fontSize: 12
),
Texts(
branch?? '',
fontSize: 14
fontSize: 12
)
],
),
@ -418,11 +418,11 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
Texts(
'Clinic: ',
color: Colors.grey[800],
fontSize: 14
fontSize: 12
),
Texts(
clinic?? '',
fontSize: 14
fontSize: 12
)
],
),
@ -432,7 +432,7 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
child: Texts(
!isPrescriptions? 'Result Date: ': 'Prescriptions Date ',
color: Colors.grey[800],
fontSize: 14,
fontSize: 12,
),
),
Texts(
@ -495,5 +495,5 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
}
@override
Size get preferredSize => Size(double.maxFinite,280);
Size get preferredSize => Size(double.maxFinite,290);
}

@ -105,9 +105,11 @@ class DoctorCard extends StatelessWidget {
Texts(
'order No:',
color: Colors.grey[500],
fontSize: 14,
),
Texts(
orderNo ?? '',
fontSize: 14,
)
],
),
@ -116,10 +118,12 @@ class DoctorCard extends StatelessWidget {
children: <Widget>[
Texts(
'Invoice:',
fontSize: 14,
color: Colors.grey[500],
),
Texts(
invoiceNO,
fontSize: 14,
)
],
),
@ -129,9 +133,11 @@ class DoctorCard extends StatelessWidget {
Texts(
'Clinic: ',
color: Colors.grey[500],
fontSize: 14,
),
Texts(
clinic,
fontSize: 14,
)
],
),
@ -140,10 +146,12 @@ class DoctorCard extends StatelessWidget {
children: <Widget>[
Texts(
'Branch: ',
fontSize: 14,
color: Colors.grey[500],
),
Texts(
branch,
fontSize: 14,
)
],
)

@ -35,13 +35,13 @@ class _DrawerItemState extends State<DrawerItem> {
color: widget.color ?? Colors.black87,
size: SizeConfig.imageSizeMultiplier * 5,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Container(
width: MediaQuery.of(context).size.width *0.45,
child: Expanded(
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Container(
width: MediaQuery.of(context).size.width *0.45,
child: AppText(
widget.title,
marginLeft: 5,
@ -52,15 +52,15 @@ class _DrawerItemState extends State<DrawerItem> {
fontWeight: FontWeight.bold,
),
),
),
AppText(
widget.subTitle,
visibility: !widget.subTitle.isNullOrEmpty(),
color: widget.color ?? Colors.black,
marginLeft: 5,
fontSize: SizeConfig.textMultiplier * 2.5,
),
],
AppText(
widget.subTitle,
visibility: !widget.subTitle.isNullOrEmpty(),
color: widget.color ?? Colors.black,
marginLeft: 5,
fontSize: SizeConfig.textMultiplier * 2.5,
),
],
),
),
],
));

Loading…
Cancel
Save