Answers for "flutter expanded and flexible"

1

flutter expanded flex

Row(
          children: [
            Expanded(
              flex: 1,
              child: Container(
                height: 100.0,
                color: Colors.red,
                width: 100.0,
              ),
            ),
            Expanded(
              flex: 2,
              child: Container(
                height: 100.0,
                color: Colors.green,
                width: 100.0,
              ),
            ),
            Container(
              height: 100.0,
              color: Colors.blue,
              width: 100.0,
            ),
          ],
        )
Posted by: Guest on August-30-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language