|
|
|
@ -169,29 +169,30 @@ class _MyVaccinesState extends State<MyVaccines> {
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
// height: 80.0,
|
|
|
|
|
child: Button(
|
|
|
|
|
disabled: true,
|
|
|
|
|
label: TranslationBase.of(context).checkVaccineAvailability,
|
|
|
|
|
backgroundColor: Color(0xff9EA3A4),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
Navigator.push(context, FadePage(page: MyVaccinesItemPage())),
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context, FadePage(page: MyVaccinesItemPage())),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if(projectViewModel.havePrivilege(27))
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
// height: 80.0,
|
|
|
|
|
child: SecondaryButton(
|
|
|
|
|
label: TranslationBase.of(context).sendEmail,
|
|
|
|
|
color: Color(0xffF62426),
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
disabled: model.vaccineList.length == 0,
|
|
|
|
|
loading: model.state == ViewState.BusyLocal,
|
|
|
|
|
onTap: () async {
|
|
|
|
|
model.sendEmail(
|
|
|
|
|
message:
|
|
|
|
|
TranslationBase.of(context).emailSentSuccessfully);
|
|
|
|
|
},
|
|
|
|
|
if (projectViewModel.havePrivilege(27))
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
// height: 80.0,
|
|
|
|
|
child: SecondaryButton(
|
|
|
|
|
label: TranslationBase.of(context).sendEmail,
|
|
|
|
|
color: Color(0xffF62426),
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
disabled: model.vaccineList.length == 0,
|
|
|
|
|
loading: model.state == ViewState.BusyLocal,
|
|
|
|
|
onTap: () async {
|
|
|
|
|
model.sendEmail(
|
|
|
|
|
message: TranslationBase.of(context)
|
|
|
|
|
.emailSentSuccessfully);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|