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
0c0ae4a1
Commit
0c0ae4a1
authored
Nov 25, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #584 from abarth/time_picker
Finish TimePicker
parents
4716b708
72d2706e
Changes
3
Expand all
Hide 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 @
0c0ae4a1
...
...
@@ -29,7 +29,7 @@ class _TimePickerDemoState extends State<TimePickerDemo> {
Widget
build
(
BuildContext
context
)
{
return
new
Column
([
new
Text
(
'
$
{_selectedTime.hour}
:
${_selectedTime.minute}
'
),
new
Text
(
'
$
_selectedTime
'
),
new
RaisedButton
(
onPressed:
_handleSelectTime
,
child:
new
Text
(
'SELECT TIME'
)
...
...
packages/flutter/lib/src/material/constants.dart
View file @
0c0ae4a1
...
...
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Modeled after Android's ViewConfiguration:
// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewConfiguration.java
import
'package:flutter/widgets.dart'
;
// TODO(ianh): Figure out actual specced height for status bar
const
double
kStatusBarHeight
=
50.0
;
...
...
@@ -32,3 +31,5 @@ const Duration kScrollbarFadeDelay = const Duration(milliseconds: 300);
const
double
kFadingEdgeLength
=
12.0
;
const
double
kPressedStateDuration
=
64.0
;
// units?
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 @
0c0ae4a1
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