criado o modelo city_load_model.dart a tela login_load_screen.dart e sync_unit_screen.dart
This commit is contained in:
@@ -9,7 +9,7 @@ class DropDownButtonDefault extends StatelessWidget {
|
||||
String? select;
|
||||
String title;
|
||||
double fontSize;
|
||||
List<String> list;
|
||||
List list;
|
||||
double width;
|
||||
double widthContainer;
|
||||
|
||||
@@ -33,16 +33,23 @@ class DropDownButtonDefault extends StatelessWidget {
|
||||
margin: ConstVariable().marginHightInput,
|
||||
color: ColorPalette.white,
|
||||
child: DropdownButtonHideUnderline(
|
||||
child: DropdownButton<String>(
|
||||
hint: TextDefault(text: title,fontSize: ConstVariable().fontSizeInput,textAlign: TextAlign.end),
|
||||
child: DropdownButton(
|
||||
hint: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: TextDefault(text: title,fontSize: ConstVariable().fontSizeInput,textAlign: TextAlign.end),
|
||||
),
|
||||
value: select,
|
||||
items: list.map((value) => DropdownMenuItem(
|
||||
value: value,
|
||||
child: Container(
|
||||
width: widthContainer,
|
||||
child: TextDefault(
|
||||
text: value,
|
||||
fontSize: fontSize,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
||||
child: TextDefault(
|
||||
text: value,
|
||||
fontSize: fontSize,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user