-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Closed
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
When using the Expanded widget inside a column with another widget it is taking up all the space, not just filling the available space as usual.
Simple build function for reproducing the problem:
Widget build(BuildContext context) {
return Scaffold(
key: _scaffoldKey,
appBar: AppBar(
title: const Text('Despesa'),
centerTitle: true,
),
body: Column(
children: <Widget>[
Expanded(
child: Container(
color: Colors.yellow,
)
),
ElevatedButton(child: Text('test button'), onPressed: () {}),
],
),
);
}
When testing the code above on API 29 or below it renders the following:

When testing the same code on API 30 it shows only the Expanded:

As stated by the Flutter documentation, the Expanded makes a child of a Row, Column, or Flex expand to fill the available space along the main axis, but on API 30 it seems to not be working properly.
Metadata
Metadata
Assignees
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds