Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created February 28, 2023 05:22
Show Gist options
  • Save josue1dario2/d7ffd16e8765190cead6b6bb92635ece to your computer and use it in GitHub Desktop.
Save josue1dario2/d7ffd16e8765190cead6b6bb92635ece to your computer and use it in GitHub Desktop.
2. Screen
class Screen3_1 extends StatelessWidget {
const Screen3_1({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: ''),
],
),
const SizedBox(height: 260),
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