Fix a DataTable crash and improve some docs (#100959)

This commit is contained in:
xubaolin
2022-04-19 19:19:08 +08:00
committed by GitHub
parent fd360c4a1d
commit ef5a6da35a
4 changed files with 68 additions and 18 deletions

View File

@@ -33,21 +33,27 @@ class MyStatelessWidget extends StatelessWidget {
return DataTable(
columns: const <DataColumn>[
DataColumn(
label: Text(
'Name',
style: TextStyle(fontStyle: FontStyle.italic),
label: Expanded(
child: Text(
'Name',
style: TextStyle(fontStyle: FontStyle.italic),
),
),
),
DataColumn(
label: Text(
'Age',
style: TextStyle(fontStyle: FontStyle.italic),
label: Expanded(
child: Text(
'Age',
style: TextStyle(fontStyle: FontStyle.italic),
),
),
),
DataColumn(
label: Text(
'Role',
style: TextStyle(fontStyle: FontStyle.italic),
label: Expanded(
child: Text(
'Role',
style: TextStyle(fontStyle: FontStyle.italic),
),
),
),
],