Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2434747e
Commit
2434747e
authored
Oct 25, 2016
by
Chris Bracken
Committed by
GitHub
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NPEs in DatePicker, TimePicker demos (#6509)
parent
5a9b8b77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
date_picker_demo.dart
examples/flutter_gallery/lib/demo/date_picker_demo.dart
+1
-1
time_picker_demo.dart
examples/flutter_gallery/lib/demo/time_picker_demo.dart
+1
-1
No files found.
examples/flutter_gallery/lib/demo/date_picker_demo.dart
View file @
2434747e
...
...
@@ -24,7 +24,7 @@ class _DatePickerDemoState extends State<DatePickerDemo> {
firstDate:
new
DateTime
(
2015
,
8
),
lastDate:
new
DateTime
(
2101
)
);
if
(
picked
!=
_selectedDate
)
{
if
(
picked
!=
null
&&
picked
!=
_selectedDate
)
{
setState
(()
{
_selectedDate
=
picked
;
});
...
...
examples/flutter_gallery/lib/demo/time_picker_demo.dart
View file @
2434747e
...
...
@@ -21,7 +21,7 @@ class _TimePickerDemoState extends State<TimePickerDemo> {
context:
context
,
initialTime:
_selectedTime
);
if
(
picked
!=
_selectedTime
)
{
if
(
picked
!=
null
&&
picked
!=
_selectedTime
)
{
setState
(()
{
_selectedTime
=
picked
;
});
...
...
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