fix padding on NewWalletTypePage (#3333)

malik1004x committed Jun 13, 2026 at 11:34 UTC dbbd06aa564f5efc7de6e7d0ada818846d946e52
1 file changed +63 -59
lib/src/screens/new_wallet/new_wallet_type_page.dart
+63 -59
@@ -135,69 +135,73 @@ class WalletTypeFormState extends State<WalletTypeForm> {
135 fontSize: 14,
136 ),
137 ),
138 - Flexible(
139 - child: Padding(
140 - padding: const EdgeInsets.only(left: 18, right: 18, bottom: 12),
141 - child: Container(
142 - decoration: BoxDecoration(
143 - color: Theme.of(context).colorScheme.surfaceContainer,
144 - borderRadius: BorderRadius.circular(18),
145 - ),
146 - child: ListView.separated(
147 - key: const ValueKey('new_wallet_type_scrollable_key'),
148 - itemCount: filteredTypes.length,
149 - shrinkWrap: true,
150 - itemBuilder: (context, index) {
151 - final item = filteredTypes[index];
152 -
153 - return GestureDetector(
154 - key: ValueKey('new_wallet_type_${item.name}_button_key'),
155 - behavior: HitTestBehavior.opaque,
156 - onTap: () {
157 - onTypeSelected(item);
158 - },
159 - child: SizedBox(
160 - height: 48,
161 - child: Padding(
162 - padding: const EdgeInsets.symmetric(horizontal: 12.0),
163 - child: Row(
164 - mainAxisAlignment: MainAxisAlignment.spaceBetween,
165 - children: [
166 - Row(
167 - children: [
168 - CakeImageWidget(
169 - height: 24,
170 - width: 24,
171 - imageUrl: getCryptoCurrencyIconForWalletListItem(item),
172 - ),
173 - const SizedBox(width: 12),
174 - Text(walletTypeToDisplayName(item)),
175 - const SizedBox(width: 4),
176 - Text(
177 - walletTypeToDisplayTicker(item),
178 - style: TextStyle(
179 - color: Theme.of(context).colorScheme.onSurfaceVariant,
138 + Expanded(
139 + child: SingleChildScrollView(
140 + child: Padding(
141 + padding: const EdgeInsets.only(left: 18, right: 18, bottom: 12),
142 + child: Container(
143 + decoration: BoxDecoration(
144 + color: Theme.of(context).colorScheme.surfaceContainer,
145 + borderRadius: BorderRadius.circular(18),
146 + ),
147 + child: ListView.separated(
148 + key: const ValueKey('new_wallet_type_scrollable_key'),
149 + itemCount: filteredTypes.length,
150 + shrinkWrap: true,
151 + physics: NeverScrollableScrollPhysics(),
152 + padding: EdgeInsets.zero,
153 + itemBuilder: (context, index) {
154 + final item = filteredTypes[index];
155 +
156 + return GestureDetector(
157 + key: ValueKey('new_wallet_type_${item.name}_button_key'),
158 + behavior: HitTestBehavior.opaque,
159 + onTap: () {
160 + onTypeSelected(item);
161 + },
162 + child: SizedBox(
163 + height: 48,
164 + child: Padding(
165 + padding: const EdgeInsets.symmetric(horizontal: 12.0),
166 + child: Row(
167 + mainAxisAlignment: MainAxisAlignment.spaceBetween,
168 + children: [
169 + Row(
170 + children: [
171 + CakeImageWidget(
172 + height: 24,
173 + width: 24,
174 + imageUrl: getCryptoCurrencyIconForWalletListItem(item),
175 ),
181 - )
182 - ],
183 - ),
184 - CakeImageWidget(
185 - imageUrl: "assets/new-ui/arrow_forward.svg",
186 - height: 16,
187 - colorFilter: ColorFilter.mode(
188 - Theme.of(context).colorScheme.onSurfaceVariant,
189 - BlendMode.srcIn,
176 + const SizedBox(width: 12),
177 + Text(walletTypeToDisplayName(item)),
178 + const SizedBox(width: 4),
179 + Text(
180 + walletTypeToDisplayTicker(item),
181 + style: TextStyle(
182 + color: Theme.of(context).colorScheme.onSurfaceVariant,
183 + ),
184 + )
185 + ],
186 ),
191 - )
192 - ],
187 + CakeImageWidget(
188 + imageUrl: "assets/new-ui/arrow_forward.svg",
189 + height: 16,
190 + colorFilter: ColorFilter.mode(
191 + Theme.of(context).colorScheme.onSurfaceVariant,
192 + BlendMode.srcIn,
193 + ),
194 + )
195 + ],
196 + ),
197 ),
198 ),
195 - ),
196 - );
197 - },
198 - separatorBuilder: (context, index) => Container(
199 - height: 1,
200 - color: Theme.of(context).colorScheme.surfaceContainerHigh,
199 + );
200 + },
201 + separatorBuilder: (context, index) => Container(
202 + height: 1,
203 + color: Theme.of(context).colorScheme.surfaceContainerHigh,
204 + ),
205 ),
206 ),
207 ),