mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
49 lines
1.1 KiB
Dart
49 lines
1.1 KiB
Dart
/*
|
|
* 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({
|
|
super.key,
|
|
required this.rows,
|
|
this.rowSpacing = 10.0,
|
|
this.shrinkWrap = false,
|
|
});
|
|
|
|
final List<Widget> rows;
|
|
final double rowSpacing;
|
|
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],
|
|
],
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|