fix table map display.

master
小赖 4 years ago
parent e403b62ec0
commit 503699ff65

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class TableView extends StatelessWidget { class TableView extends StatelessWidget {
final Map<String, dynamic> map; final Map map;
const TableView({Key key, @required this.map}) : super(key: key); const TableView({Key key, @required this.map}) : super(key: key);
Widget _buildTableTitle(String title) { Widget _buildTableTitle(String title) {
return Padding( return Padding(
@ -26,7 +26,7 @@ class TableView extends StatelessWidget {
..._map.entries ..._map.entries
.map((e) => TableRow( .map((e) => TableRow(
children: [ children: [
_buildTableTitle(e.key), _buildTableTitle(e.key.toString()),
_buildTableTitle(e.value.toString()), _buildTableTitle(e.value.toString()),
], ],
)) ))

Loading…
Cancel
Save