Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use TableRowInkWell inside Table in flutter?

Tags:

flutter

dart

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?

like image 497
Daniel Mana Avatar asked Apr 05 '18 16:04

Daniel Mana


1 Answers

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')
      ]),
    ]),
  ],
)
like image 190
SoloWolf93 Avatar answered Nov 14 '22 08:11

SoloWolf93