8000 Update DateTime.dart · lazabe/flutter-code-snippets@4bf1866 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 4bf1866

Browse files
authored
Update DateTime.dart
1 parent 86b88c7 commit 4bf1866

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

DateTime.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
11

2-
//Date time field demo
3-
DateTimeFormField(
4-
mode: DateTimeFieldPickerMode.date,
5-
decoration: const InputDecoration(
6-
hintStyle: TextStyle(color: Colors.black45),
7-
errorStyle: TextStyle(color: Colors.redAccent),
8-
border: OutlineInputBorder(),
9-
suffixIcon: Icon(Icons.event_note,color: Colors.black,),
10-
labelStyle:TextStyle(fontSize: 20,color: Colors.grey,letterSpacing: 1.2),
11-
labelText: 'Date of birth',
12-
),
13-
// autovalidateMode: AutovalidateMode.always,
14-
// validator: (e) =>
15-
// (e?.day ?? 0) == 1 ? 'Please not the first day ' : null,
16-
onDateSelected: (DateTime value) {
17-
print(value);
18-
},
19-
),

0 commit comments

Comments
 (0)
0