fix button

merge-update-with-lab-changes
Elham Rababh 5 years ago
parent b01961e45f
commit 8b8e239d3f

@ -224,10 +224,12 @@ class _AddBloodPressurePageState extends State<AddBloodPressurePage> {
bottomSheet: Container( bottomSheet: Container(
color: Colors.transparent, color: Colors.transparent,
width: double.infinity, width: double.infinity,
height: MediaQuery.of(context).size.width * 0.2, height: MediaQuery.of(context).size.height * 0.10,
child: Padding( child: FractionallySizedBox(
padding: const EdgeInsets.all(15.0), widthFactor: 0.9,
child: SecondaryButton( child: Column(
children: [
SecondaryButton(
loading: widget.model.state == ViewState.BusyLocal, loading: widget.model.state == ViewState.BusyLocal,
label: TranslationBase.of(context).save.toUpperCase(), label: TranslationBase.of(context).save.toUpperCase(),
textColor: Colors.white, textColor: Colors.white,
@ -258,6 +260,8 @@ class _AddBloodPressurePageState extends State<AddBloodPressurePage> {
}); });
} }
}), }),
],
),
), ),
), ),
); );

@ -275,9 +275,11 @@ class _AddBloodSugarPageState extends State<AddBloodSugarPage> {
bottomSheet: Container( bottomSheet: Container(
color: Colors.transparent, color: Colors.transparent,
width: double.infinity, width: double.infinity,
height: MediaQuery.of(context).size.width * 0.2, height: MediaQuery.of(context).size.height * 0.10,
child: Padding( child: Column(
padding: const EdgeInsets.all(15.0), children: [
FractionallySizedBox(
widthFactor: 0.9,
child: SecondaryButton( child: SecondaryButton(
label: TranslationBase.of(context).save.toUpperCase(), label: TranslationBase.of(context).save.toUpperCase(),
textColor: Colors.white, textColor: Colors.white,
@ -328,6 +330,8 @@ class _AddBloodSugarPageState extends State<AddBloodSugarPage> {
} }
}), }),
), ),
],
),
), ),
); );
} }

Loading…
Cancel
Save