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
f261c2f7
Unverified
Commit
f261c2f7
authored
Nov 18, 2022
by
hangyu
Committed by
GitHub
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update comments (#115603)
parent
5487a7de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
bottom_sheet_theme.dart
packages/flutter/lib/src/material/bottom_sheet_theme.dart
+6
-6
card_theme.dart
packages/flutter/lib/src/material/card_theme.dart
+7
-7
snack_bar_theme.dart
packages/flutter/lib/src/material/snack_bar_theme.dart
+7
-7
tab_bar_theme.dart
packages/flutter/lib/src/material/tab_bar_theme.dart
+9
-9
No files found.
packages/flutter/lib/src/material/bottom_sheet_theme.dart
View file @
f261c2f7
...
@@ -39,19 +39,19 @@ class BottomSheetThemeData with Diagnosticable {
...
@@ -39,19 +39,19 @@ class BottomSheetThemeData with Diagnosticable {
this
.
constraints
,
this
.
constraints
,
});
});
///
D
efault value for [BottomSheet.backgroundColor].
///
Overrides the d
efault value for [BottomSheet.backgroundColor].
///
///
/// If null, [BottomSheet] defaults to [Material]'s default.
/// If null, [BottomSheet] defaults to [Material]'s default.
final
Color
?
backgroundColor
;
final
Color
?
backgroundColor
;
///
D
efault value for surfaceTintColor.
///
Overrides the d
efault value for surfaceTintColor.
///
///
/// If null, [BottomSheet] will not display an overlay color.
/// If null, [BottomSheet] will not display an overlay color.
///
///
/// See [Material.surfaceTintColor] for more details.
/// See [Material.surfaceTintColor] for more details.
final
Color
?
surfaceTintColor
;
final
Color
?
surfaceTintColor
;
///
D
efault value for [BottomSheet.elevation].
///
Overrides the d
efault value for [BottomSheet.elevation].
///
///
/// {@macro flutter.material.material.elevation}
/// {@macro flutter.material.material.elevation}
///
///
...
@@ -62,7 +62,7 @@ class BottomSheetThemeData with Diagnosticable {
...
@@ -62,7 +62,7 @@ class BottomSheetThemeData with Diagnosticable {
/// as a modal bottom sheet.
/// as a modal bottom sheet.
final
Color
?
modalBackgroundColor
;
final
Color
?
modalBackgroundColor
;
///
D
efault value for barrier color when the Bottom sheet is presented as
///
Overrides the d
efault value for barrier color when the Bottom sheet is presented as
/// a modal bottom sheet.
/// a modal bottom sheet.
final
Color
?
modalBarrierColor
;
final
Color
?
modalBarrierColor
;
...
@@ -70,13 +70,13 @@ class BottomSheetThemeData with Diagnosticable {
...
@@ -70,13 +70,13 @@ class BottomSheetThemeData with Diagnosticable {
/// modal bottom sheet.
/// modal bottom sheet.
final
double
?
modalElevation
;
final
double
?
modalElevation
;
///
D
efault value for [BottomSheet.shape].
///
Overrides the d
efault value for [BottomSheet.shape].
///
///
/// If null, no overriding shape is specified for [BottomSheet], so the
/// If null, no overriding shape is specified for [BottomSheet], so the
/// [BottomSheet] is rectangular.
/// [BottomSheet] is rectangular.
final
ShapeBorder
?
shape
;
final
ShapeBorder
?
shape
;
///
D
efault value for [BottomSheet.clipBehavior].
///
Overrides the d
efault value for [BottomSheet.clipBehavior].
///
///
/// If null, [BottomSheet] uses [Clip.none].
/// If null, [BottomSheet] uses [Clip.none].
final
Clip
?
clipBehavior
;
final
Clip
?
clipBehavior
;
...
...
packages/flutter/lib/src/material/card_theme.dart
View file @
f261c2f7
...
@@ -42,40 +42,40 @@ class CardTheme with Diagnosticable {
...
@@ -42,40 +42,40 @@ class CardTheme with Diagnosticable {
this
.
shape
,
this
.
shape
,
})
:
assert
(
elevation
==
null
||
elevation
>=
0.0
);
})
:
assert
(
elevation
==
null
||
elevation
>=
0.0
);
///
D
efault value for [Card.clipBehavior].
///
Overrides the d
efault value for [Card.clipBehavior].
///
///
/// If null, [Card] uses [Clip.none].
/// If null, [Card] uses [Clip.none].
final
Clip
?
clipBehavior
;
final
Clip
?
clipBehavior
;
///
D
efault value for [Card.color].
///
Overrides the d
efault value for [Card.color].
///
///
/// If null, [Card] uses [ThemeData.cardColor].
/// If null, [Card] uses [ThemeData.cardColor].
final
Color
?
color
;
final
Color
?
color
;
///
D
efault value for [Card.shadowColor].
///
Overrides the d
efault value for [Card.shadowColor].
///
///
/// If null, [Card] defaults to fully opaque black.
/// If null, [Card] defaults to fully opaque black.
final
Color
?
shadowColor
;
final
Color
?
shadowColor
;
///
D
efault value for [Card.surfaceTintColor].
///
Overrides the d
efault value for [Card.surfaceTintColor].
///
///
/// If null, [Card] will not display an overlay color.
/// If null, [Card] will not display an overlay color.
///
///
/// See [Material.surfaceTintColor] for more details.
/// See [Material.surfaceTintColor] for more details.
final
Color
?
surfaceTintColor
;
final
Color
?
surfaceTintColor
;
///
D
efault value for [Card.elevation].
///
Overrides the d
efault value for [Card.elevation].
///
///
/// If null, [Card] uses a default of 1.0.
/// If null, [Card] uses a default of 1.0.
final
double
?
elevation
;
final
double
?
elevation
;
///
D
efault value for [Card.margin].
///
Overrides the d
efault value for [Card.margin].
///
///
/// If null, [Card] uses a default margin of 4.0 logical pixels on all sides:
/// If null, [Card] uses a default margin of 4.0 logical pixels on all sides:
/// `EdgeInsets.all(4.0)`.
/// `EdgeInsets.all(4.0)`.
final
EdgeInsetsGeometry
?
margin
;
final
EdgeInsetsGeometry
?
margin
;
///
D
efault value for [Card.shape].
///
Overrides the d
efault value for [Card.shape].
///
///
/// If null, [Card] then uses a [RoundedRectangleBorder] with a circular
/// If null, [Card] then uses a [RoundedRectangleBorder] with a circular
/// corner radius of 4.0.
/// corner radius of 4.0.
...
...
packages/flutter/lib/src/material/snack_bar_theme.dart
View file @
f261c2f7
...
@@ -66,18 +66,18 @@ class SnackBarThemeData with Diagnosticable {
...
@@ -66,18 +66,18 @@ class SnackBarThemeData with Diagnosticable {
width
==
null
||
width
==
null
||
(
width
!=
null
&&
identical
(
behavior
,
SnackBarBehavior
.
floating
)),
(
width
!=
null
&&
identical
(
behavior
,
SnackBarBehavior
.
floating
)),
'Width can only be set if behaviour is SnackBarBehavior.floating'
);
'Width can only be set if behaviour is SnackBarBehavior.floating'
);
///
D
efault value for [SnackBar.backgroundColor].
///
Overrides the d
efault value for [SnackBar.backgroundColor].
///
///
/// If null, [SnackBar] defaults to dark grey: `Color(0xFF323232)`.
/// If null, [SnackBar] defaults to dark grey: `Color(0xFF323232)`.
final
Color
?
backgroundColor
;
final
Color
?
backgroundColor
;
///
D
efault value for [SnackBarAction.textColor].
///
Overrides the d
efault value for [SnackBarAction.textColor].
///
///
/// If null, [SnackBarAction] defaults to [ColorScheme.secondary] of
/// If null, [SnackBarAction] defaults to [ColorScheme.secondary] of
/// [ThemeData.colorScheme] .
/// [ThemeData.colorScheme] .
final
Color
?
actionTextColor
;
final
Color
?
actionTextColor
;
///
D
efault value for [SnackBarAction.disabledTextColor].
///
Overrides the d
efault value for [SnackBarAction.disabledTextColor].
///
///
/// If null, [SnackBarAction] defaults to [ColorScheme.onSurface] with its
/// If null, [SnackBarAction] defaults to [ColorScheme.onSurface] with its
/// opacity set to 0.30 if the [Theme]'s brightness is [Brightness.dark], 0.38
/// opacity set to 0.30 if the [Theme]'s brightness is [Brightness.dark], 0.38
...
@@ -89,12 +89,12 @@ class SnackBarThemeData with Diagnosticable {
...
@@ -89,12 +89,12 @@ class SnackBarThemeData with Diagnosticable {
/// If null, [SnackBar] defines its default.
/// If null, [SnackBar] defines its default.
final
TextStyle
?
contentTextStyle
;
final
TextStyle
?
contentTextStyle
;
///
D
efault value for [SnackBar.elevation].
///
Overrides the d
efault value for [SnackBar.elevation].
///
///
/// If null, [SnackBar] uses a default of 6.0.
/// If null, [SnackBar] uses a default of 6.0.
final
double
?
elevation
;
final
double
?
elevation
;
///
D
efault value for [SnackBar.shape].
///
Overrides the d
efault value for [SnackBar.shape].
///
///
/// If null, [SnackBar] provides different defaults depending on the
/// If null, [SnackBar] provides different defaults depending on the
/// [SnackBarBehavior]. For [SnackBarBehavior.fixed], no overriding shape is
/// [SnackBarBehavior]. For [SnackBarBehavior.fixed], no overriding shape is
...
@@ -103,12 +103,12 @@ class SnackBarThemeData with Diagnosticable {
...
@@ -103,12 +103,12 @@ class SnackBarThemeData with Diagnosticable {
/// circular corner radius of 4.0.
/// circular corner radius of 4.0.
final
ShapeBorder
?
shape
;
final
ShapeBorder
?
shape
;
///
D
efault value for [SnackBar.behavior].
///
Overrides the d
efault value for [SnackBar.behavior].
///
///
/// If null, [SnackBar] will default to [SnackBarBehavior.fixed].
/// If null, [SnackBar] will default to [SnackBarBehavior.fixed].
final
SnackBarBehavior
?
behavior
;
final
SnackBarBehavior
?
behavior
;
///
D
efault value for [SnackBar.width].
///
Overrides the d
efault value for [SnackBar.width].
///
///
/// If this property is null, then the snack bar will take up the full device
/// If this property is null, then the snack bar will take up the full device
/// width less the margin. This value is only used when [behavior] is
/// width less the margin. This value is only used when [behavior] is
...
...
packages/flutter/lib/src/material/tab_bar_theme.dart
View file @
f261c2f7
...
@@ -40,35 +40,35 @@ class TabBarTheme with Diagnosticable {
...
@@ -40,35 +40,35 @@ class TabBarTheme with Diagnosticable {
this
.
mouseCursor
,
this
.
mouseCursor
,
});
});
///
D
efault value for [TabBar.indicator].
///
Overrides the d
efault value for [TabBar.indicator].
final
Decoration
?
indicator
;
final
Decoration
?
indicator
;
///
D
efault value for [TabBar.indicatorSize].
///
Overrides the d
efault value for [TabBar.indicatorSize].
final
TabBarIndicatorSize
?
indicatorSize
;
final
TabBarIndicatorSize
?
indicatorSize
;
///
D
efault value for [TabBar.labelColor].
///
Overrides the d
efault value for [TabBar.labelColor].
final
Color
?
labelColor
;
final
Color
?
labelColor
;
///
D
efault value for [TabBar.labelPadding].
///
Overrides the d
efault value for [TabBar.labelPadding].
///
///
/// If there are few tabs with both icon and text and few
/// If there are few tabs with both icon and text and few
/// tabs with only icon or text, this padding is vertically
/// tabs with only icon or text, this padding is vertically
/// adjusted to provide uniform padding to all tabs.
/// adjusted to provide uniform padding to all tabs.
final
EdgeInsetsGeometry
?
labelPadding
;
final
EdgeInsetsGeometry
?
labelPadding
;
///
D
efault value for [TabBar.labelStyle].
///
Overrides the d
efault value for [TabBar.labelStyle].
final
TextStyle
?
labelStyle
;
final
TextStyle
?
labelStyle
;
///
D
efault value for [TabBar.unselectedLabelColor].
///
Overrides the d
efault value for [TabBar.unselectedLabelColor].
final
Color
?
unselectedLabelColor
;
final
Color
?
unselectedLabelColor
;
///
D
efault value for [TabBar.unselectedLabelStyle].
///
Overrides the d
efault value for [TabBar.unselectedLabelStyle].
final
TextStyle
?
unselectedLabelStyle
;
final
TextStyle
?
unselectedLabelStyle
;
///
D
efault value for [TabBar.overlayColor].
///
Overrides the d
efault value for [TabBar.overlayColor].
final
MaterialStateProperty
<
Color
?>?
overlayColor
;
final
MaterialStateProperty
<
Color
?>?
overlayColor
;
///
D
efault value for [TabBar.splashFactory].
///
Overrides the d
efault value for [TabBar.splashFactory].
final
InteractiveInkFeatureFactory
?
splashFactory
;
final
InteractiveInkFeatureFactory
?
splashFactory
;
/// {@macro flutter.material.tabs.mouseCursor}
/// {@macro flutter.material.tabs.mouseCursor}
...
...
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