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
cc11c39b
Commit
cc11c39b
authored
Oct 23, 2016
by
Wyatt Arent
Committed by
Adam Barth
Oct 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6344 update google.com/material links to material.google.com (#6484)
parent
022cb2d9
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
65 additions
and
65 deletions
+65
-65
README.md
examples/README.md
+1
-1
full_screen_dialog_demo.dart
...les/flutter_gallery/lib/demo/full_screen_dialog_demo.dart
+1
-1
material.dart
packages/flutter/lib/material.dart
+1
-1
app.dart
packages/flutter/lib/src/material/app.dart
+1
-1
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+2
-2
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+2
-2
card.dart
packages/flutter/lib/src/material/card.dart
+1
-1
checkbox.dart
packages/flutter/lib/src/material/checkbox.dart
+2
-2
chip.dart
packages/flutter/lib/src/material/chip.dart
+1
-1
circle_avatar.dart
packages/flutter/lib/src/material/circle_avatar.dart
+1
-1
colors.dart
packages/flutter/lib/src/material/colors.dart
+1
-1
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+1
-1
date_picker.dart
packages/flutter/lib/src/material/date_picker.dart
+4
-4
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+2
-2
divider.dart
packages/flutter/lib/src/material/divider.dart
+1
-1
drawer.dart
packages/flutter/lib/src/material/drawer.dart
+2
-2
drawer_header.dart
packages/flutter/lib/src/material/drawer_header.dart
+1
-1
drawer_item.dart
packages/flutter/lib/src/material/drawer_item.dart
+1
-1
drop_down.dart
packages/flutter/lib/src/material/drop_down.dart
+2
-2
flat_button.dart
packages/flutter/lib/src/material/flat_button.dart
+1
-1
flexible_space_bar.dart
packages/flutter/lib/src/material/flexible_space_bar.dart
+1
-1
floating_action_button.dart
...ages/flutter/lib/src/material/floating_action_button.dart
+2
-2
grid_tile.dart
packages/flutter/lib/src/material/grid_tile.dart
+1
-1
grid_tile_bar.dart
packages/flutter/lib/src/material/grid_tile_bar.dart
+1
-1
input.dart
packages/flutter/lib/src/material/input.dart
+1
-1
list.dart
packages/flutter/lib/src/material/list.dart
+3
-3
list_item.dart
packages/flutter/lib/src/material/list_item.dart
+1
-1
material.dart
packages/flutter/lib/src/material/material.dart
+1
-1
paginated_data_table.dart
packages/flutter/lib/src/material/paginated_data_table.dart
+1
-1
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+3
-3
radio.dart
packages/flutter/lib/src/material/radio.dart
+1
-1
raised_button.dart
packages/flutter/lib/src/material/raised_button.dart
+1
-1
refresh_indicator.dart
packages/flutter/lib/src/material/refresh_indicator.dart
+1
-1
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+2
-2
shadows.dart
packages/flutter/lib/src/material/shadows.dart
+2
-2
slider.dart
packages/flutter/lib/src/material/slider.dart
+1
-1
snack_bar.dart
packages/flutter/lib/src/material/snack_bar.dart
+3
-3
switch.dart
packages/flutter/lib/src/material/switch.dart
+1
-1
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+3
-3
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+1
-1
time_picker.dart
packages/flutter/lib/src/material/time_picker.dart
+1
-1
tooltip.dart
packages/flutter/lib/src/material/tooltip.dart
+1
-1
typography.dart
packages/flutter/lib/src/material/typography.dart
+2
-2
user_accounts_drawer_header.dart
...flutter/lib/src/material/user_accounts_drawer_header.dart
+1
-1
No files found.
examples/README.md
View file @
cc11c39b
...
@@ -23,7 +23,7 @@ Available examples include:
...
@@ -23,7 +23,7 @@ Available examples include:
the text "hello, world."
the text "hello, world."
-
**Flutter gallery**
The
[
flutter gallery app
](
flutter_gallery
)
showcases
-
**Flutter gallery**
The
[
flutter gallery app
](
flutter_gallery
)
showcases
Flutter's implementation of
[
material design
](
https://
www.google.com/design/spec/material-design/introduction.html
)
.
Flutter's implementation of
[
material design
](
https://
material.google.com/
)
.
-
**Layers**
The
[
layers vignettes
](
layers
)
show how to use the various layers
-
**Layers**
The
[
layers vignettes
](
layers
)
show how to use the various layers
in the Flutter framework. There is no main.dart in this directory because each
in the Flutter framework. There is no main.dart in this directory because each
...
...
examples/flutter_gallery/lib/demo/full_screen_dialog_demo.dart
View file @
cc11c39b
...
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
...
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
// This demo is based on
// This demo is based on
// https://
www.google.com/design/spec
/components/dialogs.html#dialogs-full-screen-dialogs
// https://
material.google.com
/components/dialogs.html#dialogs-full-screen-dialogs
enum
DismissDialogAction
{
enum
DismissDialogAction
{
cancel
,
cancel
,
...
...
packages/flutter/lib/material.dart
View file @
cc11c39b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
/// To use, import `package:flutter/material.dart`.
/// To use, import `package:flutter/material.dart`.
///
///
/// See
/// See
/// [
www.google.com/design/spec/material-design](https://www.google.com/design/spec/material-design/introduction.html
)
/// [
material.google.com](https://material.google.com/
)
/// for an introduction to Material Design.
/// for an introduction to Material Design.
library
material
;
library
material
;
...
...
packages/flutter/lib/src/material/app.dart
View file @
cc11c39b
...
@@ -149,7 +149,7 @@ class MaterialApp extends StatefulWidget {
...
@@ -149,7 +149,7 @@ class MaterialApp extends StatefulWidget {
/// Turns on a [GridPaper] overlay that paints a baseline grid
/// Turns on a [GridPaper] overlay that paints a baseline grid
/// Material apps:
/// Material apps:
/// https://
www.google.com/design/spec
/layout/metrics-keylines.html
/// https://
material.google.com
/layout/metrics-keylines.html
/// Only available in checked mode.
/// Only available in checked mode.
final
bool
debugShowMaterialGrid
;
final
bool
debugShowMaterialGrid
;
...
...
packages/flutter/lib/src/material/app_bar.dart
View file @
cc11c39b
...
@@ -83,7 +83,7 @@ class _ToolbarLayout extends MultiChildLayoutDelegate {
...
@@ -83,7 +83,7 @@ class _ToolbarLayout extends MultiChildLayoutDelegate {
}
}
// TODO(eseidel) Toolbar needs to change size based on orientation:
// TODO(eseidel) Toolbar needs to change size based on orientation:
// http://
www.google.com/design/spec
/layout/structure.html#structure-app-bar
// http://
material.google.com
/layout/structure.html#structure-app-bar
// Mobile Landscape: 48dp
// Mobile Landscape: 48dp
// Mobile Portrait: 56dp
// Mobile Portrait: 56dp
// Tablet/Desktop: 64dp
// Tablet/Desktop: 64dp
...
@@ -130,7 +130,7 @@ class _AppBarExpandedHeight extends InheritedWidget {
...
@@ -130,7 +130,7 @@ class _AppBarExpandedHeight extends InheritedWidget {
/// * [IconButton]
/// * [IconButton]
/// * [PopupMenuButton]
/// * [PopupMenuButton]
/// * [FlexibleSpaceBar]
/// * [FlexibleSpaceBar]
/// * <https://
www.google.com/design/spec
/layout/structure.html#structure-toolbars>
/// * <https://
material.google.com
/layout/structure.html#structure-toolbars>
class
AppBar
extends
StatelessWidget
{
class
AppBar
extends
StatelessWidget
{
/// Creates a material design app bar.
/// Creates a material design app bar.
///
///
...
...
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
cc11c39b
...
@@ -39,7 +39,7 @@ const Color _kBarrierColor = Colors.black54;
...
@@ -39,7 +39,7 @@ const Color _kBarrierColor = Colors.black54;
///
///
/// * [Scaffold.showBottomSheet]
/// * [Scaffold.showBottomSheet]
/// * [showModalBottomSheet]
/// * [showModalBottomSheet]
/// * <https://
www.google.com/design/spec
/components/bottom-sheets.html>
/// * <https://
material.google.com
/components/bottom-sheets.html>
class
BottomSheet
extends
StatefulWidget
{
class
BottomSheet
extends
StatefulWidget
{
/// Creates a bottom sheet.
/// Creates a bottom sheet.
///
///
...
@@ -255,7 +255,7 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
...
@@ -255,7 +255,7 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
///
///
/// * [BottomSheet]
/// * [BottomSheet]
/// * [Scaffold.showBottomSheet]
/// * [Scaffold.showBottomSheet]
/// * <https://
www.google.com/design/spec
/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets>
/// * <https://
material.google.com
/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets>
Future
<
dynamic
/*=T*/
>
showModalBottomSheet
/*<T>*/
({
BuildContext
context
,
WidgetBuilder
builder
})
{
Future
<
dynamic
/*=T*/
>
showModalBottomSheet
/*<T>*/
({
BuildContext
context
,
WidgetBuilder
builder
})
{
assert
(
context
!=
null
);
assert
(
context
!=
null
);
assert
(
builder
!=
null
);
assert
(
builder
!=
null
);
...
...
packages/flutter/lib/src/material/card.dart
View file @
cc11c39b
...
@@ -12,7 +12,7 @@ import 'material.dart';
...
@@ -12,7 +12,7 @@ import 'material.dart';
///
///
/// * [Dialog]
/// * [Dialog]
/// * [showDialog]
/// * [showDialog]
/// * <https://
www.google.com/design/spec
/components/cards.html>
/// * <https://
material.google.com
/components/cards.html>
class
Card
extends
StatelessWidget
{
class
Card
extends
StatelessWidget
{
/// Creates a material design card.
/// Creates a material design card.
const
Card
({
const
Card
({
...
...
packages/flutter/lib/src/material/checkbox.dart
View file @
cc11c39b
...
@@ -28,8 +28,8 @@ import 'toggleable.dart';
...
@@ -28,8 +28,8 @@ import 'toggleable.dart';
/// * [Radio]
/// * [Radio]
/// * [Switch]
/// * [Switch]
/// * [Slider]
/// * [Slider]
/// * <https://
www.google.com/design/spec
/components/selection-controls.html#selection-controls-checkbox>
/// * <https://
material.google.com
/components/selection-controls.html#selection-controls-checkbox>
/// * <https://
www.google.com/design/spec
/components/lists-controls.html#lists-controls-types-of-list-controls>
/// * <https://
material.google.com
/components/lists-controls.html#lists-controls-types-of-list-controls>
class
Checkbox
extends
StatefulWidget
{
class
Checkbox
extends
StatefulWidget
{
/// Creates a material design checkbox.
/// Creates a material design checkbox.
///
///
...
...
packages/flutter/lib/src/material/chip.dart
View file @
cc11c39b
...
@@ -33,7 +33,7 @@ const TextStyle _kLabelStyle = const TextStyle(
...
@@ -33,7 +33,7 @@ const TextStyle _kLabelStyle = const TextStyle(
/// See also:
/// See also:
///
///
/// * [CircleAvatar]
/// * [CircleAvatar]
/// * <https://
www.google.com/design/spec
/components/chips.html>
/// * <https://
material.google.com
/components/chips.html>
class
Chip
extends
StatelessWidget
{
class
Chip
extends
StatelessWidget
{
/// Creates a material design chip.
/// Creates a material design chip.
///
///
...
...
packages/flutter/lib/src/material/circle_avatar.dart
View file @
cc11c39b
...
@@ -18,7 +18,7 @@ import 'theme.dart';
...
@@ -18,7 +18,7 @@ import 'theme.dart';
///
///
/// * [Chip]
/// * [Chip]
/// * [ListItem]
/// * [ListItem]
/// * <https://
www.google.com/design/spec
/components/chips.html#chips-contact-chips>
/// * <https://
material.google.com
/components/chips.html#chips-contact-chips>
class
CircleAvatar
extends
StatelessWidget
{
class
CircleAvatar
extends
StatelessWidget
{
/// Creates a circle that represents a user.
/// Creates a circle that represents a user.
CircleAvatar
({
CircleAvatar
({
...
...
packages/flutter/lib/src/material/colors.dart
View file @
cc11c39b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'dart:ui'
show
Color
;
import
'dart:ui'
show
Color
;
/// [Color] constants which represent Material design's
/// [Color] constants which represent Material design's
/// [color palette](http://
www.google.com/design/spec
/style/color.html).
/// [color palette](http://
material.google.com
/style/color.html).
///
///
/// To select a specific color from one of the swatches, index into the swatch
/// To select a specific color from one of the swatches, index into the swatch
/// using an integer for the specific color desired, as follows:
/// using an integer for the specific color desired, as follows:
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
cc11c39b
...
@@ -223,7 +223,7 @@ class DataCell {
...
@@ -223,7 +223,7 @@ class DataCell {
/// * [DataRow]
/// * [DataRow]
/// * [DataCell]
/// * [DataCell]
/// * [PaginatedDataTable]
/// * [PaginatedDataTable]
/// * <https://
www.google.com/design/spec
/components/data-tables.html>
/// * <https://
material.google.com
/components/data-tables.html>
class
DataTable
extends
StatelessWidget
{
class
DataTable
extends
StatelessWidget
{
/// Creates a widget describing a data table.
/// Creates a widget describing a data table.
///
///
...
...
packages/flutter/lib/src/material/date_picker.dart
View file @
cc11c39b
...
@@ -160,7 +160,7 @@ final _DayPickerGridDelegate _kDayPickerGridDelegate = new _DayPickerGridDelegat
...
@@ -160,7 +160,7 @@ final _DayPickerGridDelegate _kDayPickerGridDelegate = new _DayPickerGridDelegat
/// See also:
/// See also:
///
///
/// * [showDatePicker].
/// * [showDatePicker].
/// * <https://
www.google.com/design/spec
/components/pickers.html#pickers-date-pickers>
/// * <https://
material.google.com
/components/pickers.html#pickers-date-pickers>
class
DayPicker
extends
StatelessWidget
{
class
DayPicker
extends
StatelessWidget
{
/// Creates a day picker.
/// Creates a day picker.
///
///
...
@@ -288,7 +288,7 @@ class DayPicker extends StatelessWidget {
...
@@ -288,7 +288,7 @@ class DayPicker extends StatelessWidget {
/// See also:
/// See also:
///
///
/// * [showDatePicker]
/// * [showDatePicker]
/// * <https://
www.google.com/design/spec
/components/pickers.html#pickers-date-pickers>
/// * <https://
material.google.com
/components/pickers.html#pickers-date-pickers>
class
MonthPicker
extends
StatefulWidget
{
class
MonthPicker
extends
StatefulWidget
{
/// Creates a month picker.
/// Creates a month picker.
///
///
...
@@ -440,7 +440,7 @@ class _MonthPickerState extends State<MonthPicker> {
...
@@ -440,7 +440,7 @@ class _MonthPickerState extends State<MonthPicker> {
/// See also:
/// See also:
///
///
/// * [showDatePicker]
/// * [showDatePicker]
/// * <https://
www.google.com/design/spec
/components/pickers.html#pickers-date-pickers>
/// * <https://
material.google.com
/components/pickers.html#pickers-date-pickers>
class
YearPicker
extends
StatefulWidget
{
class
YearPicker
extends
StatefulWidget
{
/// Creates a year picker.
/// Creates a year picker.
///
///
...
@@ -676,7 +676,7 @@ class _DatePickerDialogState extends State<_DatePickerDialog> {
...
@@ -676,7 +676,7 @@ class _DatePickerDialogState extends State<_DatePickerDialog> {
/// See also:
/// See also:
///
///
/// * [showTimePicker]
/// * [showTimePicker]
/// * <https://
www.google.com/design/spec
/components/pickers.html#pickers-date-pickers>
/// * <https://
material.google.com
/components/pickers.html#pickers-date-pickers>
Future
<
DateTime
>
showDatePicker
({
Future
<
DateTime
>
showDatePicker
({
BuildContext
context
,
BuildContext
context
,
DateTime
initialDate
,
DateTime
initialDate
,
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
cc11c39b
...
@@ -24,7 +24,7 @@ import 'theme.dart';
...
@@ -24,7 +24,7 @@ import 'theme.dart';
/// * [AlertDialog]
/// * [AlertDialog]
/// * [SimpleDialog]
/// * [SimpleDialog]
/// * [showDialog]
/// * [showDialog]
/// * <https://
www.google.com/design/spec
/components/dialogs.html>
/// * <https://
material.google.com
/components/dialogs.html>
class
Dialog
extends
StatelessWidget
{
class
Dialog
extends
StatelessWidget
{
/// Creates a dialog.
/// Creates a dialog.
///
///
...
@@ -321,7 +321,7 @@ class _DialogRoute<T> extends PopupRoute<T> {
...
@@ -321,7 +321,7 @@ class _DialogRoute<T> extends PopupRoute<T> {
///
///
/// See also:
/// See also:
/// * [Dialog]
/// * [Dialog]
/// * <https://
www.google.com/design/spec
/components/dialogs.html>
/// * <https://
material.google.com
/components/dialogs.html>
Future
<
dynamic
/*=T*/
>
showDialog
/*<T>*/
({
BuildContext
context
,
Widget
child
})
{
Future
<
dynamic
/*=T*/
>
showDialog
/*<T>*/
({
BuildContext
context
,
Widget
child
})
{
return
Navigator
.
push
(
context
,
new
_DialogRoute
<
dynamic
/*=T*/
>(
return
Navigator
.
push
(
context
,
new
_DialogRoute
<
dynamic
/*=T*/
>(
child:
child
,
child:
child
,
...
...
packages/flutter/lib/src/material/divider.dart
View file @
cc11c39b
...
@@ -19,7 +19,7 @@ import 'theme.dart';
...
@@ -19,7 +19,7 @@ import 'theme.dart';
///
///
/// * [ListItem.divideItems]
/// * [ListItem.divideItems]
/// * [PopupMenuDivider]
/// * [PopupMenuDivider]
/// * <https://
www.google.com/design/spec
/components/dividers.html>
/// * <https://
material.google.com
/components/dividers.html>
class
Divider
extends
StatelessWidget
{
class
Divider
extends
StatelessWidget
{
/// Creates a material design divider.
/// Creates a material design divider.
///
///
...
...
packages/flutter/lib/src/material/drawer.dart
View file @
cc11c39b
...
@@ -8,7 +8,7 @@ import 'colors.dart';
...
@@ -8,7 +8,7 @@ import 'colors.dart';
import
'material.dart'
;
import
'material.dart'
;
// TODO(eseidel): Draw width should vary based on device size:
// TODO(eseidel): Draw width should vary based on device size:
// http://
www.google.com/design/spec
/layout/structure.html#structure-side-nav
// http://
material.google.com
/layout/structure.html#structure-side-nav
// Mobile:
// Mobile:
// Width = Screen width − 56 dp
// Width = Screen width − 56 dp
...
@@ -39,7 +39,7 @@ const Duration _kBaseSettleDuration = const Duration(milliseconds: 246);
...
@@ -39,7 +39,7 @@ const Duration _kBaseSettleDuration = const Duration(milliseconds: 246);
/// * [Scaffold.drawer]
/// * [Scaffold.drawer]
/// * [DrawerItem]
/// * [DrawerItem]
/// * [DrawerHeader]
/// * [DrawerHeader]
/// * <https://
www.google.com/design/spec
/patterns/navigation-drawer.html>
/// * <https://
material.google.com
/patterns/navigation-drawer.html>
class
Drawer
extends
StatelessWidget
{
class
Drawer
extends
StatelessWidget
{
/// Creates a material design drawer.
/// Creates a material design drawer.
///
///
...
...
packages/flutter/lib/src/material/drawer_header.dart
View file @
cc11c39b
...
@@ -23,7 +23,7 @@ const double _kDrawerHeaderHeight = 160.0 + 1.0; // bottom edge
...
@@ -23,7 +23,7 @@ const double _kDrawerHeaderHeight = 160.0 + 1.0; // bottom edge
/// * [UserAccountsDrawerHeader], a variant of [DrawerHeader] that is
/// * [UserAccountsDrawerHeader], a variant of [DrawerHeader] that is
/// specialized for showing user accounts.
/// specialized for showing user accounts.
/// * [DrawerItem]
/// * [DrawerItem]
/// * <https://
www.google.com/design/spec
/patterns/navigation-drawer.html>
/// * <https://
material.google.com
/patterns/navigation-drawer.html>
class
DrawerHeader
extends
StatelessWidget
{
class
DrawerHeader
extends
StatelessWidget
{
/// Creates a material design drawer header.
/// Creates a material design drawer header.
///
///
...
...
packages/flutter/lib/src/material/drawer_item.dart
View file @
cc11c39b
...
@@ -24,7 +24,7 @@ import 'theme.dart';
...
@@ -24,7 +24,7 @@ import 'theme.dart';
///
///
/// * [Drawer]
/// * [Drawer]
/// * [DrawerHeader]
/// * [DrawerHeader]
/// * <https://
www.google.com/design/spec
/patterns/navigation-drawer.html>
/// * <https://
material.google.com
/patterns/navigation-drawer.html>
class
DrawerItem
extends
StatelessWidget
{
class
DrawerItem
extends
StatelessWidget
{
/// Creates a material design drawer item.
/// Creates a material design drawer item.
///
///
...
...
packages/flutter/lib/src/material/drop_down.dart
View file @
cc11c39b
...
@@ -211,7 +211,7 @@ class _DropdownMenuRouteLayout<T> extends SingleChildLayoutDelegate {
...
@@ -211,7 +211,7 @@ class _DropdownMenuRouteLayout<T> extends SingleChildLayoutDelegate {
// The maximum height of a simple menu should be one or more rows less than
// The maximum height of a simple menu should be one or more rows less than
// the view height. This ensures a tappable area outside of the simple menu
// the view height. This ensures a tappable area outside of the simple menu
// with which to dismiss the menu.
// with which to dismiss the menu.
// -- https://
www.google.com/design/spec
/components/menus.html#menus-simple-menus
// -- https://
material.google.com
/components/menus.html#menus-simple-menus
final
double
maxHeight
=
math
.
max
(
0.0
,
constraints
.
maxHeight
-
2
*
_kMenuItemHeight
);
final
double
maxHeight
=
math
.
max
(
0.0
,
constraints
.
maxHeight
-
2
*
_kMenuItemHeight
);
final
double
width
=
buttonRect
.
width
+
8.0
;
final
double
width
=
buttonRect
.
width
+
8.0
;
return
new
BoxConstraints
(
return
new
BoxConstraints
(
...
@@ -405,7 +405,7 @@ class DropdownButtonHideUnderline extends InheritedWidget {
...
@@ -405,7 +405,7 @@ class DropdownButtonHideUnderline extends InheritedWidget {
///
///
/// * [RaisedButton]
/// * [RaisedButton]
/// * [FlatButton]
/// * [FlatButton]
/// * <https://
www.google.com/design/spec
/components/buttons.html#buttons-dropdown-buttons>
/// * <https://
material.google.com
/components/buttons.html#buttons-dropdown-buttons>
class
DropdownButton
<
T
>
extends
StatefulWidget
{
class
DropdownButton
<
T
>
extends
StatefulWidget
{
/// Creates a drop down button.
/// Creates a drop down button.
///
///
...
...
packages/flutter/lib/src/material/flat_button.dart
View file @
cc11c39b
...
@@ -33,7 +33,7 @@ import 'theme.dart';
...
@@ -33,7 +33,7 @@ import 'theme.dart';
///
///
/// * [RaisedButton]
/// * [RaisedButton]
/// * [DropdownButton]
/// * [DropdownButton]
/// * <https://
www.google.com/design/spec
/components/buttons.html>
/// * <https://
material.google.com
/components/buttons.html>
class
FlatButton
extends
StatelessWidget
{
class
FlatButton
extends
StatelessWidget
{
/// Creates a flat button.
/// Creates a flat button.
///
///
...
...
packages/flutter/lib/src/material/flexible_space_bar.dart
View file @
cc11c39b
...
@@ -25,7 +25,7 @@ import 'theme.dart';
...
@@ -25,7 +25,7 @@ import 'theme.dart';
///
///
/// * [AppBar]
/// * [AppBar]
/// * [Scaffold]
/// * [Scaffold]
/// * <https://
www.google.com/design/spec
/patterns/scrolling-techniques.html>
/// * <https://
material.google.com
/patterns/scrolling-techniques.html>
class
FlexibleSpaceBar
extends
StatefulWidget
{
class
FlexibleSpaceBar
extends
StatefulWidget
{
/// Creates a flexible space bar.
/// Creates a flexible space bar.
///
///
...
...
packages/flutter/lib/src/material/floating_action_button.dart
View file @
cc11c39b
...
@@ -14,7 +14,7 @@ import 'theme.dart';
...
@@ -14,7 +14,7 @@ import 'theme.dart';
import
'tooltip.dart'
;
import
'tooltip.dart'
;
// TODO(eseidel): This needs to change based on device size?
// TODO(eseidel): This needs to change based on device size?
// http://
www.google.com/design/spec
/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
// http://
material.google.com
/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
const
double
_kSize
=
56.0
;
const
double
_kSize
=
56.0
;
const
double
_kSizeMini
=
40.0
;
const
double
_kSizeMini
=
40.0
;
final
Object
_kDefaultHeroTag
=
new
Object
();
final
Object
_kDefaultHeroTag
=
new
Object
();
...
@@ -37,7 +37,7 @@ final Object _kDefaultHeroTag = new Object();
...
@@ -37,7 +37,7 @@ final Object _kDefaultHeroTag = new Object();
/// * [Scaffold]
/// * [Scaffold]
/// * [RaisedButton]
/// * [RaisedButton]
/// * [FlatButton]
/// * [FlatButton]
/// * <https://
www.google.com/design/spec
/components/buttons-floating-action-button.html>
/// * <https://
material.google.com
/components/buttons-floating-action-button.html>
class
FloatingActionButton
extends
StatefulWidget
{
class
FloatingActionButton
extends
StatefulWidget
{
/// Creates a floating action button.
/// Creates a floating action button.
///
///
...
...
packages/flutter/lib/src/material/grid_tile.dart
View file @
cc11c39b
...
@@ -14,7 +14,7 @@ import 'package:flutter/widgets.dart';
...
@@ -14,7 +14,7 @@ import 'package:flutter/widgets.dart';
///
///
/// * [ScrollableGrid]
/// * [ScrollableGrid]
/// * [GridTileBar]
/// * [GridTileBar]
/// * <https://
www.google.com/design/spec
/components/grid-lists.html>
/// * <https://
material.google.com
/components/grid-lists.html>
class
GridTile
extends
StatelessWidget
{
class
GridTile
extends
StatelessWidget
{
/// Creates a grid tile.
/// Creates a grid tile.
///
///
...
...
packages/flutter/lib/src/material/grid_tile_bar.dart
View file @
cc11c39b
...
@@ -19,7 +19,7 @@ import 'typography.dart';
...
@@ -19,7 +19,7 @@ import 'typography.dart';
/// See also:
/// See also:
///
///
/// * [GridTile]
/// * [GridTile]
/// * <https://
www.google.com/design/spec
/components/grid-lists.html#grid-lists-specs>
/// * <https://
material.google.com
/components/grid-lists.html#grid-lists-specs>
class
GridTileBar
extends
StatelessWidget
{
class
GridTileBar
extends
StatelessWidget
{
/// Creates a grid tile bar.
/// Creates a grid tile bar.
///
///
...
...
packages/flutter/lib/src/material/input.dart
View file @
cc11c39b
...
@@ -30,7 +30,7 @@ export 'package:flutter/services.dart' show TextInputType;
...
@@ -30,7 +30,7 @@ export 'package:flutter/services.dart' show TextInputType;
///
///
/// See also:
/// See also:
///
///
/// * <https://
www.google.com/design/spec
/components/text-fields.html>
/// * <https://
material.google.com
/components/text-fields.html>
///
///
/// For a detailed guide on using the input widget, see:
/// For a detailed guide on using the input widget, see:
///
///
...
...
packages/flutter/lib/src/material/list.dart
View file @
cc11c39b
...
@@ -11,7 +11,7 @@ import 'package:flutter/widgets.dart';
...
@@ -11,7 +11,7 @@ import 'package:flutter/widgets.dart';
/// * [MaterialList]
/// * [MaterialList]
/// * [ListItem]
/// * [ListItem]
/// * [kListItemExtent]
/// * [kListItemExtent]
/// * <https://
www.google.com/design/spec
/components/lists.html#lists-specs>
/// * <https://
material.google.com
/components/lists.html#lists-specs>
enum
MaterialListType
{
enum
MaterialListType
{
/// A list item that contains a single line of text.
/// A list item that contains a single line of text.
oneLine
,
oneLine
,
...
@@ -33,7 +33,7 @@ enum MaterialListType {
...
@@ -33,7 +33,7 @@ enum MaterialListType {
/// * [MaterialListType]
/// * [MaterialListType]
/// * [ListItem]
/// * [ListItem]
/// * [kListItemExtent]
/// * [kListItemExtent]
/// * <https://
www.google.com/design/spec
/components/lists.html#lists-specs>
/// * <https://
material.google.com
/components/lists.html#lists-specs>
Map
<
MaterialListType
,
double
>
kListItemExtent
=
const
<
MaterialListType
,
double
>{
Map
<
MaterialListType
,
double
>
kListItemExtent
=
const
<
MaterialListType
,
double
>{
MaterialListType
.
oneLine
:
48.0
,
MaterialListType
.
oneLine
:
48.0
,
MaterialListType
.
oneLineWithAvatar
:
56.0
,
MaterialListType
.
oneLineWithAvatar
:
56.0
,
...
@@ -52,7 +52,7 @@ Map<MaterialListType, double> kListItemExtent = const <MaterialListType, double>
...
@@ -52,7 +52,7 @@ Map<MaterialListType, double> kListItemExtent = const <MaterialListType, double>
/// * [ScrollableList]
/// * [ScrollableList]
/// * [TwoLevelList]
/// * [TwoLevelList]
/// * [ScrollableGrid]
/// * [ScrollableGrid]
/// * <https://
www.google.com/design/spec
/components/lists.html>
/// * <https://
material.google.com
/components/lists.html>
class
MaterialList
extends
StatelessWidget
{
class
MaterialList
extends
StatelessWidget
{
/// Creates a material list.
/// Creates a material list.
///
///
...
...
packages/flutter/lib/src/material/list_item.dart
View file @
cc11c39b
...
@@ -26,7 +26,7 @@ import 'theme.dart';
...
@@ -26,7 +26,7 @@ import 'theme.dart';
/// * [MaterialList]
/// * [MaterialList]
/// * [CircleAvatar]
/// * [CircleAvatar]
/// * [Divider]
/// * [Divider]
/// * <https://
www.google.com/design/spec
/components/lists.html>
/// * <https://
material.google.com
/components/lists.html>
class
ListItem
extends
StatelessWidget
{
class
ListItem
extends
StatelessWidget
{
/// Creates a list item.
/// Creates a list item.
///
///
...
...
packages/flutter/lib/src/material/material.dart
View file @
cc11c39b
...
@@ -160,7 +160,7 @@ abstract class MaterialInkController {
...
@@ -160,7 +160,7 @@ abstract class MaterialInkController {
///
///
/// See also:
/// See also:
///
///
/// * <https://
www.google.com/design/spec/material-design/introduction.html
>
/// * <https://
material.google.com/
>
class
Material
extends
StatefulWidget
{
class
Material
extends
StatefulWidget
{
/// Creates a piece of material.
/// Creates a piece of material.
///
///
...
...
packages/flutter/lib/src/material/paginated_data_table.dart
View file @
cc11c39b
...
@@ -358,7 +358,7 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
...
@@ -358,7 +358,7 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
new
DefaultTextStyle
(
new
DefaultTextStyle
(
// These typographic styles aren't quite the regular ones. We pick the closest ones from the regular
// These typographic styles aren't quite the regular ones. We pick the closest ones from the regular
// list and then tweak them appropriately.
// list and then tweak them appropriately.
// See https://
www.google.com/design/spec
/components/data-tables.html#data-tables-tables-within-cards
// See https://
material.google.com
/components/data-tables.html#data-tables-tables-within-cards
style:
_selectedRowCount
>
0
?
themeData
.
textTheme
.
subhead
.
copyWith
(
color:
themeData
.
accentColor
)
style:
_selectedRowCount
>
0
?
themeData
.
textTheme
.
subhead
.
copyWith
(
color:
themeData
.
accentColor
)
:
themeData
.
textTheme
.
title
.
copyWith
(
fontWeight:
FontWeight
.
w400
),
:
themeData
.
textTheme
.
title
.
copyWith
(
fontWeight:
FontWeight
.
w400
),
child:
new
IconTheme
.
merge
(
child:
new
IconTheme
.
merge
(
...
...
packages/flutter/lib/src/material/progress_indicator.dart
View file @
cc11c39b
...
@@ -23,7 +23,7 @@ const double _kCircularProgressIndicatorStrokeWidth = 4.0;
...
@@ -23,7 +23,7 @@ const double _kCircularProgressIndicatorStrokeWidth = 4.0;
///
///
/// See also:
/// See also:
///
///
/// * <https://
www.google.com/design/spec
/components/progress-activity.html>
/// * <https://
material.google.com
/components/progress-activity.html>
abstract
class
ProgressIndicator
extends
StatefulWidget
{
abstract
class
ProgressIndicator
extends
StatefulWidget
{
/// Creates a progress indicator.
/// Creates a progress indicator.
///
///
...
@@ -130,7 +130,7 @@ class _LinearProgressIndicatorPainter extends CustomPainter {
...
@@ -130,7 +130,7 @@ class _LinearProgressIndicatorPainter extends CustomPainter {
/// See also:
/// See also:
///
///
/// * [CircularProgressIndicator]
/// * [CircularProgressIndicator]
/// * <https://
www.google.com/design/spec
/components/progress-activity.html#progress-activity-types-of-indicators>
/// * <https://
material.google.com
/components/progress-activity.html#progress-activity-types-of-indicators>
class
LinearProgressIndicator
extends
ProgressIndicator
{
class
LinearProgressIndicator
extends
ProgressIndicator
{
/// Creates a linear progress indicator.
/// Creates a linear progress indicator.
///
///
...
@@ -276,7 +276,7 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
...
@@ -276,7 +276,7 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
/// See also:
/// See also:
///
///
/// * [LinearProgressIndicator]
/// * [LinearProgressIndicator]
/// * <https://
www.google.com/design/spec
/components/progress-activity.html#progress-activity-types-of-indicators>
/// * <https://
material.google.com
/components/progress-activity.html#progress-activity-types-of-indicators>
class
CircularProgressIndicator
extends
ProgressIndicator
{
class
CircularProgressIndicator
extends
ProgressIndicator
{
/// Creates a circular progress indicator.
/// Creates a circular progress indicator.
///
///
...
...
packages/flutter/lib/src/material/radio.dart
View file @
cc11c39b
...
@@ -34,7 +34,7 @@ const double _kInnerRadius = 5.0;
...
@@ -34,7 +34,7 @@ const double _kInnerRadius = 5.0;
/// * [CheckBox]
/// * [CheckBox]
/// * [Slider]
/// * [Slider]
/// * [Switch]
/// * [Switch]
/// * <https://
www.google.com/design/spec
/components/selection-controls.html#selection-controls-radio-button>
/// * <https://
material.google.com
/components/selection-controls.html#selection-controls-radio-button>
class
Radio
<
T
>
extends
StatefulWidget
{
class
Radio
<
T
>
extends
StatefulWidget
{
/// Creates a material design radio button.
/// Creates a material design radio button.
///
///
...
...
packages/flutter/lib/src/material/raised_button.dart
View file @
cc11c39b
...
@@ -31,7 +31,7 @@ import 'theme.dart';
...
@@ -31,7 +31,7 @@ import 'theme.dart';
/// * [FlatButton]
/// * [FlatButton]
/// * [DropdownButton]
/// * [DropdownButton]
/// * [FloatingActionButton]
/// * [FloatingActionButton]
/// * <https://
www.google.com/design/spec
/components/buttons.html>
/// * <https://
material.google.com
/components/buttons.html>
class
RaisedButton
extends
StatelessWidget
{
class
RaisedButton
extends
StatelessWidget
{
/// Creates a raised button.
/// Creates a raised button.
///
///
...
...
packages/flutter/lib/src/material/refresh_indicator.dart
View file @
cc11c39b
...
@@ -79,7 +79,7 @@ enum _DismissTransition {
...
@@ -79,7 +79,7 @@ enum _DismissTransition {
///
///
/// See also:
/// See also:
///
///
/// * <https://
www.google.com/design/spec
/patterns/swipe-to-refresh.html>
/// * <https://
material.google.com
/patterns/swipe-to-refresh.html>
/// * [RefreshIndicatorState], can be used to programatically show the refresh indicator.
/// * [RefreshIndicatorState], can be used to programatically show the refresh indicator.
/// * [RefreshProgressIndicator].
/// * [RefreshProgressIndicator].
class
RefreshIndicator
extends
StatefulWidget
{
class
RefreshIndicator
extends
StatefulWidget
{
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
cc11c39b
...
@@ -296,7 +296,7 @@ class _FloatingActionButtonTransitionState extends State<_FloatingActionButtonTr
...
@@ -296,7 +296,7 @@ class _FloatingActionButtonTransitionState extends State<_FloatingActionButtonTr
/// * [SnackBar]
/// * [SnackBar]
/// * [BottomSheet]
/// * [BottomSheet]
/// * [ScaffoldState]
/// * [ScaffoldState]
/// * <https://
www.google.com/design/spec
/layout/structure.html>
/// * <https://
material.google.com
/layout/structure.html>
class
Scaffold
extends
StatefulWidget
{
class
Scaffold
extends
StatefulWidget
{
/// Creates a visual scaffold for material design widgets.
/// Creates a visual scaffold for material design widgets.
///
///
...
@@ -525,7 +525,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
...
@@ -525,7 +525,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
///
///
/// * [BottomSheet]
/// * [BottomSheet]
/// * [showModalBottomSheet]
/// * [showModalBottomSheet]
/// * <https://
www.google.com/design/spec
/components/bottom-sheets.html#bottom-sheets-persistent-bottom-sheets>
/// * <https://
material.google.com
/components/bottom-sheets.html#bottom-sheets-persistent-bottom-sheets>
PersistentBottomSheetController
<
dynamic
/*=T*/
>
showBottomSheet
/*<T>*/
(
WidgetBuilder
builder
)
{
PersistentBottomSheetController
<
dynamic
/*=T*/
>
showBottomSheet
/*<T>*/
(
WidgetBuilder
builder
)
{
if
(
_currentBottomSheet
!=
null
)
{
if
(
_currentBottomSheet
!=
null
)
{
_currentBottomSheet
.
close
();
_currentBottomSheet
.
close
();
...
...
packages/flutter/lib/src/material/shadows.dart
View file @
cc11c39b
...
@@ -6,7 +6,7 @@ import 'dart:ui' show Color, Offset;
...
@@ -6,7 +6,7 @@ import 'dart:ui' show Color, Offset;
import
'package:flutter/painting.dart'
;
import
'package:flutter/painting.dart'
;
// Based on http://
www.google.com/design/spec
/what-is-material/elevation-shadows.html
// Based on http://
material.google.com
/what-is-material/elevation-shadows.html
// Currently, only the elevation values that are bound to one or more widgets are
// Currently, only the elevation values that are bound to one or more widgets are
// defined here.
// defined here.
...
@@ -20,7 +20,7 @@ import 'package:flutter/painting.dart';
...
@@ -20,7 +20,7 @@ import 'package:flutter/painting.dart';
/// See also:
/// See also:
///
///
/// * [Material]
/// * [Material]
/// * <https://
www.google.com/design/spec
/what-is-material/elevation-shadows.html>
/// * <https://
material.google.com
/what-is-material/elevation-shadows.html>
const
Map
<
int
,
List
<
BoxShadow
>>
kElevationToShadow
=
_elevationToShadow
;
// to hide the literal from the docs
const
Map
<
int
,
List
<
BoxShadow
>>
kElevationToShadow
=
_elevationToShadow
;
// to hide the literal from the docs
const
Color
_kKeyUmbraOpacity
=
const
Color
(
0x33000000
);
// alpha = 0.2
const
Color
_kKeyUmbraOpacity
=
const
Color
(
0x33000000
);
// alpha = 0.2
...
...
packages/flutter/lib/src/material/slider.dart
View file @
cc11c39b
...
@@ -38,7 +38,7 @@ import 'typography.dart';
...
@@ -38,7 +38,7 @@ import 'typography.dart';
/// * [CheckBox]
/// * [CheckBox]
/// * [Radio]
/// * [Radio]
/// * [Switch]
/// * [Switch]
/// * <https://
www.google.com/design/spec
/components/sliders.html>
/// * <https://
material.google.com
/components/sliders.html>
class
Slider
extends
StatefulWidget
{
class
Slider
extends
StatefulWidget
{
/// Creates a material design slider.
/// Creates a material design slider.
///
///
...
...
packages/flutter/lib/src/material/snack_bar.dart
View file @
cc11c39b
...
@@ -13,7 +13,7 @@ import 'theme_data.dart';
...
@@ -13,7 +13,7 @@ import 'theme_data.dart';
import
'theme.dart'
;
import
'theme.dart'
;
import
'typography.dart'
;
import
'typography.dart'
;
// https://
www.google.com/design/spec
/components/snackbars-toasts.html#snackbars-toasts-specs
// https://
material.google.com
/components/snackbars-toasts.html#snackbars-toasts-specs
const
double
_kSnackBarPadding
=
24.0
;
const
double
_kSnackBarPadding
=
24.0
;
const
double
_kSingleLineVerticalPadding
=
14.0
;
const
double
_kSingleLineVerticalPadding
=
14.0
;
const
double
_kMultiLineVerticalTopPadding
=
24.0
;
const
double
_kMultiLineVerticalTopPadding
=
24.0
;
...
@@ -42,7 +42,7 @@ const Curve _snackBarFadeCurve = const Interval(0.72, 1.0, curve: Curves.fastOut
...
@@ -42,7 +42,7 @@ const Curve _snackBarFadeCurve = const Interval(0.72, 1.0, curve: Curves.fastOut
/// See also:
/// See also:
///
///
/// * [SnackBar]
/// * [SnackBar]
/// * <https://
www.google.com/design/spec
/components/snackbars-toasts.html>
/// * <https://
material.google.com
/components/snackbars-toasts.html>
class
SnackBarAction
extends
StatefulWidget
{
class
SnackBarAction
extends
StatefulWidget
{
/// Creates an action for a [SnackBar].
/// Creates an action for a [SnackBar].
///
///
...
@@ -99,7 +99,7 @@ class _SnackBarActionState extends State<SnackBarAction> {
...
@@ -99,7 +99,7 @@ class _SnackBarActionState extends State<SnackBarAction> {
///
///
/// * [Scaffold.of] and [ScaffoldState.showSnackBar]
/// * [Scaffold.of] and [ScaffoldState.showSnackBar]
/// * [SnackBarAction]
/// * [SnackBarAction]
/// * <https://
www.google.com/design/spec
/components/snackbars-toasts.html>
/// * <https://
material.google.com
/components/snackbars-toasts.html>
class
SnackBar
extends
StatelessWidget
{
class
SnackBar
extends
StatelessWidget
{
/// Creates a snack bar.
/// Creates a snack bar.
///
///
...
...
packages/flutter/lib/src/material/switch.dart
View file @
cc11c39b
...
@@ -31,7 +31,7 @@ import 'toggleable.dart';
...
@@ -31,7 +31,7 @@ import 'toggleable.dart';
/// * [CheckBox]
/// * [CheckBox]
/// * [Radio]
/// * [Radio]
/// * [Slider]
/// * [Slider]
/// * <https://
www.google.com/design/spec
/components/selection-controls.html#selection-controls-switch>
/// * <https://
material.google.com
/components/selection-controls.html#selection-controls-switch>
class
Switch
extends
StatefulWidget
{
class
Switch
extends
StatefulWidget
{
/// Creates a material design switch.
/// Creates a material design switch.
///
///
...
...
packages/flutter/lib/src/material/tabs.dart
View file @
cc11c39b
...
@@ -23,7 +23,7 @@ import 'theme.dart';
...
@@ -23,7 +23,7 @@ import 'theme.dart';
typedef
void
_TabLayoutChanged
(
Size
size
,
List
<
double
>
widths
);
typedef
void
_TabLayoutChanged
(
Size
size
,
List
<
double
>
widths
);
// See https://
www.google.com/design/spec
/components/tabs.html#tabs-specs
// See https://
material.google.com
/components/tabs.html#tabs-specs
const
double
_kTabHeight
=
46.0
;
const
double
_kTabHeight
=
46.0
;
const
double
_kTextAndIconTabHeight
=
72.0
;
const
double
_kTextAndIconTabHeight
=
72.0
;
const
double
_kTabIndicatorHeight
=
2.0
;
const
double
_kTabIndicatorHeight
=
2.0
;
...
@@ -720,7 +720,7 @@ class _TabIndicatorTween extends Tween<Rect> {
...
@@ -720,7 +720,7 @@ class _TabIndicatorTween extends Tween<Rect> {
/// * [TabBarSelection]
/// * [TabBarSelection]
/// * [TabBarView]
/// * [TabBarView]
/// * [AppBar.tabBar]
/// * [AppBar.tabBar]
/// * <https://
www.google.com/design/spec
/components/tabs.html>
/// * <https://
material.google.com
/components/tabs.html>
class
TabBar
<
T
>
extends
Scrollable
implements
AppBarBottomWidget
{
class
TabBar
<
T
>
extends
Scrollable
implements
AppBarBottomWidget
{
/// Creates a widget that displays a horizontal row of tabs, one per label.
/// Creates a widget that displays a horizontal row of tabs, one per label.
///
///
...
@@ -1075,7 +1075,7 @@ class _TabBarState<T> extends ScrollableState<TabBar<T>> implements TabBarSelect
...
@@ -1075,7 +1075,7 @@ class _TabBarState<T> extends ScrollableState<TabBar<T>> implements TabBarSelect
///
///
/// * [TabBarSelection]
/// * [TabBarSelection]
/// * [TabBar]
/// * [TabBar]
/// * <https://
www.google.com/design/spec
/components/tabs.html>
/// * <https://
material.google.com
/components/tabs.html>
class
TabBarView
<
T
>
extends
PageableList
{
class
TabBarView
<
T
>
extends
PageableList
{
/// Creates a widget that displays the contents of a tab.
/// Creates a widget that displays the contents of a tab.
///
///
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
cc11c39b
...
@@ -64,7 +64,7 @@ class ThemeData {
...
@@ -64,7 +64,7 @@ class ThemeData {
/// ([accentColorBrightness]), so that the right contrasting text
/// ([accentColorBrightness]), so that the right contrasting text
/// color will be used over the accent color.
/// color will be used over the accent color.
///
///
/// See <https://
www.google.com/design/spec
/style/color.html> for
/// See <https://
material.google.com
/style/color.html> for
/// more discussion on how to pick the right colors.
/// more discussion on how to pick the right colors.
factory
ThemeData
({
factory
ThemeData
({
Brightness
brightness
,
Brightness
brightness
,
...
...
packages/flutter/lib/src/material/time_picker.dart
View file @
cc11c39b
...
@@ -726,7 +726,7 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
...
@@ -726,7 +726,7 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
/// See also:
/// See also:
///
///
/// * [showDatePicker]
/// * [showDatePicker]
/// * <https://
www.google.com/design/spec
/components/pickers.html#pickers-time-pickers>
/// * <https://
material.google.com
/components/pickers.html#pickers-time-pickers>
Future
<
TimeOfDay
>
showTimePicker
({
Future
<
TimeOfDay
>
showTimePicker
({
BuildContext
context
,
BuildContext
context
,
TimeOfDay
initialTime
TimeOfDay
initialTime
...
...
packages/flutter/lib/src/material/tooltip.dart
View file @
cc11c39b
...
@@ -32,7 +32,7 @@ const Duration _kShowDuration = const Duration(milliseconds: 1500);
...
@@ -32,7 +32,7 @@ const Duration _kShowDuration = const Duration(milliseconds: 1500);
///
///
/// See also:
/// See also:
///
///
/// * <https://
www.google.com/design/spec
/components/tooltips.html>
/// * <https://
material.google.com
/components/tooltips.html>
class
Tooltip
extends
StatefulWidget
{
class
Tooltip
extends
StatefulWidget
{
/// Creates a tooltip.
/// Creates a tooltip.
///
///
...
...
packages/flutter/lib/src/material/typography.dart
View file @
cc11c39b
...
@@ -25,7 +25,7 @@ import 'colors.dart';
...
@@ -25,7 +25,7 @@ import 'colors.dart';
/// * [Typography]
/// * [Typography]
/// * [Theme]
/// * [Theme]
/// * [ThemeData]
/// * [ThemeData]
/// * <http://
www.google.com/design/spec
/style/typography.html>
/// * <http://
material.google.com
/style/typography.html>
class
TextTheme
{
class
TextTheme
{
/// Create a text theme that uses the given values.
/// Create a text theme that uses the given values.
///
///
...
@@ -267,7 +267,7 @@ class TextTheme {
...
@@ -267,7 +267,7 @@ class TextTheme {
///
///
/// * [Theme]
/// * [Theme]
/// * [ThemeData]
/// * [ThemeData]
/// * <http://
www.google.com/design/spec
/style/typography.html>
/// * <http://
material.google.com
/style/typography.html>
class
Typography
{
class
Typography
{
Typography
.
_
();
Typography
.
_
();
...
...
packages/flutter/lib/src/material/user_accounts_drawer_header.dart
View file @
cc11c39b
...
@@ -23,7 +23,7 @@ import 'debug.dart';
...
@@ -23,7 +23,7 @@ import 'debug.dart';
///
///
/// * [Drawer]
/// * [Drawer]
/// * [DrawerHeader], for a drawer header that doesn't show user acounts
/// * [DrawerHeader], for a drawer header that doesn't show user acounts
/// * <https://
www.google.com/design/spec
/patterns/navigation-drawer.html>
/// * <https://
material.google.com
/patterns/navigation-drawer.html>
class
UserAccountsDrawerHeader
extends
StatefulWidget
{
class
UserAccountsDrawerHeader
extends
StatefulWidget
{
/// Creates a material design drawer header.
/// Creates a material design drawer header.
///
///
...
...
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