Commit fa69e45f authored by Henrique Terres's avatar Henrique Terres
Browse files

alterações nos campos de horário na interface de registro de curso

parent 25ce5ad0
Showing with 31 additions and 3 deletions
+31 -3
......@@ -229,11 +229,39 @@ class BasicTimeField extends StatelessWidget {
cursorColor: Colors.deepPurpleAccent,
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(top: 22, bottom: 22, left: 16, right: 16),
EdgeInsets.only(top: 22, bottom: 22, left: 16, right: 16),
fillColor: Color(0xFF2F2F2F),
filled: true,
alignLabelWithHint: true,
hintText: 'Horário Inicial',
hintStyle: TextStyle(
fontSize: 16, height: 1, color: Colors.white.withAlpha(0x99)),
border: UnderlineInputBorder(
borderSide: BorderSide.none,
borderRadius: BorderRadius.all(Radius.circular(4.0))),
),
format: format,
onShowPicker: (context, currentValue) async {
final time = await showTimePicker(
context: context,
initialTime:
TimeOfDay.fromDateTime(currentValue ?? DateTime.now()),
);
return DateTimeField.convert(time);
},
),
SizedBox(
height: 10.0,
),
DateTimeField(
cursorColor: Colors.deepPurpleAccent,
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(top: 22, bottom: 22, left: 16, right: 16),
fillColor: Color(0xFF2F2F2F),
filled: true,
alignLabelWithHint: true,
hintText: 'Horário',
hintText: 'Horário Final',
hintStyle: TextStyle(
fontSize: 16, height: 1, color: Colors.white.withAlpha(0x99)),
border: UnderlineInputBorder(
......@@ -245,7 +273,7 @@ class BasicTimeField extends StatelessWidget {
final time = await showTimePicker(
context: context,
initialTime:
TimeOfDay.fromDateTime(currentValue ?? DateTime.now()),
TimeOfDay.fromDateTime(currentValue ?? DateTime.now()),
);
return DateTimeField.convert(time);
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment