How do I achieve this effect? I wanted to expand my AppBar after clicking on the dates.
The simplest way is to bring toggle a veriable then change the height of the bottom widget.
bottom
Scaffold( appBar: AppBar( title: Text(widget.title), actions: [IconButton(icon: Icon(Icons.place),onPressed: (){ setState((){ isOpen = !isOpen; }); })], bottom: PreferredSize(child: isOpen? Container(color:Colors.red, height: 100):Container(),preferredSize:Size.fromHeight(isOpen? 100:0) ,) ),)
The simplest way is to bring toggle a veriable then change the height of the
bottom
widget.