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
ee3571c9
Unverified
Commit
ee3571c9
authored
Dec 20, 2018
by
Hans Muller
Committed by
GitHub
Dec 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update DayPicker,DatePicker doc "see also" sections (#25573)
parent
3d8aec2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
date_picker.dart
packages/flutter/lib/src/material/date_picker.dart
+23
-10
time_picker.dart
packages/flutter/lib/src/material/time_picker.dart
+2
-2
No files found.
packages/flutter/lib/src/material/date_picker.dart
View file @
ee3571c9
...
...
@@ -29,9 +29,10 @@ import 'theme.dart';
/// Date picker UI mode for either showing a list of available years or a
/// monthly calendar initially in the dialog shown by calling [showDatePicker].
///
///
Also see
:
///
See also
:
///
/// * <https://material.io/guidelines/components/pickers.html#pickers-date-pickers>
/// * [showDatePicker], which shows a dialog that contains a material design
/// date picker.
enum
DatePickerMode
{
/// Show a date picker UI for choosing a month and day.
day
,
...
...
@@ -232,8 +233,10 @@ const _DayPickerGridDelegate _kDayPickerGridDelegate = _DayPickerGridDelegate();
///
/// See also:
///
/// * [showDatePicker].
/// * <https://material.google.com/components/pickers.html#pickers-date-pickers>
/// * [showDatePicker], which shows a dialog that contains a material design
/// date picker.
/// * [showTimePicker], which shows a dialog that contains a material design
/// time picker.
class
DayPicker
extends
StatelessWidget
{
/// Creates a day picker.
///
...
...
@@ -483,8 +486,10 @@ class DayPicker extends StatelessWidget {
///
/// See also:
///
/// * [showDatePicker]
/// * <https://material.google.com/components/pickers.html#pickers-date-pickers>
/// * [showDatePicker], which shows a dialog that contains a material design
/// date picker.
/// * [showTimePicker], which shows a dialog that contains a material design
/// time picker.
class
MonthPicker
extends
StatefulWidget
{
/// Creates a month picker.
///
...
...
@@ -736,8 +741,10 @@ class _MonthPickerSortKey extends OrdinalSortKey {
///
/// See also:
///
/// * [showDatePicker]
/// * <https://material.google.com/components/pickers.html#pickers-date-pickers>
/// * [showDatePicker], which shows a dialog that contains a material design
/// date picker.
/// * [showTimePicker], which shows a dialog that contains a material design
/// time picker.
class
YearPicker
extends
StatefulWidget
{
/// Creates a year picker.
///
...
...
@@ -1065,8 +1072,14 @@ typedef SelectableDayPredicate = bool Function(DateTime day);
///
/// See also:
///
/// * [showTimePicker]
/// * <https://material.google.com/components/pickers.html#pickers-date-pickers>
/// * [showTimePicker], which shows a dialog that contains a material design
/// time picker.
/// * [DayPicker], which displays the days of a given month and allows
/// choosing a day.
/// * [MonthPicker], which displays a scrollable list of months to allow
/// picking a month.
/// * [YearPicker], which displays a scrollable list of years to allow picking
/// a year.
Future
<
DateTime
>
showDatePicker
({
@required
BuildContext
context
,
@required
DateTime
initialDate
,
...
...
packages/flutter/lib/src/material/time_picker.dart
View file @
ee3571c9
...
...
@@ -1665,8 +1665,8 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
///
/// See also:
///
/// * [showDatePicker]
///
* <https://material.google.com/components/pickers.html#pickers-time-pickers>
/// * [showDatePicker]
, which shows a dialog that contains a material design
///
date picker.
Future
<
TimeOfDay
>
showTimePicker
({
@required
BuildContext
context
,
@required
TimeOfDay
initialTime
...
...
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