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
a1800730
Unverified
Commit
a1800730
authored
Jul 29, 2020
by
Michael Goderbauer
Committed by
GitHub
Jul 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'unresolved doc reference' for material A-D (#62473)
parent
da62b6de
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
150 additions
and
134 deletions
+150
-134
cupertino.dart
packages/flutter/lib/cupertino.dart
+1
-0
animated_icons.dart
...utter/lib/src/material/animated_icons/animated_icons.dart
+5
-5
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+27
-21
app_bar_theme.dart
packages/flutter/lib/src/material/app_bar_theme.dart
+2
-2
bottom_app_bar.dart
packages/flutter/lib/src/material/bottom_app_bar.dart
+9
-6
bottom_app_bar_theme.dart
packages/flutter/lib/src/material/bottom_app_bar_theme.dart
+1
-1
bottom_navigation_bar.dart
packages/flutter/lib/src/material/bottom_navigation_bar.dart
+8
-6
bottom_navigation_bar_theme.dart
...flutter/lib/src/material/bottom_navigation_bar_theme.dart
+3
-3
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+3
-2
button_bar.dart
packages/flutter/lib/src/material/button_bar.dart
+10
-10
button_bar_theme.dart
packages/flutter/lib/src/material/button_bar_theme.dart
+6
-6
button_style.dart
packages/flutter/lib/src/material/button_style.dart
+1
-1
button_theme.dart
packages/flutter/lib/src/material/button_theme.dart
+6
-5
card.dart
packages/flutter/lib/src/material/card.dart
+12
-12
checkbox.dart
packages/flutter/lib/src/material/checkbox.dart
+2
-2
chip.dart
packages/flutter/lib/src/material/chip.dart
+8
-7
chip_theme.dart
packages/flutter/lib/src/material/chip_theme.dart
+9
-8
colors.dart
packages/flutter/lib/src/material/colors.dart
+1
-1
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+2
-2
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+9
-9
dialog_theme.dart
packages/flutter/lib/src/material/dialog_theme.dart
+2
-2
divider.dart
packages/flutter/lib/src/material/divider.dart
+1
-1
dropdown.dart
packages/flutter/lib/src/material/dropdown.dart
+8
-8
elevated_button_theme.dart
packages/flutter/lib/src/material/elevated_button_theme.dart
+1
-1
floating_action_button_location.dart
...ter/lib/src/material/floating_action_button_location.dart
+1
-1
material.dart
packages/flutter/lib/src/material/material.dart
+2
-2
material_state.dart
packages/flutter/lib/src/material/material_state.dart
+1
-1
slider_theme.dart
packages/flutter/lib/src/material/slider_theme.dart
+2
-2
tab_indicator.dart
packages/flutter/lib/src/material/tab_indicator.dart
+2
-2
text_form_field.dart
packages/flutter/lib/src/material/text_form_field.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
No files found.
packages/flutter/lib/cupertino.dart
View file @
a1800730
...
@@ -17,6 +17,7 @@ export 'src/cupertino/app.dart';
...
@@ -17,6 +17,7 @@ export 'src/cupertino/app.dart';
export
'src/cupertino/bottom_tab_bar.dart'
;
export
'src/cupertino/bottom_tab_bar.dart'
;
export
'src/cupertino/button.dart'
;
export
'src/cupertino/button.dart'
;
export
'src/cupertino/colors.dart'
;
export
'src/cupertino/colors.dart'
;
export
'src/cupertino/constants.dart'
;
export
'src/cupertino/context_menu.dart'
;
export
'src/cupertino/context_menu.dart'
;
export
'src/cupertino/context_menu_action.dart'
;
export
'src/cupertino/context_menu_action.dart'
;
export
'src/cupertino/date_picker.dart'
;
export
'src/cupertino/date_picker.dart'
;
...
...
packages/flutter/lib/src/material/animated_icons/animated_icons.dart
View file @
a1800730
...
@@ -87,11 +87,6 @@ class AnimatedIcon extends StatelessWidget {
...
@@ -87,11 +87,6 @@ class AnimatedIcon extends StatelessWidget {
///
///
/// Announced in accessibility modes (e.g TalkBack/VoiceOver).
/// Announced in accessibility modes (e.g TalkBack/VoiceOver).
/// This label does not show in the UI.
/// This label does not show in the UI.
///
/// See also:
///
/// * [Semantics.label], which is set to [semanticLabel] in the underlying
/// [Semantics] widget.
final
String
semanticLabel
;
final
String
semanticLabel
;
/// The text direction to use for rendering the icon.
/// The text direction to use for rendering the icon.
...
@@ -100,6 +95,11 @@ class AnimatedIcon extends StatelessWidget {
...
@@ -100,6 +95,11 @@ class AnimatedIcon extends StatelessWidget {
///
///
/// If the text direction is [TextDirection.rtl], the icon will be mirrored
/// If the text direction is [TextDirection.rtl], the icon will be mirrored
/// horizontally (e.g back arrow will point right).
/// horizontally (e.g back arrow will point right).
///
/// See also:
///
/// * [SemanticProperties.label], which is set to [semanticLabel] in the
/// underlying [Semantics] widget.
final
TextDirection
textDirection
;
final
TextDirection
textDirection
;
static
final
_UiPathFactory
_pathFactory
=
()
=>
ui
.
Path
();
static
final
_UiPathFactory
_pathFactory
=
()
=>
ui
.
Path
();
...
...
packages/flutter/lib/src/material/app_bar.dart
View file @
a1800730
...
@@ -222,7 +222,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -222,7 +222,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
///
///
/// Typically the [leading] widget is an [Icon] or an [IconButton].
/// Typically the [leading] widget is an [Icon] or an [IconButton].
///
///
/// Becomes the leading component of the [NavigationTool
B
ar] built
/// Becomes the leading component of the [NavigationTool
b
ar] built
/// by this widget. The [leading] widget's width and height are constrained to
/// by this widget. The [leading] widget's width and height are constrained to
/// be no bigger than [leadingWidth] and [toolbarHeight] respectively.
/// be no bigger than [leadingWidth] and [toolbarHeight] respectively.
///
///
...
@@ -277,7 +277,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -277,7 +277,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// Typically a [Text] widget that contains a description of the current
/// Typically a [Text] widget that contains a description of the current
/// contents of the app.
/// contents of the app.
///
///
/// Becomes the middle component of the [NavigationTool
B
ar] built by this widget.
/// Becomes the middle component of the [NavigationTool
b
ar] built by this widget.
/// The [title]'s width is constrained to fit within the remaining space
/// The [title]'s width is constrained to fit within the remaining space
/// between the toolbar's [leading] and [actions] widgets. Its height is
/// between the toolbar's [leading] and [actions] widgets. Its height is
/// _not_ constrained. The [title] is vertically centered and clipped to fit
/// _not_ constrained. The [title] is vertically centered and clipped to fit
...
@@ -310,7 +310,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -310,7 +310,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// For less common operations, consider using a [PopupMenuButton] as the
/// For less common operations, consider using a [PopupMenuButton] as the
/// last action.
/// last action.
///
///
/// The [actions] become the trailing component of the [NavigationTool
B
ar] built
/// The [actions] become the trailing component of the [NavigationTool
b
ar] built
/// by this widget. The height of each action is constrained to be no bigger
/// by this widget. The height of each action is constrained to be no bigger
/// than the [toolbarHeight].
/// than the [toolbarHeight].
final
List
<
Widget
>
actions
;
final
List
<
Widget
>
actions
;
...
@@ -341,16 +341,16 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -341,16 +341,16 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
///
///
/// The value is non-negative.
/// The value is non-negative.
///
///
/// If this property is null, then [
ThemeData.appBarTheme.elevation] is used,
/// If this property is null, then [
AppBarTheme.elevation] of
///
if that is also null, the default value is 4, the appropriate elevation
///
[ThemeData.appBarTheme] is used. If that is also null, the default value
/// for app bars.
///
is 4, the appropriate elevation
for app bars.
final
double
elevation
;
final
double
elevation
;
/// The color to paint the shadow below the app bar.
/// The color to paint the shadow below the app bar.
///
///
/// If this property is null, then [
ThemeData.appBarTheme.shadowColor] is used,
/// If this property is null, then [
AppBarTheme.shadowColor] of
///
if that is also null, the default value is fully opaque black, the appropriat
e
///
[ThemeData.appBarTheme] is used. If that is also null, the default valu
e
/// color for shadows.
///
is fully opaque black, the appropriate
color for shadows.
final
Color
shadowColor
;
final
Color
shadowColor
;
/// The material's shape as well its shadow.
/// The material's shape as well its shadow.
...
@@ -362,22 +362,25 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -362,22 +362,25 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// The color to use for the app bar's material. Typically this should be set
/// The color to use for the app bar's material. Typically this should be set
/// along with [brightness], [iconTheme], [textTheme].
/// along with [brightness], [iconTheme], [textTheme].
///
///
/// If this property is null, then [ThemeData.appBarTheme.color] is used,
/// If this property is null, then [AppBarTheme.color] of
/// if that is also null, then [ThemeData.primaryColor] is used.
/// [ThemeData.appBarTheme] is used. If that is also null, then
/// [ThemeData.primaryColor] is used.
final
Color
backgroundColor
;
final
Color
backgroundColor
;
/// The brightness of the app bar's material. Typically this is set along
/// The brightness of the app bar's material. Typically this is set along
/// with [backgroundColor], [iconTheme], [textTheme].
/// with [backgroundColor], [iconTheme], [textTheme].
///
///
/// If this property is null, then [ThemeData.appBarTheme.brightness] is used,
/// If this property is null, then [AppBarTheme.brightness] of
/// if that is also null, then [ThemeData.primaryColorBrightness] is used.
/// [ThemeData.appBarTheme] is used. If that is also null, then
/// [ThemeData.primaryColorBrightness] is used.
final
Brightness
brightness
;
final
Brightness
brightness
;
/// The color, opacity, and size to use for app bar icons. Typically this
/// The color, opacity, and size to use for app bar icons. Typically this
/// is set along with [backgroundColor], [brightness], [textTheme].
/// is set along with [backgroundColor], [brightness], [textTheme].
///
///
/// If this property is null, then [ThemeData.appBarTheme.iconTheme] is used,
/// If this property is null, then [AppBarTheme.iconTheme] of
/// if that is also null, then [ThemeData.primaryIconTheme] is used.
/// [ThemeData.appBarTheme] is used. If that is also null, then
/// [ThemeData.primaryIconTheme] is used.
final
IconThemeData
iconTheme
;
final
IconThemeData
iconTheme
;
/// The color, opacity, and size to use for the icons that appear in the app
/// The color, opacity, and size to use for the icons that appear in the app
...
@@ -385,15 +388,17 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -385,15 +388,17 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// themed differently than the icon that appears in the app bar's [leading]
/// themed differently than the icon that appears in the app bar's [leading]
/// widget.
/// widget.
///
///
/// If this property is null, then [ThemeData.appBarTheme.actionsIconTheme] is
/// If this property is null, then [AppBarTheme.actionsIconTheme] of
/// used, if that is also null, then this falls back to [iconTheme].
/// [ThemeData.appBarTheme] is used. If that is also null, then this falls
/// back to [iconTheme].
final
IconThemeData
actionsIconTheme
;
final
IconThemeData
actionsIconTheme
;
/// The typographic styles to use for text in the app bar. Typically this is
/// The typographic styles to use for text in the app bar. Typically this is
/// set along with [brightness] [backgroundColor], [iconTheme].
/// set along with [brightness] [backgroundColor], [iconTheme].
///
///
/// If this property is null, then [ThemeData.appBarTheme.textTheme] is used,
/// If this property is null, then [AppBarTheme.textTheme] of
/// if that is also null, then [ThemeData.primaryTextTheme] is used.
/// [ThemeData.appBarTheme] is used. If that is also null, then
/// [ThemeData.primaryTextTheme] is used.
final
TextTheme
textTheme
;
final
TextTheme
textTheme
;
/// Whether this app bar is being displayed at the top of the screen.
/// Whether this app bar is being displayed at the top of the screen.
...
@@ -405,8 +410,9 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
...
@@ -405,8 +410,9 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// Whether the title should be centered.
/// Whether the title should be centered.
///
///
/// If this property is null, then [ThemeData.appBarTheme.centerTitle] is used,
/// If this property is null, then [AppBarTheme.centerTitle] of
/// if that is also null, then value is adapted to the current [TargetPlatform].
/// [ThemeData.appBarTheme] is used. If that is also null, then value is
/// adapted to the current [TargetPlatform].
final
bool
centerTitle
;
final
bool
centerTitle
;
/// Whether the title should be wrapped with header [Semantics].
/// Whether the title should be wrapped with header [Semantics].
...
...
packages/flutter/lib/src/material/app_bar_theme.dart
View file @
a1800730
...
@@ -31,7 +31,7 @@ import 'theme.dart';
...
@@ -31,7 +31,7 @@ import 'theme.dart';
/// application.
/// application.
@immutable
@immutable
class
AppBarTheme
with
Diagnosticable
{
class
AppBarTheme
with
Diagnosticable
{
/// Creates a theme that can be used for [ThemeData.
A
ppBarTheme].
/// Creates a theme that can be used for [ThemeData.
a
ppBarTheme].
const
AppBarTheme
({
const
AppBarTheme
({
this
.
brightness
,
this
.
brightness
,
this
.
color
,
this
.
color
,
...
@@ -48,7 +48,7 @@ class AppBarTheme with Diagnosticable {
...
@@ -48,7 +48,7 @@ class AppBarTheme with Diagnosticable {
/// If null, [AppBar] uses [ThemeData.primaryColorBrightness].
/// If null, [AppBar] uses [ThemeData.primaryColorBrightness].
final
Brightness
brightness
;
final
Brightness
brightness
;
/// Default value for [AppBar.
c
olor].
/// Default value for [AppBar.
backgroundC
olor].
///
///
/// If null, [AppBar] uses [ThemeData.primaryColor].
/// If null, [AppBar] uses [ThemeData.primaryColor].
final
Color
color
;
final
Color
color
;
...
...
packages/flutter/lib/src/material/bottom_app_bar.dart
View file @
a1800730
...
@@ -72,8 +72,9 @@ class BottomAppBar extends StatefulWidget {
...
@@ -72,8 +72,9 @@ class BottomAppBar extends StatefulWidget {
/// The bottom app bar's background color.
/// The bottom app bar's background color.
///
///
/// If this property is null then [ThemeData.bottomAppBarTheme.color] is used,
/// If this property is null then [BottomAppBarTheme.color] of
/// if that's null then [ThemeData.bottomAppBarColor] is used.
/// [ThemeData.bottomAppBarTheme] is used. If that's null then
/// [ThemeData.bottomAppBarColor] is used.
final
Color
color
;
final
Color
color
;
/// The z-coordinate at which to place this bottom app bar relative to its
/// The z-coordinate at which to place this bottom app bar relative to its
...
@@ -82,14 +83,16 @@ class BottomAppBar extends StatefulWidget {
...
@@ -82,14 +83,16 @@ class BottomAppBar extends StatefulWidget {
/// This controls the size of the shadow below the bottom app bar. The
/// This controls the size of the shadow below the bottom app bar. The
/// value is non-negative.
/// value is non-negative.
///
///
/// If this property is null then [ThemeData.bottomAppBarTheme.elevation] is used,
/// If this property is null then [BottomAppBarTheme.elevation] of
/// if that's null, the default value is 8.
/// [ThemeData.bottomAppBarTheme] is used. If that's null, the default value
/// is 8.
final
double
elevation
;
final
double
elevation
;
/// The notch that is made for the floating action button.
/// The notch that is made for the floating action button.
///
///
/// If this property is null then [ThemeData.bottomAppBarTheme.shape] is used,
/// If this property is null then [BottomAppBarTheme.shape] of
/// if that's null then the shape will be rectangular with no notch.
/// [ThemeData.bottomAppBarTheme] is used. If that's null then the shape will
/// be rectangular with no notch.
final
NotchedShape
shape
;
final
NotchedShape
shape
;
/// {@macro flutter.widgets.Clip}
/// {@macro flutter.widgets.Clip}
...
...
packages/flutter/lib/src/material/bottom_app_bar_theme.dart
View file @
a1800730
...
@@ -29,7 +29,7 @@ import 'theme.dart';
...
@@ -29,7 +29,7 @@ import 'theme.dart';
/// application.
/// application.
@immutable
@immutable
class
BottomAppBarTheme
with
Diagnosticable
{
class
BottomAppBarTheme
with
Diagnosticable
{
/// Creates a theme that can be used for [ThemeData.
B
ottomAppBarTheme].
/// Creates a theme that can be used for [ThemeData.
b
ottomAppBarTheme].
const
BottomAppBarTheme
({
const
BottomAppBarTheme
({
this
.
color
,
this
.
color
,
this
.
elevation
,
this
.
elevation
,
...
...
packages/flutter/lib/src/material/bottom_navigation_bar.dart
View file @
a1800730
...
@@ -154,7 +154,7 @@ class BottomNavigationBar extends StatefulWidget {
...
@@ -154,7 +154,7 @@ class BottomNavigationBar extends StatefulWidget {
/// are non-null, they will be used instead of [selectedItemColor] and
/// are non-null, they will be used instead of [selectedItemColor] and
/// [unselectedItemColor].
/// [unselectedItemColor].
///
///
/// If custom [IconThemData]s are used, you must provide both
/// If custom [IconThem
e
Data]s are used, you must provide both
/// [selectedIconTheme] and [unselectedIconTheme], and both
/// [selectedIconTheme] and [unselectedIconTheme], and both
/// [IconThemeData.color] and [IconThemeData.size] must be set.
/// [IconThemeData.color] and [IconThemeData.size] must be set.
///
///
...
@@ -246,7 +246,7 @@ class BottomNavigationBar extends StatefulWidget {
...
@@ -246,7 +246,7 @@ class BottomNavigationBar extends StatefulWidget {
/// The color of the [BottomNavigationBar] itself.
/// The color of the [BottomNavigationBar] itself.
///
///
/// If [type] is [BottomNavigationBarType.shifting] and the
/// If [type] is [BottomNavigationBarType.shifting] and the
/// [items]
s, have [BottomNavigationBarItem.backgroundColor] set, the [item]'s
/// [items]
have [BottomNavigationBarItem.backgroundColor] set, the [items]'
/// backgroundColor will splash and overwrite this color.
/// backgroundColor will splash and overwrite this color.
final
Color
backgroundColor
;
final
Color
backgroundColor
;
...
@@ -256,13 +256,13 @@ class BottomNavigationBar extends StatefulWidget {
...
@@ -256,13 +256,13 @@ class BottomNavigationBar extends StatefulWidget {
final
double
iconSize
;
final
double
iconSize
;
/// The color of the selected [BottomNavigationBarItem.icon] and
/// The color of the selected [BottomNavigationBarItem.icon] and
/// [BottomNavigationBarItem.
label
].
/// [BottomNavigationBarItem.
title
].
///
///
/// If null then the [ThemeData.primaryColor] is used.
/// If null then the [ThemeData.primaryColor] is used.
final
Color
selectedItemColor
;
final
Color
selectedItemColor
;
/// The color of the unselected [BottomNavigationBarItem.icon] and
/// The color of the unselected [BottomNavigationBarItem.icon] and
/// [BottomNavigationBarItem.
label
]s.
/// [BottomNavigationBarItem.
title
]s.
///
///
/// If null then the [TextTheme.caption]'s color is used.
/// If null then the [TextTheme.caption]'s color is used.
final
Color
unselectedItemColor
;
final
Color
unselectedItemColor
;
...
@@ -299,7 +299,8 @@ class BottomNavigationBar extends StatefulWidget {
...
@@ -299,7 +299,8 @@ class BottomNavigationBar extends StatefulWidget {
/// The font size of the [BottomNavigationBarItem] labels when they are selected.
/// The font size of the [BottomNavigationBarItem] labels when they are selected.
///
///
/// If [selectedLabelStyle.fontSize] is non-null, it will be used instead of this.
/// If [TextStyle.fontSize] of [selectedLabelStyle] is non-null, it will be
/// used instead of this.
///
///
/// Defaults to `14.0`.
/// Defaults to `14.0`.
final
double
selectedFontSize
;
final
double
selectedFontSize
;
...
@@ -307,7 +308,8 @@ class BottomNavigationBar extends StatefulWidget {
...
@@ -307,7 +308,8 @@ class BottomNavigationBar extends StatefulWidget {
/// The font size of the [BottomNavigationBarItem] labels when they are not
/// The font size of the [BottomNavigationBarItem] labels when they are not
/// selected.
/// selected.
///
///
/// If [unselectedLabelStyle.fontSize] is non-null, it will be used instead of this.
/// If [TextStyle.fontSize] of [unselectedLabelStyle] is non-null, it will be
/// used instead of this.
///
///
/// Defaults to `12.0`.
/// Defaults to `12.0`.
final
double
unselectedFontSize
;
final
double
unselectedFontSize
;
...
...
packages/flutter/lib/src/material/bottom_navigation_bar_theme.dart
View file @
a1800730
...
@@ -32,7 +32,7 @@ import 'theme.dart';
...
@@ -32,7 +32,7 @@ import 'theme.dart';
/// application.
/// application.
@immutable
@immutable
class
BottomNavigationBarThemeData
with
Diagnosticable
{
class
BottomNavigationBarThemeData
with
Diagnosticable
{
/// Creates a theme that can be used for [ThemeData.
B
ottomNavigationBarTheme].
/// Creates a theme that can be used for [ThemeData.
b
ottomNavigationBarTheme].
const
BottomNavigationBarThemeData
({
const
BottomNavigationBarThemeData
({
this
.
backgroundColor
,
this
.
backgroundColor
,
this
.
elevation
,
this
.
elevation
,
...
@@ -70,13 +70,13 @@ class BottomNavigationBarThemeData with Diagnosticable {
...
@@ -70,13 +70,13 @@ class BottomNavigationBarThemeData with Diagnosticable {
final
IconThemeData
unselectedIconTheme
;
final
IconThemeData
unselectedIconTheme
;
/// The color of the selected [BottomNavigationBarItem.icon] and
/// The color of the selected [BottomNavigationBarItem.icon] and
/// [BottomNavigationBarItem.
label
].
/// [BottomNavigationBarItem.
title
].
///
///
/// See [BottomNavigationBar.selectedItemColor].
/// See [BottomNavigationBar.selectedItemColor].
final
Color
selectedItemColor
;
final
Color
selectedItemColor
;
/// The color of the unselected [BottomNavigationBarItem.icon] and
/// The color of the unselected [BottomNavigationBarItem.icon] and
/// [BottomNavigationBarItem.
label
]s.
/// [BottomNavigationBarItem.
title
]s.
///
///
/// See [BottomNavigationBar.unselectedItemColor].
/// See [BottomNavigationBar.unselectedItemColor].
final
Color
unselectedItemColor
;
final
Color
unselectedItemColor
;
...
...
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
a1800730
...
@@ -154,8 +154,9 @@ class BottomSheet extends StatefulWidget {
...
@@ -154,8 +154,9 @@ class BottomSheet extends StatefulWidget {
/// a bottom sheet with rounded corners and an edge-to-edge [Image] at the
/// a bottom sheet with rounded corners and an edge-to-edge [Image] at the
/// top.
/// top.
///
///
/// If this property is null then [ThemeData.bottomSheetTheme.clipBehavior] is
/// If this property is null then [BottomSheetTheme.clipBehavior] of
/// used. If that's null then the behavior will be [Clip.none].
/// [ThemeData.bottomSheetTheme] is used. If that's null then the behavior
/// will be [Clip.none].
final
Clip
clipBehavior
;
final
Clip
clipBehavior
;
@override
@override
...
...
packages/flutter/lib/src/material/button_bar.dart
View file @
a1800730
...
@@ -76,41 +76,41 @@ class ButtonBar extends StatelessWidget {
...
@@ -76,41 +76,41 @@ class ButtonBar extends StatelessWidget {
/// How the children should be placed along the horizontal axis.
/// How the children should be placed along the horizontal axis.
///
///
/// If null then it will use [ButtonBarTheme.alignment]. If that is null,
/// If null then it will use [ButtonBarTheme
Data
.alignment]. If that is null,
/// it will default to [MainAxisAlignment.end].
/// it will default to [MainAxisAlignment.end].
final
MainAxisAlignment
alignment
;
final
MainAxisAlignment
alignment
;
/// How much horizontal space is available. See [Row.mainAxisSize].
/// How much horizontal space is available. See [Row.mainAxisSize].
///
///
/// If null then it will use the surrounding [ButtonBarTheme.mainAxisSize].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.mainAxisSize].
/// If that is null, it will default to [MainAxisSize.max].
/// If that is null, it will default to [MainAxisSize.max].
final
MainAxisSize
mainAxisSize
;
final
MainAxisSize
mainAxisSize
;
/// Overrides the surrounding [Button
Theme
.textTheme] to define a button's
/// Overrides the surrounding [Button
BarThemeData
.textTheme] to define a button's
/// base colors, size, internal padding and shape.
/// base colors, size, internal padding and shape.
///
///
/// If null then it will use the surrounding [ButtonBarTheme.buttonTextTheme].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.buttonTextTheme].
/// If that is null, it will default to [ButtonTextTheme.primary].
/// If that is null, it will default to [ButtonTextTheme.primary].
final
ButtonTextTheme
buttonTextTheme
;
final
ButtonTextTheme
buttonTextTheme
;
/// Overrides the surrounding [ButtonThemeData.minWidth] to define a button's
/// Overrides the surrounding [ButtonThemeData.minWidth] to define a button's
/// minimum width.
/// minimum width.
///
///
/// If null then it will use the surrounding [ButtonBarTheme.buttonMinWidth].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.buttonMinWidth].
/// If that is null, it will default to 64.0 logical pixels.
/// If that is null, it will default to 64.0 logical pixels.
final
double
buttonMinWidth
;
final
double
buttonMinWidth
;
/// Overrides the surrounding [ButtonThemeData.height] to define a button's
/// Overrides the surrounding [ButtonThemeData.height] to define a button's
/// minimum height.
/// minimum height.
///
///
/// If null then it will use the surrounding [ButtonBarTheme.buttonHeight].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.buttonHeight].
/// If that is null, it will default to 36.0 logical pixels.
/// If that is null, it will default to 36.0 logical pixels.
final
double
buttonHeight
;
final
double
buttonHeight
;
/// Overrides the surrounding [ButtonThemeData.padding] to define the padding
/// Overrides the surrounding [ButtonThemeData.padding] to define the padding
/// for a button's child (typically the button's label).
/// for a button's child (typically the button's label).
///
///
/// If null then it will use the surrounding [ButtonBarTheme.buttonPadding].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.buttonPadding].
/// If that is null, it will default to 8.0 logical pixels on the left
/// If that is null, it will default to 8.0 logical pixels on the left
/// and right.
/// and right.
final
EdgeInsetsGeometry
buttonPadding
;
final
EdgeInsetsGeometry
buttonPadding
;
...
@@ -118,7 +118,7 @@ class ButtonBar extends StatelessWidget {
...
@@ -118,7 +118,7 @@ class ButtonBar extends StatelessWidget {
/// Overrides the surrounding [ButtonThemeData.alignedDropdown] to define whether
/// Overrides the surrounding [ButtonThemeData.alignedDropdown] to define whether
/// a [DropdownButton] menu's width will match the button's width.
/// a [DropdownButton] menu's width will match the button's width.
///
///
/// If null then it will use the surrounding [ButtonBarTheme.buttonAlignedDropdown].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.buttonAlignedDropdown].
/// If that is null, it will default to false.
/// If that is null, it will default to false.
final
bool
buttonAlignedDropdown
;
final
bool
buttonAlignedDropdown
;
...
@@ -127,7 +127,7 @@ class ButtonBar extends StatelessWidget {
...
@@ -127,7 +127,7 @@ class ButtonBar extends StatelessWidget {
///
///
/// Overrides the surrounding [ButtonThemeData.layoutBehavior].
/// Overrides the surrounding [ButtonThemeData.layoutBehavior].
///
///
/// If null then it will use the surrounding [ButtonBarTheme.layoutBehavior].
/// If null then it will use the surrounding [ButtonBarTheme
Data
.layoutBehavior].
/// If that is null, it will default [ButtonBarLayoutBehavior.padded].
/// If that is null, it will default [ButtonBarLayoutBehavior.padded].
final
ButtonBarLayoutBehavior
layoutBehavior
;
final
ButtonBarLayoutBehavior
layoutBehavior
;
...
@@ -143,7 +143,7 @@ class ButtonBar extends StatelessWidget {
...
@@ -143,7 +143,7 @@ class ButtonBar extends StatelessWidget {
/// bottom and "ends" at the top.
/// bottom and "ends" at the top.
///
///
/// If null then it will use the surrounding
/// If null then it will use the surrounding
/// [ButtonBarTheme.overflowDirection]. If that is null, it will
/// [ButtonBarTheme
Data
.overflowDirection]. If that is null, it will
/// default to [VerticalDirection.down].
/// default to [VerticalDirection.down].
final
VerticalDirection
overflowDirection
;
final
VerticalDirection
overflowDirection
;
...
...
packages/flutter/lib/src/material/button_bar_theme.dart
View file @
a1800730
...
@@ -54,7 +54,7 @@ class ButtonBarThemeData with Diagnosticable {
...
@@ -54,7 +54,7 @@ class ButtonBarThemeData with Diagnosticable {
/// Defines a [ButtonBar] button's base colors, and the defaults for
/// Defines a [ButtonBar] button's base colors, and the defaults for
/// the button's minimum size, internal padding, and shape.
/// the button's minimum size, internal padding, and shape.
///
///
/// This will override the surrounding [ButtonTheme.textTheme] setting
/// This will override the surrounding [ButtonTheme
Data
.textTheme] setting
/// for buttons contained in the [ButtonBar].
/// for buttons contained in the [ButtonBar].
///
///
/// Despite the name, this property is not a [TextTheme], its value is not a
/// Despite the name, this property is not a [TextTheme], its value is not a
...
@@ -63,22 +63,22 @@ class ButtonBarThemeData with Diagnosticable {
...
@@ -63,22 +63,22 @@ class ButtonBarThemeData with Diagnosticable {
/// The minimum width for [ButtonBar] buttons.
/// The minimum width for [ButtonBar] buttons.
///
///
/// This will override the surrounding [ButtonTheme.minWidth] setting
/// This will override the surrounding [ButtonTheme
Data
.minWidth] setting
/// for buttons contained in the [ButtonBar].
/// for buttons contained in the [ButtonBar].
///
///
/// The actual horizontal space allocated for a button's child is
/// The actual horizontal space allocated for a button's child is
/// at least this value less the theme's horizontal [padding].
/// at least this value less the theme's horizontal [
ButtonThemeData.
padding].
final
double
buttonMinWidth
;
final
double
buttonMinWidth
;
/// The minimum height for [ButtonBar] buttons.
/// The minimum height for [ButtonBar] buttons.
///
///
/// This will override the surrounding [ButtonTheme.height] setting
/// This will override the surrounding [ButtonTheme
Data
.height] setting
/// for buttons contained in the [ButtonBar].
/// for buttons contained in the [ButtonBar].
final
double
buttonHeight
;
final
double
buttonHeight
;
/// Padding for a [ButtonBar] button's child (typically the button's label).
/// Padding for a [ButtonBar] button's child (typically the button's label).
///
///
/// This will override the surrounding [ButtonTheme.padding] setting
/// This will override the surrounding [ButtonTheme
Data
.padding] setting
/// for buttons contained in the [ButtonBar].
/// for buttons contained in the [ButtonBar].
final
EdgeInsetsGeometry
buttonPadding
;
final
EdgeInsetsGeometry
buttonPadding
;
...
@@ -90,7 +90,7 @@ class ButtonBarThemeData with Diagnosticable {
...
@@ -90,7 +90,7 @@ class ButtonBarThemeData with Diagnosticable {
/// edge of the menu's value with the leading edge of the values
/// edge of the menu's value with the leading edge of the values
/// displayed by the menu items.
/// displayed by the menu items.
///
///
/// This will override the surrounding [ButtonTheme.alignedDropdown] setting
/// This will override the surrounding [ButtonTheme
Data
.alignedDropdown] setting
/// for buttons contained in the [ButtonBar].
/// for buttons contained in the [ButtonBar].
///
///
/// This property only affects [DropdownButton] contained in a [ButtonBar]
/// This property only affects [DropdownButton] contained in a [ButtonBar]
...
...
packages/flutter/lib/src/material/button_style.dart
View file @
a1800730
...
@@ -121,7 +121,7 @@ class ButtonStyle with Diagnosticable {
...
@@ -121,7 +121,7 @@ class ButtonStyle with Diagnosticable {
/// The style for a button's [Text] widget descendants.
/// The style for a button's [Text] widget descendants.
///
///
/// The color of the [textStyle] is typically not used directly, the
/// The color of the [textStyle] is typically not used directly, the
/// [foreground
] color
is used instead.
/// [foreground
Color]
is used instead.
final
MaterialStateProperty
<
TextStyle
>
textStyle
;
final
MaterialStateProperty
<
TextStyle
>
textStyle
;
/// The button's background fill color.
/// The button's background fill color.
...
...
packages/flutter/lib/src/material/button_theme.dart
View file @
a1800730
...
@@ -251,7 +251,7 @@ class ButtonThemeData with Diagnosticable {
...
@@ -251,7 +251,7 @@ class ButtonThemeData with Diagnosticable {
/// Create a button theme object that can be used with [ButtonTheme]
/// Create a button theme object that can be used with [ButtonTheme]
/// or [ThemeData].
/// or [ThemeData].
///
///
/// The [textTheme], [minWidth], [height], [alignedDrop
D
own], and
/// The [textTheme], [minWidth], [height], [alignedDrop
d
own], and
/// [layoutBehavior] parameters must not be null. The [minWidth] and
/// [layoutBehavior] parameters must not be null. The [minWidth] and
/// [height] parameters must greater than or equal to zero.
/// [height] parameters must greater than or equal to zero.
///
///
...
@@ -596,7 +596,8 @@ class ButtonThemeData with Diagnosticable {
...
@@ -596,7 +596,8 @@ class ButtonThemeData with Diagnosticable {
///
///
/// If [button] is not [MaterialButton.enabled], the value of
/// If [button] is not [MaterialButton.enabled], the value of
/// [getDisabledTextColor] is returned. If the button is enabled and
/// [getDisabledTextColor] is returned. If the button is enabled and
/// [buttonTextColor] is non-null, then [buttonTextColor] is returned.
/// [MaterialButton.textColor] is non-null, then [MaterialButton.textColor]
/// is returned.
///
///
/// Otherwise the text color depends on the value of [getTextTheme]
/// Otherwise the text color depends on the value of [getTextTheme]
/// and [getBrightness].
/// and [getBrightness].
...
@@ -604,7 +605,7 @@ class ButtonThemeData with Diagnosticable {
...
@@ -604,7 +605,7 @@ class ButtonThemeData with Diagnosticable {
/// * [ButtonTextTheme.normal]: [Colors.white] is used if [getBrightness]
/// * [ButtonTextTheme.normal]: [Colors.white] is used if [getBrightness]
/// resolves to [Brightness.dark]. [Colors.black87] is used if
/// resolves to [Brightness.dark]. [Colors.black87] is used if
/// [getBrightness] resolves to [Brightness.light].
/// [getBrightness] resolves to [Brightness.light].
/// * [ButtonTextTheme.accent]: [
colorScheme.secondary
].
/// * [ButtonTextTheme.accent]: [
ColorScheme.secondary] of [colorScheme
].
/// * [ButtonTextTheme.primary]: If [getFillColor] is dark then [Colors.white],
/// * [ButtonTextTheme.primary]: If [getFillColor] is dark then [Colors.white],
/// otherwise if [button] is a [FlatButton] or an [OutlineButton] then
/// otherwise if [button] is a [FlatButton] or an [OutlineButton] then
/// [colorScheme.primary], otherwise [Colors.black].
/// [colorScheme.primary], otherwise [Colors.black].
...
@@ -854,9 +855,9 @@ class ButtonThemeData with Diagnosticable {
...
@@ -854,9 +855,9 @@ class ButtonThemeData with Diagnosticable {
/// The minimum size of the [button]'s tap target.
/// The minimum size of the [button]'s tap target.
///
///
/// Returns the button's [MaterialButton.
t
apTargetSize] if it is non-null.
/// Returns the button's [MaterialButton.
materialT
apTargetSize] if it is non-null.
///
///
/// Otherwise the value of the
[materialTapTargetSize]
constructor
/// Otherwise the value of the
`materialTapTargetSize`
constructor
/// parameter is returned if that's non-null.
/// parameter is returned if that's non-null.
///
///
/// Otherwise [MaterialTapTargetSize.padded] is returned.
/// Otherwise [MaterialTapTargetSize.padded] is returned.
...
...
packages/flutter/lib/src/material/card.dart
View file @
a1800730
...
@@ -122,8 +122,8 @@ class Card extends StatelessWidget {
...
@@ -122,8 +122,8 @@ class Card extends StatelessWidget {
///
///
/// Defines the card's [Material.color].
/// Defines the card's [Material.color].
///
///
/// If this property is null then [
ThemeData.cardTheme.color] is used,
/// If this property is null then [
CardTheme.color] of [ThemeData.cardTheme]
/// if that's null then [ThemeData.cardColor] is used.
/// i
s used. I
f that's null then [ThemeData.cardColor] is used.
final
Color
color
;
final
Color
color
;
/// The color to paint the shadow below the card.
/// The color to paint the shadow below the card.
...
@@ -138,17 +138,17 @@ class Card extends StatelessWidget {
...
@@ -138,17 +138,17 @@ class Card extends StatelessWidget {
///
///
/// Defines the card's [Material.elevation].
/// Defines the card's [Material.elevation].
///
///
/// If this property is null then [
ThemeData.cardTheme.elevation] is used,
/// If this property is null then [
CardTheme.elevation] of
///
i
f that's null, the default value is 1.0.
///
[ThemeData.cardTheme] is used. I
f that's null, the default value is 1.0.
final
double
elevation
;
final
double
elevation
;
/// The shape of the card's [Material].
/// The shape of the card's [Material].
///
///
/// Defines the card's [Material.shape].
/// Defines the card's [Material.shape].
///
///
/// If this property is null then [
ThemeData.cardTheme.shape] is used.
/// If this property is null then [
CardTheme.shape] of [ThemeData.cardTheme]
///
If that's null then the shape will be a [RoundedRectangleBorder] with a
///
is used. If that's null then the shape will be a [RoundedRectangleBorder]
/// circular corner radius of 4.0.
///
with a
circular corner radius of 4.0.
final
ShapeBorder
shape
;
final
ShapeBorder
shape
;
/// Whether to paint the [shape] border in front of the [child].
/// Whether to paint the [shape] border in front of the [child].
...
@@ -159,17 +159,17 @@ class Card extends StatelessWidget {
...
@@ -159,17 +159,17 @@ class Card extends StatelessWidget {
/// {@macro flutter.widgets.Clip}
/// {@macro flutter.widgets.Clip}
///
///
/// If this property is null then [
ThemeData.cardTheme.clipBehavior] is used.
/// If this property is null then [
CardTheme.clipBehavior] of
/// If that's null then the behavior will be [Clip.none].
///
[ThemeData.cardTheme] is used.
If that's null then the behavior will be [Clip.none].
final
Clip
clipBehavior
;
final
Clip
clipBehavior
;
/// The empty space that surrounds the card.
/// The empty space that surrounds the card.
///
///
/// Defines the card's outer [Container.margin].
/// Defines the card's outer [Container.margin].
///
///
/// If this property is null then [
ThemeData.cardTheme.margin] is used,
/// If this property is null then [
CardTheme.margin] of
///
if that's null, the default margin is 4.0 logical pixels on all sides:
///
[ThemeData.cardTheme] is used. If that's null, the default margin is 4.0
/// `EdgeInsets.all(4.0)`.
///
logical pixels on all sides:
`EdgeInsets.all(4.0)`.
final
EdgeInsetsGeometry
margin
;
final
EdgeInsetsGeometry
margin
;
/// Whether this widget represents a single semantic container, or if false
/// Whether this widget represents a single semantic container, or if false
...
...
packages/flutter/lib/src/material/checkbox.dart
View file @
a1800730
...
@@ -165,8 +165,8 @@ class Checkbox extends StatefulWidget {
...
@@ -165,8 +165,8 @@ class Checkbox extends StatefulWidget {
///
///
/// See also:
/// See also:
///
///
/// * [ThemeData.visualDensity], which specifies the [
density] for all widgets
/// * [ThemeData.visualDensity], which specifies the [
visualDensity] for all
/// within a [Theme].
/// wi
dgets wi
thin a [Theme].
final
VisualDensity
visualDensity
;
final
VisualDensity
visualDensity
;
/// The color for the checkbox's [Material] when it has the input focus.
/// The color for the checkbox's [Material] when it has the input focus.
...
...
packages/flutter/lib/src/material/chip.dart
View file @
a1800730
...
@@ -86,7 +86,7 @@ abstract class ChipAttributes {
...
@@ -86,7 +86,7 @@ abstract class ChipAttributes {
/// This only has an effect on widgets that respect the [DefaultTextStyle],
/// This only has an effect on widgets that respect the [DefaultTextStyle],
/// such as [Text].
/// such as [Text].
///
///
/// If [
label
Style.color] is a [MaterialStateProperty<Color>], [MaterialStateProperty.resolve]
/// If [
Text
Style.color] is a [MaterialStateProperty<Color>], [MaterialStateProperty.resolve]
/// is used for the following [MaterialState]s:
/// is used for the following [MaterialState]s:
///
///
/// * [MaterialState.disabled].
/// * [MaterialState.disabled].
...
@@ -130,8 +130,8 @@ abstract class ChipAttributes {
...
@@ -130,8 +130,8 @@ abstract class ChipAttributes {
///
///
/// See also:
/// See also:
///
///
/// * [ThemeData.visualDensity], which specifies the [
density] for all widgets
/// * [ThemeData.visualDensity], which specifies the [
visualDensity] for all
/// within a [Theme].
/// wi
dgets wi
thin a [Theme].
VisualDensity
get
visualDensity
;
VisualDensity
get
visualDensity
;
/// The padding around the [label] widget.
/// The padding around the [label] widget.
...
@@ -257,7 +257,7 @@ abstract class DeletableChipAttributes {
...
@@ -257,7 +257,7 @@ abstract class DeletableChipAttributes {
VoidCallback
get
onDeleted
;
VoidCallback
get
onDeleted
;
/// The [Color] for the delete icon. The default is based on the ambient
/// The [Color] for the delete icon. The default is based on the ambient
/// [IconTheme.color].
/// [IconTheme
Data
.color].
Color
get
deleteIconColor
;
Color
get
deleteIconColor
;
/// The message to be used for the chip's delete button tooltip.
/// The message to be used for the chip's delete button tooltip.
...
@@ -283,7 +283,8 @@ abstract class CheckmarkableChipAttributes {
...
@@ -283,7 +283,8 @@ abstract class CheckmarkableChipAttributes {
// ignore: unused_element
// ignore: unused_element
factory
CheckmarkableChipAttributes
.
_
()
=>
null
;
factory
CheckmarkableChipAttributes
.
_
()
=>
null
;
/// Whether or not to show a check mark when [selected] is true.
/// Whether or not to show a check mark when
/// [SelectableChipAttributes.selected] is true.
///
///
/// Defaults to true.
/// Defaults to true.
bool
get
showCheckmark
;
bool
get
showCheckmark
;
...
@@ -431,7 +432,7 @@ abstract class DisabledChipAttributes {
...
@@ -431,7 +432,7 @@ abstract class DisabledChipAttributes {
///
///
/// If this is true, but all of the user action callbacks are null (i.e.
/// If this is true, but all of the user action callbacks are null (i.e.
/// [SelectableChipAttributes.onSelected], [TappableChipAttributes.onPressed],
/// [SelectableChipAttributes.onSelected], [TappableChipAttributes.onPressed],
/// and [DeletableChipAttributes.onDelete]), then the
/// and [DeletableChipAttributes.onDelete
d
]), then the
/// control will still be shown as disabled.
/// control will still be shown as disabled.
///
///
/// This is typically used if you want the chip to be disabled, but also show
/// This is typically used if you want the chip to be disabled, but also show
...
@@ -447,7 +448,7 @@ abstract class DisabledChipAttributes {
...
@@ -447,7 +448,7 @@ abstract class DisabledChipAttributes {
///
///
/// The chip is disabled when [isEnabled] is false, or all three of
/// The chip is disabled when [isEnabled] is false, or all three of
/// [SelectableChipAttributes.onSelected], [TappableChipAttributes.onPressed],
/// [SelectableChipAttributes.onSelected], [TappableChipAttributes.onPressed],
/// and [DeletableChipAttributes.onDelete] are null.
/// and [DeletableChipAttributes.onDelete
d
] are null.
///
///
/// It defaults to [Colors.black38].
/// It defaults to [Colors.black38].
Color
get
disabledColor
;
Color
get
disabledColor
;
...
...
packages/flutter/lib/src/material/chip_theme.dart
View file @
a1800730
...
@@ -284,14 +284,15 @@ class ChipThemeData with Diagnosticable {
...
@@ -284,14 +284,15 @@ class ChipThemeData with Diagnosticable {
/// (slightly transparent black) for light themes, and Color(0xdeffffff)
/// (slightly transparent black) for light themes, and Color(0xdeffffff)
/// (slightly transparent white) for dark themes.
/// (slightly transparent white) for dark themes.
///
///
/// May be set to null, in which case the ambient [IconTheme.color] is used.
/// May be set to null, in which case the ambient [IconTheme
Data
.color] is used.
final
Color
deleteIconColor
;
final
Color
deleteIconColor
;
/// Color to be used for the chip's background indicating that it is disabled.
/// Color to be used for the chip's background indicating that it is disabled.
///
///
/// The chip is disabled when [isEnabled] is false, or all three of
/// The chip is disabled when [DisabledChipAttributes.isEnabled] is false, or
/// [SelectableChipAttributes.onSelected], [TappableChipAttributes.onPressed],
/// all three of [SelectableChipAttributes.onSelected],
/// and [DeletableChipAttributes.onDelete] are null.
/// [TappableChipAttributes.onPressed], and
/// [DeletableChipAttributes.onDeleted] are null.
///
///
/// It defaults to [Colors.black38].
/// It defaults to [Colors.black38].
final
Color
disabledColor
;
final
Color
disabledColor
;
...
@@ -299,14 +300,14 @@ class ChipThemeData with Diagnosticable {
...
@@ -299,14 +300,14 @@ class ChipThemeData with Diagnosticable {
/// Color to be used for the chip's background, indicating that it is
/// Color to be used for the chip's background, indicating that it is
/// selected.
/// selected.
///
///
/// The chip is selected when [selected] is true.
/// The chip is selected when [
SelectableChipAttributes.
selected] is true.
final
Color
selectedColor
;
final
Color
selectedColor
;
/// An alternate color to be used for the chip's background, indicating that
/// An alternate color to be used for the chip's background, indicating that
/// it is selected. For example, this color is used by [ChoiceChip] when the
/// it is selected. For example, this color is used by [ChoiceChip] when the
/// choice is selected.
/// choice is selected.
///
///
/// The chip is selected when [selected] is true.
/// The chip is selected when [
SelectableChipAttributes.
selected] is true.
final
Color
secondarySelectedColor
;
final
Color
secondarySelectedColor
;
/// Color of the chip's shadow when the elevation is greater than 0.
/// Color of the chip's shadow when the elevation is greater than 0.
...
@@ -328,7 +329,7 @@ class ChipThemeData with Diagnosticable {
...
@@ -328,7 +329,7 @@ class ChipThemeData with Diagnosticable {
/// * [shadowColor]
/// * [shadowColor]
final
Color
selectedShadowColor
;
final
Color
selectedShadowColor
;
/// Whether or not to show a check mark when [selected] is true.
/// Whether or not to show a check mark when [
SelectableChipAttributes.
selected] is true.
///
///
/// For instance, the [ChoiceChip] sets this to false so that it can be
/// For instance, the [ChoiceChip] sets this to false so that it can be
/// selected without showing the check mark.
/// selected without showing the check mark.
...
@@ -341,7 +342,7 @@ class ChipThemeData with Diagnosticable {
...
@@ -341,7 +342,7 @@ class ChipThemeData with Diagnosticable {
/// This will override the color set by the platform's brightness setting.
/// This will override the color set by the platform's brightness setting.
final
Color
checkmarkColor
;
final
Color
checkmarkColor
;
/// The padding around the [label] widget.
/// The padding around the [
Chip.
label] widget.
///
///
/// By default, this is 4 logical pixels at the beginning and the end of the
/// By default, this is 4 logical pixels at the beginning and the end of the
/// label, and zero on top and bottom.
/// label, and zero on top and bottom.
...
...
packages/flutter/lib/src/material/colors.dart
View file @
a1800730
...
@@ -331,7 +331,7 @@ class Colors {
...
@@ -331,7 +331,7 @@ class Colors {
/// White with 60% opacity.
/// White with 60% opacity.
///
///
/// Used for medium-emphasis text and hint text when [Theme.brightness] is
/// Used for medium-emphasis text and hint text when [Theme
Data
.brightness] is
/// set to [Brightness.dark].
/// set to [Brightness.dark].
///
///
/// 
/// 
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
a1800730
...
@@ -498,11 +498,11 @@ class DataTable extends StatelessWidget {
...
@@ -498,11 +498,11 @@ class DataTable extends StatelessWidget {
/// {@template flutter.material.dataTable.showCheckboxColumn}
/// {@template flutter.material.dataTable.showCheckboxColumn}
/// Whether the widget should display checkboxes for selectable rows.
/// Whether the widget should display checkboxes for selectable rows.
///
///
/// If true, a [Check
B
ox] will be placed at the beginning of each row that is
/// If true, a [Check
b
ox] will be placed at the beginning of each row that is
/// selectable. However, if [DataRow.onSelectChanged] is not set for any row,
/// selectable. However, if [DataRow.onSelectChanged] is not set for any row,
/// checkboxes will not be placed, even if this value is true.
/// checkboxes will not be placed, even if this value is true.
///
///
/// If false, all rows will not display a [Check
B
ox].
/// If false, all rows will not display a [Check
b
ox].
/// {@endtemplate}
/// {@endtemplate}
final
bool
showCheckboxColumn
;
final
bool
showCheckboxColumn
;
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
a1800730
...
@@ -281,8 +281,8 @@ class AlertDialog extends StatelessWidget {
...
@@ -281,8 +281,8 @@ class AlertDialog extends StatelessWidget {
/// Style for the text in the [title] of this [AlertDialog].
/// Style for the text in the [title] of this [AlertDialog].
///
///
/// If null, [DialogTheme.titleTextStyle] is used
, i
f that's null, defaults to
/// If null, [DialogTheme.titleTextStyle] is used
. I
f that's null, defaults to
/// [T
hemeData.textTheme.headline6
].
/// [T
extTheme.headline6] of [ThemeData.textTheme
].
final
TextStyle
titleTextStyle
;
final
TextStyle
titleTextStyle
;
/// The (optional) content of the dialog is displayed in the center of the
/// The (optional) content of the dialog is displayed in the center of the
...
@@ -304,15 +304,15 @@ class AlertDialog extends StatelessWidget {
...
@@ -304,15 +304,15 @@ class AlertDialog extends StatelessWidget {
/// Style for the text in the [content] of this [AlertDialog].
/// Style for the text in the [content] of this [AlertDialog].
///
///
/// If null, [DialogTheme.contentTextStyle] is used
, i
f that's null, defaults
/// If null, [DialogTheme.contentTextStyle] is used
. I
f that's null, defaults
/// to [T
hemeData.textTheme.subtitle1
].
/// to [T
extTheme.subtitle1] of [ThemeData.textTheme
].
final
TextStyle
contentTextStyle
;
final
TextStyle
contentTextStyle
;
/// The (optional) set of actions that are displayed at the bottom of the
/// The (optional) set of actions that are displayed at the bottom of the
/// dialog.
/// dialog.
///
///
/// Typically this is a list of [TextButton] widgets. It is recommended to
/// Typically this is a list of [TextButton] widgets. It is recommended to
/// set the [textAlign] to [TextAlign.end] for the [Text] within the
/// set the [
Text.
textAlign] to [TextAlign.end] for the [Text] within the
/// [TextButton], so that buttons whose labels wrap to an extra line align
/// [TextButton], so that buttons whose labels wrap to an extra line align
/// with the overall [ButtonBar]'s alignment within the dialog.
/// with the overall [ButtonBar]'s alignment within the dialog.
///
///
...
@@ -366,7 +366,7 @@ class AlertDialog extends StatelessWidget {
...
@@ -366,7 +366,7 @@ class AlertDialog extends StatelessWidget {
/// bottom and "ends" at the top.
/// bottom and "ends" at the top.
///
///
/// If null then it will use the surrounding
/// If null then it will use the surrounding
/// [ButtonBarTheme.overflowDirection]. If that is null, it will
/// [ButtonBarTheme
Data
.overflowDirection]. If that is null, it will
/// default to [VerticalDirection.down].
/// default to [VerticalDirection.down].
///
///
/// See also:
/// See also:
...
@@ -396,7 +396,7 @@ class AlertDialog extends StatelessWidget {
...
@@ -396,7 +396,7 @@ class AlertDialog extends StatelessWidget {
/// between the entire button bar and the edges of the dialog.
/// between the entire button bar and the edges of the dialog.
///
///
/// If this property is null, then it will use the surrounding
/// If this property is null, then it will use the surrounding
/// [ButtonBarTheme.buttonPadding]. If that is null, it will default to
/// [ButtonBarTheme
Data
.buttonPadding]. If that is null, it will default to
/// 8.0 logical pixels on the left and right.
/// 8.0 logical pixels on the left and right.
///
///
/// See also:
/// See also:
...
@@ -420,7 +420,7 @@ class AlertDialog extends StatelessWidget {
...
@@ -420,7 +420,7 @@ class AlertDialog extends StatelessWidget {
///
///
/// See also:
/// See also:
///
///
/// * [SemanticsConfiguration.
isRouteNam
e], for a description of how this
/// * [SemanticsConfiguration.
namesRout
e], for a description of how this
/// value is used.
/// value is used.
final
String
semanticLabel
;
final
String
semanticLabel
;
...
@@ -764,7 +764,7 @@ class SimpleDialog extends StatelessWidget {
...
@@ -764,7 +764,7 @@ class SimpleDialog extends StatelessWidget {
/// Style for the text in the [title] of this [SimpleDialog].
/// Style for the text in the [title] of this [SimpleDialog].
///
///
/// If null, [DialogTheme.titleTextStyle] is used
, i
f that's null, defaults to
/// If null, [DialogTheme.titleTextStyle] is used
. I
f that's null, defaults to
/// [ThemeData.textTheme.headline6].
/// [ThemeData.textTheme.headline6].
final
TextStyle
titleTextStyle
;
final
TextStyle
titleTextStyle
;
...
...
packages/flutter/lib/src/material/dialog_theme.dart
View file @
a1800730
...
@@ -56,12 +56,12 @@ class DialogTheme with Diagnosticable {
...
@@ -56,12 +56,12 @@ class DialogTheme with Diagnosticable {
/// Used to configure the [DefaultTextStyle] for the [AlertDialog.title] widget.
/// Used to configure the [DefaultTextStyle] for the [AlertDialog.title] widget.
///
///
/// If null, defaults to [T
hemeData.textTheme.headline6
].
/// If null, defaults to [T
extTheme.headline6] of [ThemeData.textTheme
].
final
TextStyle
titleTextStyle
;
final
TextStyle
titleTextStyle
;
/// Used to configure the [DefaultTextStyle] for the [AlertDialog.content] widget.
/// Used to configure the [DefaultTextStyle] for the [AlertDialog.content] widget.
///
///
/// If null, defaults to [T
hemeData.textTheme.subtitle1
].
/// If null, defaults to [T
extTheme.subtitle1] of [ThemeData.textTheme
].
final
TextStyle
contentTextStyle
;
final
TextStyle
contentTextStyle
;
/// Creates a copy of this object but with the given fields replaced with the
/// Creates a copy of this object but with the given fields replaced with the
...
...
packages/flutter/lib/src/material/divider.dart
View file @
a1800730
...
@@ -107,7 +107,7 @@ class Divider extends StatelessWidget {
...
@@ -107,7 +107,7 @@ class Divider extends StatelessWidget {
/// A divider with a [thickness] of 0.0 is always drawn as a line with a
/// A divider with a [thickness] of 0.0 is always drawn as a line with a
/// height of exactly one device pixel.
/// height of exactly one device pixel.
///
///
/// If this is null, then the [DividerThemeData.
dividerT
hickness] is used. If
/// If this is null, then the [DividerThemeData.
t
hickness] is used. If
/// that is also null, then this defaults to 0.0.
/// that is also null, then this defaults to 0.0.
final
double
thickness
;
final
double
thickness
;
...
...
packages/flutter/lib/src/material/dropdown.dart
View file @
a1800730
...
@@ -791,7 +791,7 @@ class DropdownButton<T> extends StatefulWidget {
...
@@ -791,7 +791,7 @@ class DropdownButton<T> extends StatefulWidget {
/// Creates a dropdown button.
/// Creates a dropdown button.
///
///
/// The [items] must have distinct values. If [value] isn't null then it
/// The [items] must have distinct values. If [value] isn't null then it
/// must be equal to one of the [Drop
D
ownMenuItem] values. If [items] or
/// must be equal to one of the [Drop
d
ownMenuItem] values. If [items] or
/// [onChanged] is null, the button will be disabled, the down arrow
/// [onChanged] is null, the button will be disabled, the down arrow
/// will be greyed out, and the [disabledHint] will be shown (if provided).
/// will be greyed out, and the [disabledHint] will be shown (if provided).
/// If [disabledHint] is null and [hint] is non-null, [hint] will instead be
/// If [disabledHint] is null and [hint] is non-null, [hint] will instead be
...
@@ -880,12 +880,12 @@ class DropdownButton<T> extends StatefulWidget {
...
@@ -880,12 +880,12 @@ class DropdownButton<T> extends StatefulWidget {
/// {@template flutter.material.dropdownButton.onChanged}
/// {@template flutter.material.dropdownButton.onChanged}
/// Called when the user selects an item.
/// Called when the user selects an item.
///
///
/// If the [onChanged] callback is null or the list of [
items] is null
/// If the [onChanged] callback is null or the list of [
DropdownButton.items]
/// then the dropdown button will be disabled, i.e. its arrow will be
///
is null
then the dropdown button will be disabled, i.e. its arrow will be
/// displayed in grey and it will not respond to input. A disabled button
/// displayed in grey and it will not respond to input. A disabled button
/// will display the [
disabledHint] widget if it is non-null. If
/// will display the [
DropdownButton.disabledHint] widget if it is non-null.
///
[disabledHint] is also null but [hint] is non-null, [hint] will instead
///
If [DropdownButton.disabledHint] is also null but [DropdownButton.hint] is
/// be displayed.
///
non-null, [DropdownButton.hint] will instead
be displayed.
/// {@endtemplate}
/// {@endtemplate}
final
ValueChanged
<
T
>
onChanged
;
final
ValueChanged
<
T
>
onChanged
;
...
@@ -1014,7 +1014,7 @@ class DropdownButton<T> extends StatefulWidget {
...
@@ -1014,7 +1014,7 @@ class DropdownButton<T> extends StatefulWidget {
/// The color of any [Icon] descendant of [icon] if this button is disabled,
/// The color of any [Icon] descendant of [icon] if this button is disabled,
/// i.e. if [onChanged] is null.
/// i.e. if [onChanged] is null.
///
///
/// Defaults to [
Colors.grey.shade400
] when the theme's
/// Defaults to [
MaterialColor.shade400] of [Colors.grey
] when the theme's
/// [ThemeData.brightness] is [Brightness.light] and to
/// [ThemeData.brightness] is [Brightness.light] and to
/// [Colors.white10] when it is [Brightness.dark]
/// [Colors.white10] when it is [Brightness.dark]
final
Color
iconDisabledColor
;
final
Color
iconDisabledColor
;
...
@@ -1022,7 +1022,7 @@ class DropdownButton<T> extends StatefulWidget {
...
@@ -1022,7 +1022,7 @@ class DropdownButton<T> extends StatefulWidget {
/// The color of any [Icon] descendant of [icon] if this button is enabled,
/// The color of any [Icon] descendant of [icon] if this button is enabled,
/// i.e. if [onChanged] is defined.
/// i.e. if [onChanged] is defined.
///
///
/// Defaults to [
Colors.grey.shade700
] when the theme's
/// Defaults to [
MaterialColor.shade700] of [Colors.grey
] when the theme's
/// [ThemeData.brightness] is [Brightness.light] and to
/// [ThemeData.brightness] is [Brightness.light] and to
/// [Colors.white70] when it is [Brightness.dark]
/// [Colors.white70] when it is [Brightness.dark]
final
Color
iconEnabledColor
;
final
Color
iconEnabledColor
;
...
...
packages/flutter/lib/src/material/elevated_button_theme.dart
View file @
a1800730
...
@@ -138,7 +138,7 @@ class ContainedButtonThemeData extends ElevatedButtonThemeData {
...
@@ -138,7 +138,7 @@ class ContainedButtonThemeData extends ElevatedButtonThemeData {
/// Please use [new ElevatedButtonTheme].
/// Please use [new ElevatedButtonTheme].
const
ContainedButtonThemeData
({
ButtonStyle
style
})
:
super
(
style:
style
);
const
ContainedButtonThemeData
({
ButtonStyle
style
})
:
super
(
style:
style
);
/// Please use [ElevatedButtonTheme
.lerp()
].
/// Please use [ElevatedButtonTheme
Data.lerp
].
static
ContainedButtonThemeData
lerp
(
ContainedButtonThemeData
a
,
ContainedButtonThemeData
b
,
double
t
)
{
static
ContainedButtonThemeData
lerp
(
ContainedButtonThemeData
a
,
ContainedButtonThemeData
b
,
double
t
)
{
return
ElevatedButtonThemeData
.
lerp
(
a
,
b
,
t
)
as
ContainedButtonThemeData
;
return
ElevatedButtonThemeData
.
lerp
(
a
,
b
,
t
)
as
ContainedButtonThemeData
;
}
}
...
...
packages/flutter/lib/src/material/floating_action_button_location.dart
View file @
a1800730
...
@@ -416,7 +416,7 @@ abstract class StandardFabLocation extends FloatingActionButtonLocation {
...
@@ -416,7 +416,7 @@ abstract class StandardFabLocation extends FloatingActionButtonLocation {
/// Mixin for a "top" floating action button location, such as
/// Mixin for a "top" floating action button location, such as
/// [FloatingActionButtonLocation.startTop].
/// [FloatingActionButtonLocation.startTop].
///
///
/// The
[adjustment]
, typically [kMiniButtonOffsetAdjustment], is ignored in the
/// The
`adjustment`
, typically [kMiniButtonOffsetAdjustment], is ignored in the
/// Y axis of "top" positions. For "top" positions, the X offset is adjusted to
/// Y axis of "top" positions. For "top" positions, the X offset is adjusted to
/// move closer to the edge of the screen. This is so that a minified floating
/// move closer to the edge of the screen. This is so that a minified floating
/// action button appears to align with [CircleAvatar]s in the
/// action button appears to align with [CircleAvatar]s in the
...
...
packages/flutter/lib/src/material/material.dart
View file @
a1800730
...
@@ -218,7 +218,7 @@ class Material extends StatefulWidget {
...
@@ -218,7 +218,7 @@ class Material extends StatefulWidget {
/// widget conceptually defines an independent printed piece of material.
/// widget conceptually defines an independent printed piece of material.
///
///
/// Defaults to 0. Changing this value will cause the shadow and the elevation
/// Defaults to 0. Changing this value will cause the shadow and the elevation
/// overlay to animate over [animationDuration].
/// overlay to animate over [
Material.
animationDuration].
///
///
/// The value is non-negative.
/// The value is non-negative.
///
///
...
@@ -226,7 +226,7 @@ class Material extends StatefulWidget {
...
@@ -226,7 +226,7 @@ class Material extends StatefulWidget {
///
///
/// * [ThemeData.applyElevationOverlayColor] which controls the whether
/// * [ThemeData.applyElevationOverlayColor] which controls the whether
/// an overlay color will be applied to indicate elevation.
/// an overlay color will be applied to indicate elevation.
/// * [color] which may have an elevation overlay applied.
/// * [
Material.
color] which may have an elevation overlay applied.
///
///
/// {@endtemplate}
/// {@endtemplate}
final
double
elevation
;
final
double
elevation
;
...
...
packages/flutter/lib/src/material/material_state.dart
View file @
a1800730
...
@@ -18,7 +18,7 @@ import 'package:flutter/rendering.dart';
...
@@ -18,7 +18,7 @@ import 'package:flutter/rendering.dart';
///
///
/// See also:
/// See also:
///
///
/// * [MaterialProperty], an interface for objects that "resolve" to
/// * [Material
State
Property], an interface for objects that "resolve" to
/// different values depending on a widget's material state.
/// different values depending on a widget's material state.
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// which is used in APIs that need to accept either a [Color] or a
/// which is used in APIs that need to accept either a [Color] or a
...
...
packages/flutter/lib/src/material/slider_theme.dart
View file @
a1800730
...
@@ -3227,7 +3227,7 @@ class _PaddleSliderValueIndicatorPathPainter {
...
@@ -3227,7 +3227,7 @@ class _PaddleSliderValueIndicatorPathPainter {
}
}
}
}
/// A callback that formats a numeric value from a [Slider] or [Range
r
Slider] widget.
/// A callback that formats a numeric value from a [Slider] or [RangeSlider] widget.
///
///
/// See also:
/// See also:
///
///
...
@@ -3241,7 +3241,7 @@ typedef SemanticFormatterCallback = String Function(double value);
...
@@ -3241,7 +3241,7 @@ typedef SemanticFormatterCallback = String Function(double value);
/// other, it waits for movement defined by [dx] to determine the selected
/// other, it waits for movement defined by [dx] to determine the selected
/// thumb.
/// thumb.
///
///
/// Override [
RangeSlider
.thumbSelector] for custom thumb selection.
/// Override [
SliderThemeData
.thumbSelector] for custom thumb selection.
typedef
RangeThumbSelector
=
Thumb
Function
(
typedef
RangeThumbSelector
=
Thumb
Function
(
TextDirection
textDirection
,
TextDirection
textDirection
,
RangeValues
values
,
RangeValues
values
,
...
...
packages/flutter/lib/src/material/tab_indicator.dart
View file @
a1800730
...
@@ -15,8 +15,8 @@ import 'colors.dart';
...
@@ -15,8 +15,8 @@ import 'colors.dart';
/// The [borderSide] defines the line's color and weight.
/// The [borderSide] defines the line's color and weight.
///
///
/// The [TabBar.indicatorSize] property can be used to define the indicator's
/// The [TabBar.indicatorSize] property can be used to define the indicator's
/// bounds in terms of its (centered) widget with [TabIndicatorSize.label],
/// bounds in terms of its (centered) widget with [Tab
Bar
IndicatorSize.label],
/// or the entire tab with [TabIndicatorSize.tab].
/// or the entire tab with [Tab
Bar
IndicatorSize.tab].
class
UnderlineTabIndicator
extends
Decoration
{
class
UnderlineTabIndicator
extends
Decoration
{
/// Create an underline style selected tab indicator.
/// Create an underline style selected tab indicator.
///
///
...
...
packages/flutter/lib/src/material/text_form_field.dart
View file @
a1800730
...
@@ -37,9 +37,9 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
...
@@ -37,9 +37,9 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
/// when it is no longer needed. This will ensure we discard any resources used
/// when it is no longer needed. This will ensure we discard any resources used
/// by the object.
/// by the object.
///
///
/// By default,
[TextFormField.decoration] will apply the
/// By default,
`decoration` will apply the [ThemeData.inputDecorationTheme] for
///
[ThemeData.inputDecorationTheme] for the current context to th
e
///
the current context to the [InputDecoration], se
e
/// [InputDecoration
], see [InputDecoration
.applyDefaults].
/// [InputDecoration.applyDefaults].
///
///
/// For a documentation about the various parameters, see [TextField].
/// For a documentation about the various parameters, see [TextField].
///
///
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
a1800730
...
@@ -77,7 +77,7 @@ const Color _kDarkThemeSplashColor = Color(0x40CCCCCC);
...
@@ -77,7 +77,7 @@ const Color _kDarkThemeSplashColor = Color(0x40CCCCCC);
/// * [OutlineButton]
/// * [OutlineButton]
/// * [FlatButton]
/// * [FlatButton]
/// * [RaisedButton]
/// * [RaisedButton]
/// *
[TimePicker]
/// *
The time picker widget ([showTimePicker])
/// * [SnackBar]
/// * [SnackBar]
/// * [Chip]
/// * [Chip]
/// * [RawChip]
/// * [RawChip]
...
...
packages/flutter/lib/src/material/time_picker.dart
View file @
a1800730
...
@@ -1981,7 +1981,7 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
...
@@ -1981,7 +1981,7 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
/// to add inherited widgets like [Localizations.override],
/// to add inherited widgets like [Localizations.override],
/// [Directionality], or [MediaQuery].
/// [Directionality], or [MediaQuery].
///
///
/// The
[entryMode]
parameter can be used to
/// The
`initialEntryMode`
parameter can be used to
/// determine the initial time entry selection of the picker (either a clock
/// determine the initial time entry selection of the picker (either a clock
/// dial or text input).
/// dial or text input).
///
///
...
...
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