1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-11 08:05:43 +01:00
lemmur-app-android/lib/widgets/info_table_popup.dart
2021-01-16 23:33:11 +01:00

22 lines
530 B
Dart

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