I want to expand the blue container on top of the grey container when I click the up arrow, but i have no idea how i can do that. I used the ExpandablePanel widget other times but I can only expand down with it. Here's an image to show what I want to do. Does anyone have any idea how I can do this or if there is a widget for this?
return Column(
children: [
Container(
color: Colors.grey,
width: widthScreen,
height: MediaQuery.of(context).padding.top,
),
Container(
color: Colors.amber,
width: widthScreen,
height: heightScreen * 0.32,
child: Column(
children: [
Row(
children: [
IconButton(
iconSize: 30,
color: ThemeColor.fontGrey,
icon: const Icon(CustomIcons.arrow_back),
onPressed: () {
Navigator.pop(context);
},
),
],
),
],
),
),
Container(
height: heightScreen * .5,
color: Colors.grey,
),
Expanded(
child: Container(
color: Colors.blue,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
IconButton(
iconSize: 30,
color: Colors.black,
icon: const Icon(CustomIcons.chevron_cima),
onPressed: () {
},
)
]),
],
),
),
),
],
);
