Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HomeScreen - appBar bottom Dropdown
title: Text('Holden'),
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(50),
bottomLeft: Radius.circular(50),
centerTitle: true,
bottom: homeProvider.xlsxFilePath != null
? PreferredSize(
preferredSize: Size.fromHeight(60),
child: Container(
margin: EdgeInsets.symmetric(horizontal: 60),
child: DropdownButtonFormField(
value: homeProvider.xlsxFileSelectedTable,
onChanged: (newXlsxFileSelectedTable) {
homeProvider.xlsxFileSelectedTable =
items: [
(table) => DropdownMenuItem(
child: Text(table),
value: table,
: PreferredSize(
child: Container(),
preferredSize: Size.fromHeight(0),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.