Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cupertino
front-end
Commits
fa69e45f
Commit
fa69e45f
authored
4 years ago
by
Henrique Terres
Browse files
Options
Download
Email Patches
Plain Diff
alterações nos campos de horário na interface de registro de curso
parent
25ce5ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/pages/course_registration.dart
+31
-3
lib/pages/course_registration.dart
with
31 additions
and
3 deletions
+31
-3
lib/pages/course_registration.dart
View file @
fa69e45f
...
...
@@ -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
);
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help