Pass wallet type when navigating

Fix UI padding
This commit is contained in:
OmarHatem 2022-10-05 20:07:16 +02:00
parent 299df3c087
commit 3c04bd9aa5
2 changed files with 4 additions and 3 deletions

View file

@ -50,7 +50,7 @@ class _AdvancedPrivacySettingsBodyState
return Container(
padding: EdgeInsets.only(top: 24),
child: ScrollableWithBottomSection(
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
contentPadding: EdgeInsets.only(bottom: 24),
content: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
@ -67,7 +67,7 @@ class _AdvancedPrivacySettingsBodyState
builder: (_) {
if (privacySettingsViewModel.addCustomNode) {
return Padding(
padding: EdgeInsets.only(top: 24),
padding: EdgeInsets.only(left: 24, right: 24, top: 24),
child: NodeForm(
formKey: _formKey,
nodeViewModel: nodeViewModel,

View file

@ -216,7 +216,8 @@ class _WalletNameFormState extends State<WalletNameForm> {
const SizedBox(height: 25),
GestureDetector(
onTap: () {
Navigator.of(context).pushNamed(Routes.privacySettings);
Navigator.of(context)
.pushNamed(Routes.privacySettings, arguments: _walletNewVM.type);
},
child: Text(S.of(context).advanced_privacy_settings),
),