Remove duplicated constrains

This commit is contained in:
OmarHatem 2023-02-15 23:50:15 +02:00
parent 8de9c80fe1
commit 5296a2118a
2 changed files with 30 additions and 37 deletions

View file

@ -91,8 +91,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
content: Center(
child: ConstrainedBox(
constraints:
BoxConstraints(maxWidth: ResponsiveLayoutUtil.kDesktopMaxWidthConstraint),
constraints: BoxConstraints(maxWidth: ResponsiveLayoutUtil.kDesktopMaxWidthConstraint),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
@ -197,9 +196,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
),
),
bottomSectionPadding: EdgeInsets.all(24),
bottomSection: ConstrainedBox(
constraints: BoxConstraints(maxWidth: ResponsiveLayoutUtil.kDesktopMaxWidthConstraint),
child: Column(
bottomSection: Column(
children: [
Observer(
builder: (context) {
@ -222,7 +219,6 @@ class _WalletNameFormState extends State<WalletNameForm> {
child: Text(S.of(context).advanced_privacy_settings),
),
],
),
)),
);
}

View file

@ -96,16 +96,13 @@ class WalletTypeFormState extends State<WalletTypeForm> {
),
),
bottomSectionPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
bottomSection: ConstrainedBox(
constraints: BoxConstraints(maxWidth: ResponsiveLayoutUtil.kDesktopMaxWidthConstraint),
child: PrimaryButton(
bottomSection: PrimaryButton(
onPressed: () => onTypeSelected(),
text: S.of(context).seed_language_next,
color: Theme.of(context).accentTextTheme.bodyText1!.color!,
textColor: Colors.white,
isDisabled: selected == null,
),
),
);
}