Answers for "flutter row dynamic width"

1

size row to maximum flutter

// Set Expanded height to Row height

IntrinsicHeight(
        child: Row(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
          Expanded(
            child: Column(children: [
              Container(height: 120.0, color: Colors.yellow),
              Container(height: 100.0, color: Colors.cyan),
            ]),
          ),
          Expanded(child: Container(color: Colors.amber)),
        ]),
Posted by: Guest on September-22-2020
0

flutter table row height

//TableRow class in Flutter doesn't has height attribute. But the height of the TableRow is the maximum of the intrinsic height of all its children's.
//For example, you can has sizedBox classess for all TableCell classes inside the Table Row:

TableRow(
    children: [
        TableCell(
            child: SizedBox(height: 5,),
        ),
        TableCell(
            child: SizedBox(height: 5,),
	),
]),
Posted by: Guest on October-04-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language