Skip to content

Instantly share code, notes, and snippets.

@rkpontes
Last active December 11, 2020 01:44
Show Gist options
  • Save rkpontes/df04304f238c1ee9cc7bce8aece81788 to your computer and use it in GitHub Desktop.
Save rkpontes/df04304f238c1ee9cc7bce8aece81788 to your computer and use it in GitHub Desktop.
class SchedulesView extends GetView<SchedulesController> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Agendar Atendimento'),
centerTitle: true,
),
body: Container(
child: ListView(
padding: EdgeInsets.all(10),
children: <Widget>[
Padding(
padding: const EdgeInsets.all(10.0),
child: Card(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
ListTile(
title: Text('Nome do Serviço', style: TextStyle(fontSize: 20)),
subtitle: Text('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'),
),
Divider(color: Colors.black),
ListTile(
title: Text('Preço'),
trailing: Text(
"R\$ 0,00",
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.red),
),
),
],
),
),
),
Padding(
padding: EdgeInsets.all(8.0),
child: TextFormField(
//controller: controller.dateController,
showCursor: true,
readOnly: true,
decoration: InputDecoration(
labelText: 'Data Prevista',
icon: Icon(Icons.today),
),
//onTap: controller.openCalendar,
validator: (value) {
if (value.isEmpty) {
return 'Campo requerido.';
}
return null;
},
),
),
Padding(
padding: EdgeInsets.all(8.0),
child: TextFormField(
//controller: controller.timeController,
showCursor: true,
readOnly: true,
decoration: InputDecoration(
labelText: 'Hora Prevista',
icon: Icon(Icons.access_time),
),
//onTap: controller.openClock,
validator: (value) {
if (value.isEmpty) {
return 'Campo requerido.';
}
return null;
},
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: TextFormField(
showCursor: true,
readOnly: true,
decoration: InputDecoration(
labelText: 'Escolha um Funcionário (Opcional)',
icon: Icon(Icons.account_circle),
),
//onTap: controller.openEmployeePage,
),
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment