mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
wallets table scrolling and spacing fixes
This commit is contained in:
parent
1d3955cc97
commit
79cc82f379
3 changed files with 32 additions and 6 deletions
|
@ -29,8 +29,16 @@ class CoinWalletsTable extends ConsumerWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
for (int i = 0; i < walletIds.length; i++)
|
for (int i = 0; i < walletIds.length; i++)
|
||||||
WalletInfoRow(
|
Column(
|
||||||
walletId: walletIds[i],
|
children: [
|
||||||
|
if (i != 0)
|
||||||
|
const SizedBox(
|
||||||
|
height: 32,
|
||||||
|
),
|
||||||
|
WalletInfoRow(
|
||||||
|
walletId: walletIds[i],
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -60,7 +60,9 @@ class _MyWalletsState extends State<MyWallets> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
const WalletSummaryTable(),
|
const Expanded(
|
||||||
|
child: WalletSummaryTable(),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,9 +2,14 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/widgets/table_view/table_view_row.dart';
|
import 'package:stackwallet/widgets/table_view/table_view_row.dart';
|
||||||
|
|
||||||
class TableView extends StatefulWidget {
|
class TableView extends StatefulWidget {
|
||||||
const TableView({Key? key, required this.rows}) : super(key: key);
|
const TableView({
|
||||||
|
Key? key,
|
||||||
|
required this.rows,
|
||||||
|
this.rowSpacing = 10.0,
|
||||||
|
}) : super(key: key);
|
||||||
|
|
||||||
final List<TableViewRow> rows;
|
final List<TableViewRow> rows;
|
||||||
|
final double rowSpacing;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<TableView> createState() => _TableViewState();
|
State<TableView> createState() => _TableViewState();
|
||||||
|
@ -13,8 +18,19 @@ class TableView extends StatefulWidget {
|
||||||
class _TableViewState extends State<TableView> {
|
class _TableViewState extends State<TableView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return ListView(
|
||||||
children: widget.rows,
|
children: [
|
||||||
|
for (int i = 0; i < widget.rows.length; i++)
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
if (i != 0)
|
||||||
|
SizedBox(
|
||||||
|
height: widget.rowSpacing,
|
||||||
|
),
|
||||||
|
widget.rows[i],
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue