Minor Formatting (#154210)

Minor Formatting.
This commit is contained in:
Tirth
2024-08-29 18:34:18 +05:30
committed by GitHub
parent f478276222
commit a73ab15fbf
2 changed files with 5 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ class SnackBar extends StatefulWidget {
/// Tapping the icon will close the snack bar.
final bool? showCloseIcon;
/// (optional) An optional color for the close icon, if [showCloseIcon] is
/// An optional color for the close icon, if [showCloseIcon] is
/// true.
///
/// If this property is null, then [SnackBarThemeData.closeIconColor] of
@@ -642,9 +642,9 @@ class _SnackBarState extends State<SnackBar> {
final TextStyle? contentTextStyle = snackBarTheme.contentTextStyle ?? defaults.contentTextStyle;
final SnackBarBehavior snackBarBehavior = widget.behavior ?? snackBarTheme.behavior ?? defaults.behavior!;
final double? width = widget.width ?? snackBarTheme.width;
assert((){
assert(() {
// Whether the behavior is set through the constructor or the theme,
// assert that our other properties are configured properly.
// assert that other properties are configured properly.
if (snackBarBehavior != SnackBarBehavior.floating) {
String message(String parameter) {
final String prefix = '$parameter can only be used with floating behavior.';

View File

@@ -98,7 +98,7 @@ class SnackBarThemeData with Diagnosticable {
/// Overrides the default value for [SnackBarAction.textColor].
///
/// If null, [SnackBarAction] defaults to [ColorScheme.secondary] of
/// [ThemeData.colorScheme] .
/// [ThemeData.colorScheme].
final Color? actionTextColor;
/// Overrides the default value for [SnackBarAction.disabledTextColor].
@@ -158,6 +158,7 @@ class SnackBarThemeData with Diagnosticable {
///
/// Must be a value between 0 and 1, if present.
final double? actionOverflowThreshold;
/// Overrides default value for [SnackBarAction.backgroundColor].
///
/// If null, [SnackBarAction] falls back to [Colors.transparent].