fixed footer design.

merge-requests/1/merge
Fatimah Alshammari 3 years ago
parent 23110b792f
commit d74d8ff369

@ -373,28 +373,31 @@ else if(args['actionType']== "UPDATE") {
} }
footer() { footer() {
return Row( return Container(
mainAxisAlignment: MainAxisAlignment.center, color: MyColors.white,
children: [ child: Row(
Container( mainAxisAlignment: MainAxisAlignment.center,
color: MyColors.gradiantEndColor, children: [
margin: EdgeInsets.only(bottom: 20, top: 20), Container(
padding: EdgeInsets.only(left: 50, right: 50), color: MyColors.gradiantEndColor,
child: TextButton( margin: EdgeInsets.only(bottom: 20, top: 20),
style: TextButton.styleFrom( padding: EdgeInsets.only(left: 50, right: 50),
primary: MyColors.white, child: TextButton(
onSurface: MyColors.white, style: TextButton.styleFrom(
backgroundColor: MyColors.gradiantEndColor, primary: MyColors.white,
), onSurface: MyColors.white,
onPressed: () { backgroundColor: MyColors.gradiantEndColor,
submitUpdateForm(); ),
}, onPressed: () {
child: Text( submitUpdateForm();
LocaleKeys.next.tr(), },
style: TextStyle(fontStyle: FontStyle.normal, fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600), child: Text(
), LocaleKeys.next.tr(),
)), style: TextStyle(fontStyle: FontStyle.normal, fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
], ),
)),
],
),
); );
} }

@ -89,29 +89,32 @@ class _DeleteFamilyMemberState extends State<DeleteFamilyMember> {
} }
footer() { footer() {
return Row( return Container(
mainAxisAlignment: MainAxisAlignment.center, color: MyColors.white,
children: [ child: Row(
Container( mainAxisAlignment: MainAxisAlignment.center,
color: MyColors.gradiantEndColor, children: [
margin: EdgeInsets.only(bottom: 20, top: 20), Container(
padding: EdgeInsets.only(left: 50, right: 50), color: MyColors.gradiantEndColor,
child: TextButton( margin: EdgeInsets.only(bottom: 20, top: 20),
style: TextButton.styleFrom( padding: EdgeInsets.only(left: 50, right: 50),
primary: MyColors.white, child: TextButton(
onSurface: MyColors.white, style: TextButton.styleFrom(
backgroundColor: MyColors.gradiantEndColor, primary: MyColors.white,
), onSurface: MyColors.white,
onPressed: () { backgroundColor: MyColors.gradiantEndColor,
deleteFamilyMember(datePar); ),
onPressed: () {
deleteFamilyMember(datePar);
}, },
child: Text( child: Text(
LocaleKeys.next.tr(), LocaleKeys.next.tr(),
style: TextStyle(fontStyle: FontStyle.normal, fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600), style: TextStyle(fontStyle: FontStyle.normal, fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
), ),
)), )),
], ],
),
); );
} }

Loading…
Cancel
Save