wallets table scrolling and spacing fixes

This commit is contained in:
julian 2022-09-19 14:39:18 -06:00
parent 1d3955cc97
commit 79cc82f379
3 changed files with 32 additions and 6 deletions

View file

@ -29,8 +29,16 @@ class CoinWalletsTable extends ConsumerWidget {
child: Column(
children: [
for (int i = 0; i < walletIds.length; i++)
WalletInfoRow(
walletId: walletIds[i],
Column(
children: [
if (i != 0)
const SizedBox(
height: 32,
),
WalletInfoRow(
walletId: walletIds[i],
),
],
),
],
),

View file

@ -60,7 +60,9 @@ class _MyWalletsState extends State<MyWallets> {
const SizedBox(
height: 20,
),
const WalletSummaryTable(),
const Expanded(
child: WalletSummaryTable(),
),
],
),
);

View file

@ -2,9 +2,14 @@ import 'package:flutter/material.dart';
import 'package:stackwallet/widgets/table_view/table_view_row.dart';
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 double rowSpacing;
@override
State<TableView> createState() => _TableViewState();
@ -13,8 +18,19 @@ class TableView extends StatefulWidget {
class _TableViewState extends State<TableView> {
@override
Widget build(BuildContext context) {
return Column(
children: widget.rows,
return ListView(
children: [
for (int i = 0; i < widget.rows.length; i++)
Column(
children: [
if (i != 0)
SizedBox(
height: widget.rowSpacing,
),
widget.rows[i],
],
)
],
);
}
}