Test InputDecoration API examples (#148560)
Add tests for `InputDecoration` API example as part of #130459. Updates examples that use the deprecated MaterialState to use WidgetState. Tests files: `input_decoration.0.dart`, `input_decoration.1.dart`, `input_decoration.2.dart`, `input_decoration.3.dart`, `input_decoration.widget_state.0.dart`, `input_decoration.widget_state.1.dart`, `input_decoration.prefix_icon_constraints.0.dart`, `input_decoration.suffix_icon_constraints.0.dart`, and `input_decoration.label.0.dart`
This commit is contained in:
@@ -2517,10 +2517,9 @@ class _InputDecoratorState extends State<InputDecorator> with TickerProviderStat
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This sample shows how to style a `TextField` with a prefixIcon that changes color
|
||||
/// based on the `MaterialState`. The color defaults to gray, be blue while focused
|
||||
/// and red if in an error state.
|
||||
/// based on the `MaterialState`. The color defaults to gray and is green while focused.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/input_decorator/input_decoration.material_state.0.dart **
|
||||
/// ** See code in examples/api/lib/material/input_decorator/input_decoration.widget_state.0.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
@@ -2528,7 +2527,7 @@ class _InputDecoratorState extends State<InputDecorator> with TickerProviderStat
|
||||
/// based on the `MaterialState` through the use of `ThemeData`. The color defaults
|
||||
/// to gray, be blue while focused and red if in an error state.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/input_decorator/input_decoration.material_state.1.dart **
|
||||
/// ** See code in examples/api/lib/material/input_decorator/input_decoration.widget_state.1.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
|
||||
Reference in New Issue
Block a user