Created
February 28, 2023 05:20
-
-
Save josue1dario2/b0ea6a2ec6b86842bed35ee4ca74edd7 to your computer and use it in GitHub Desktop.
1. Screen Dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Screen3_1_dropdown extends StatelessWidget { | |
const Screen3_1_dropdown({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return SafeArea( | |
child: Scaffold( | |
appBar: const MyAppBar( | |
title: 'Nueva obra', icon: Icon(Icons.close), isIcon: true), | |
body: Column( | |
children: [ | |
const SizedBox(height: 32), | |
const Align( | |
alignment: Alignment.topLeft, | |
child: Padding( | |
padding: EdgeInsets.only(left: 20), | |
child: CustomText( | |
text: 'Detalle obra', | |
size: 17, | |
weight: FontWeight.w800, | |
color: Color(0xFF482F74)), | |
), | |
), | |
const SizedBox(height: 16), | |
SizedBox( | |
width: MediaQuery.of(context).size.width * .90, | |
child: const DropdownFormField( | |
textLabel: 'Edificio Martinez', | |
myList: [ | |
'Edificio 1', | |
'Edificio 2', | |
'Edificio 3', | |
'Edificio 4' | |
], | |
), | |
), | |
const SizedBox(height: 16), | |
SizedBox( | |
width: MediaQuery.of(context).size.width * .90, | |
child: const DropdownFormField( | |
textLabel: 'Seleccionar Jefe de Obra', | |
myList: [ | |
'Martinez', | |
'Santillan', | |
'Fernandez', | |
'Santos', | |
'Andino' | |
], | |
), | |
), | |
const SizedBox(height: 16), | |
const Align( | |
alignment: Alignment.topLeft, | |
child: Padding( | |
padding: EdgeInsets.only(left: 24), | |
child: CustomText( | |
text: 'Agregar Jefe de obra adicional', | |
size: 15, | |
weight: FontWeight.w500, | |
color: Color(0xFF6197F7)), | |
), | |
), | |
const SizedBox(height: 24), | |
const Align( | |
alignment: Alignment.topLeft, | |
child: Padding( | |
padding: EdgeInsets.only(left: 20), | |
child: CustomText( | |
text: 'Optional', | |
size: 17, | |
weight: FontWeight.w800, | |
color: Color(0xFF482F74)), | |
), | |
), | |
const SizedBox(height: 24), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: const [ | |
GenericButton( | |
navigator: NewOperator(), | |
text: 'Agregar cuadrilla', | |
sizeButton: 175, | |
hasIcon: false, | |
ulrImage: ''), | |
GenericButton( | |
navigator: NewOperator(), | |
text: 'Agregar operario', | |
sizeButton: 175, | |
hasIcon: false, | |
ulrImage: ''), | |
], | |
), | |
Container( | |
margin: EdgeInsets.all(10.0), | |
color: Colors.amber, | |
height: 250, | |
width: 400, | |
), | |
const GreenButton( | |
text: 'Crear nueva obra', | |
paddingHorizontal: 140, | |
paddingVertical: 13) | |
], | |
)), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment