stack_wallet/lib/widgets/table_view/table_view.dart

50 lines
1.1 KiB
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
import 'package:flutter/material.dart';
class TableView extends StatelessWidget {
const TableView({
Key? key,
required this.rows,
this.rowSpacing = 10.0,
2022-09-25 19:53:08 +00:00
this.shrinkWrap = false,
}) : super(key: key);
final List<Widget> rows;
final double rowSpacing;
2022-09-25 19:53:08 +00:00
final bool shrinkWrap;
//
// @override
// State<TableView> createState() => _TableViewState();
// }
//
// class _TableViewState extends State<TableView> {
@override
Widget build(BuildContext context) {
debugPrint("BUILD: $runtimeType");
return ListView(
shrinkWrap: shrinkWrap,
children: [
for (int i = 0; i < rows.length; i++)
Column(
children: [
if (i != 0)
SizedBox(
height: rowSpacing,
),
rows[i],
],
)
],
);
}
}