How do I create the following layout in Flutter? . I tried to create it using the dropdown widget. However, I am not able to get this layout.
Is it possible to give me some hints on how active the same layout
Thanks
LAYOUT needed
on click
my Code snippet
Widget _buildHeading() {
return Padding(
padding: const EdgeInsets.only(top: 22.5),
child: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height * 0.06,
decoration: BoxDecoration(
color: Palette.RANDSTAD_DARK_BLUE,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
child: Text(
"text bar",
style: TextStyle(
color: Palette.WHITE,
height: 1.2,
fontSize: 20.0,
),
),
),
//added
Container(
width: 130.0,
child: DropdownButton<String>(
value: dropdownValue,
icon: Icon(Icons.arrow_downward),
iconSize: 24,
iconEnabledColor: Palette.WHITE,
dropdownColor: Palette.RANDSTAD_DARK_BLUE,
underline: SizedBox(),
onChanged: (String newValue) async {
setState(() {
dropdownValue = newValue;
});
},
items: <String>[
'English',
'Spanish',
'Dutch',
'Polish',
"French",
"German"
].map<DropdownMenuItem<String>>((String value) {
return DropdownMenuItem<String>(
value: value,
child:
Text(value, style: TextStyle(color: Palette.WHITE)),
);
}).toList(),
))
//end added
],
),
),
);
}

