问题
Does anyone create a table with TableRowInkWell?
I wanted a table with clickable row on the left and unclickable row on the right.
Are there any example for creating a nice table?
回答1:
You can only use TableRowInkWell
inside the TableRow
or TableCell
for example:
Table(
border: TableBorder.all(),
children: [
TableRow(children: [
///Like this one*******
TableRowInkWell(
onTap: (){},
child: Column(children: [
Icon(
Icons.account_box,
size: iconSize,
),
Text('My Account'),
]),
),
Column(children: [
Icon(
Icons.settings,
size: iconSize,
),
Text('Settings')
]),
]),
],
)
来源:https://stackoverflow.com/questions/49677189/how-to-use-tablerowinkwell-inside-table-in-flutter