CWA-209 | reduced height of subaddress tile in the receive page
Oleksandr Sobol committed
May 7, 2020 at 20:21 UTC
4b5a2f8b060b6ab1c89103db79e8b0ae02a806c7
1 file changed
+10
-30
lib/src/screens/receive/receive_page.dart
+10
-30
@@ -254,7 +254,6 @@ class ReceiveBodyState extends State<ReceiveBody> {
254
walletStore.subaddress.address == subaddress.address;
255
256
final label = subaddress.label;
257
- final address = subaddress.address;
257
258
return InkWell(
259
onTap: () => walletStore.setSubaddress(subaddress),
@@ -263,36 +262,17 @@ class ReceiveBodyState extends State<ReceiveBody> {
262
padding: EdgeInsets.only(
263
left: 24,
264
right: 24,
266
- top: 32,
267
- bottom: 32
265
+ top: 28,
266
+ bottom: 28
267
+ ),
268
+ child: Text(
269
+ label,
270
+ style: TextStyle(
271
+ fontSize: 18,
272
+ fontWeight: FontWeight.bold,
273
+ color: PaletteDark.walletCardText
274
+ ),
275
),
269
- child: Column(
270
- mainAxisAlignment: MainAxisAlignment.start,
271
- crossAxisAlignment: CrossAxisAlignment.start,
272
- children: <Widget>[
273
- label.isNotEmpty
274
- ? Text(
275
- label,
276
- style: TextStyle(
277
- fontSize: 14,
278
- color: PaletteDark.walletCardText
279
- ),
280
- )
281
- : Offstage(),
282
- Padding(
283
- padding: label.isNotEmpty
284
- ? EdgeInsets.only(top: 10)
285
- : EdgeInsets.only(top: 0),
286
- child: Text(
287
- address,
288
- style: TextStyle(
289
- fontSize: 16,
290
- fontWeight: FontWeight.w600,
291
- color: Colors.white
292
- ),
293
- ),
294
- )
295
- ]),
276
),
277
);
278
}