add info table popup

This commit is contained in:
krawieck 2020-10-26 18:47:34 +01:00
parent bdf405dfa7
commit 53f19c5c57
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import 'package:flutter/material.dart';
void showInfoTablePopup(BuildContext context, Map<String, dynamic> table) {
showDialog(
context: context,
child: SimpleDialog(
contentPadding: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 15,
),
children: [
Table(
children: table.entries
.map((e) => TableRow(children: [Text(e.key), Text(e.value)]))
.toList(),
),
],
),
);
}