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(
|
||||
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],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -60,7 +60,9 @@ class _MyWalletsState extends State<MyWallets> {
|
|||
const SizedBox(
|
||||
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';
|
||||
|
||||
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],
|
||||
],
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue