|
|
|
@ -61,6 +61,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
}
|
|
|
|
|
_isInit = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BuildContext myContext;
|
|
|
|
|
|
|
|
|
|
GlobalKey _one = GlobalKey();
|
|
|
|
@ -101,7 +102,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
alignment: projectsProvider.isArabic
|
|
|
|
|
? Alignment.topRight
|
|
|
|
|
: Alignment.topLeft,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
@ -112,6 +115,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
showCupertinoPicker(
|
|
|
|
|
decKey: '',
|
|
|
|
|
context: context,
|
|
|
|
|
actionList: projectsProvider.clinicList);
|
|
|
|
|
},
|
|
|
|
@ -310,7 +314,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
TranslationBase.of(context).patientServices,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
alignment: projectsProvider.isArabic
|
|
|
|
|
? Alignment.topRight
|
|
|
|
|
: Alignment.topLeft,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
@ -538,19 +544,17 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
CupertinoButton(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Cancel'.toUpperCase(),
|
|
|
|
|
// style: TextStyle(context)
|
|
|
|
|
),
|
|
|
|
|
child: Text(TranslationBase.of(context).cancel
|
|
|
|
|
// style: TextStyle(context)
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
CupertinoButton(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Done'.toUpperCase(),
|
|
|
|
|
// style: textStyle(context),
|
|
|
|
|
),
|
|
|
|
|
child: Text(TranslationBase.of(context).done
|
|
|
|
|
// style: textStyle(context),
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
// onSelectFun(cupertinoPickerIndex);
|
|
|
|
@ -564,14 +568,19 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
color: Color(0xfff7f7f7),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: actionList
|
|
|
|
|
.map((e) => Container(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () =>
|
|
|
|
|
changeClinic(e.clinicID, context),
|
|
|
|
|
child: Text(
|
|
|
|
|
e.clinicName,
|
|
|
|
|
style: TextStyle(fontSize: 15),
|
|
|
|
|
)),
|
|
|
|
|
.map((e) => Flexible(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () =>
|
|
|
|
|
changeClinic(e.clinicID, context),
|
|
|
|
|
child: Text(
|
|
|
|
|
e.clinicName ?? 'asd',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.textMultiplier *
|
|
|
|
|
1.9),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
))
|
|
|
|
|
.toList(),
|
|
|
|
|
))
|
|
|
|
|