2020-10-26 18:47:34 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
void showInfoTablePopup(BuildContext context, Map<String, dynamic> table) {
|
|
|
|
showDialog(
|
|
|
|
context: context,
|
2021-01-16 23:33:11 +01:00
|
|
|
builder: (c) => SimpleDialog(
|
2020-10-26 18:47:34 +01:00
|
|
|
contentPadding: const EdgeInsets.symmetric(
|
|
|
|
horizontal: 20,
|
|
|
|
vertical: 15,
|
|
|
|
),
|
|
|
|
children: [
|
|
|
|
Table(
|
|
|
|
children: table.entries
|
2020-10-27 22:09:34 +01:00
|
|
|
.map((e) => TableRow(
|
|
|
|
children: [Text('${e.key}:'), Text(e.value.toString())]))
|
2020-10-26 18:47:34 +01:00
|
|
|
.toList(),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|