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
72d2706e
Commit
72d2706e
authored
Nov 25, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish TimePicker
After this patch, TimePicker should work correctly. Fixes #559
parent
134b11e3
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
32 deletions
+139
-32
time_picker_demo.dart
examples/material_gallery/lib/time_picker_demo.dart
+1
-1
constants.dart
packages/flutter/lib/src/material/constants.dart
+3
-2
time_picker.dart
packages/flutter/lib/src/material/time_picker.dart
+135
-29
No files found.
examples/material_gallery/lib/time_picker_demo.dart
View file @
72d2706e
...
@@ -29,7 +29,7 @@ class _TimePickerDemoState extends State<TimePickerDemo> {
...
@@ -29,7 +29,7 @@ class _TimePickerDemoState extends State<TimePickerDemo> {
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
new
Column
([
return
new
Column
([
new
Text
(
'
$
{_selectedTime.hour}
:
${_selectedTime.minute}
'
),
new
Text
(
'
$
_selectedTime
'
),
new
RaisedButton
(
new
RaisedButton
(
onPressed:
_handleSelectTime
,
onPressed:
_handleSelectTime
,
child:
new
Text
(
'SELECT TIME'
)
child:
new
Text
(
'SELECT TIME'
)
...
...
packages/flutter/lib/src/material/constants.dart
View file @
72d2706e
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// Modeled after Android's ViewConfiguration:
import
'package:flutter/widgets.dart'
;
// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewConfiguration.java
// TODO(ianh): Figure out actual specced height for status bar
// TODO(ianh): Figure out actual specced height for status bar
const
double
kStatusBarHeight
=
50.0
;
const
double
kStatusBarHeight
=
50.0
;
...
@@ -32,3 +31,5 @@ const Duration kScrollbarFadeDelay = const Duration(milliseconds: 300);
...
@@ -32,3 +31,5 @@ const Duration kScrollbarFadeDelay = const Duration(milliseconds: 300);
const
double
kFadingEdgeLength
=
12.0
;
const
double
kFadingEdgeLength
=
12.0
;
const
double
kPressedStateDuration
=
64.0
;
// units?
const
double
kPressedStateDuration
=
64.0
;
// units?
const
Duration
kThemeChangeDuration
=
const
Duration
(
milliseconds:
200
);
const
Duration
kThemeChangeDuration
=
const
Duration
(
milliseconds:
200
);
const
EdgeDims
kDialogHeadingPadding
=
const
EdgeDims
.
TRBL
(
24.0
,
24.0
,
20.0
,
24.0
);
packages/flutter/lib/src/material/time_picker.dart
View file @
72d2706e
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