|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient_muse/PatientSearchRequestModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/authentication_view_model.dart';
|
|
|
|
|
@ -48,7 +49,6 @@ class HomeScreen extends StatefulWidget {
|
|
|
|
|
class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
bool isLoading = false;
|
|
|
|
|
ProjectViewModel projectsProvider;
|
|
|
|
|
var _isInit = true;
|
|
|
|
|
DoctorProfileModel profile;
|
|
|
|
|
bool isExpanded = false;
|
|
|
|
|
bool isInpatient = false;
|
|
|
|
|
@ -87,7 +87,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
child: Stack(children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Image.asset('assets/images/menu.png',
|
|
|
|
|
height: 50, width: 50),
|
|
|
|
|
width:SizeConfig.widthMultiplier* 7,),
|
|
|
|
|
iconSize: 18,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
onPressed: () => Scaffold.of(context).openDrawer(),
|
|
|
|
|
@ -112,7 +112,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
? projectsProvider
|
|
|
|
|
.doctorClinicsList[0].clinicID
|
|
|
|
|
: clinicId,
|
|
|
|
|
iconSize: 25,
|
|
|
|
|
iconSize: SizeConfig.widthMultiplier* 7,
|
|
|
|
|
elevation: 16,
|
|
|
|
|
selectedItemBuilder:
|
|
|
|
|
(BuildContext context) {
|
|
|
|
|
@ -122,7 +122,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
return Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.end,
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
@ -159,8 +159,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
fontSize:
|
|
|
|
|
projectsProvider
|
|
|
|
|
.isArabic
|
|
|
|
|
? 10
|
|
|
|
|
: 11,
|
|
|
|
|
? SizeConfig.widthMultiplier* 3.5
|
|
|
|
|
: SizeConfig.widthMultiplier* 4,
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
@ -169,8 +169,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
AppText(item.clinicName,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth(width: MediaQuery.of(context).size.width * .6) * 5,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textOverflow:TextOverflow.ellipsis ,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
textAlign: TextAlign.end),
|
|
|
|
|
@ -264,8 +265,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
height: SizeConfig.heightMultiplier *1, ),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
@ -273,30 +273,27 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).patients,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth()* 3,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontHeight: .5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).services,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth()* 6,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
height: SizeConfig.heightMultiplier *1,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 120,
|
|
|
|
|
height: SizeConfig.heightMultiplier* 18,
|
|
|
|
|
child: ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: [
|
|
|
|
|
...homePatientsCardsWidget(model),
|
|
|
|
|
])),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|