diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index 1e984d4c1b3..283ee859764 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -5261,9 +5261,9 @@ class InputDecorationThemeData with Diagnosticable { /// The shape of the border to draw around the decoration's container. /// - /// If [border] is a [MaterialStateUnderlineInputBorder] - /// or [MaterialStateOutlineInputBorder], then the effective border can depend on - /// the [WidgetState.focused] state, i.e. if the [TextField] is focused or not. + /// If [border] is a [WidgetStateInputBorder], then the effective border can + /// depend on the [WidgetState.focused] state, i.e. if the [TextField] is + /// focused or not. /// /// The decoration's container is the area which is filled if [filled] is /// true and bordered per the [border]. It's the area adjacent to diff --git a/packages/flutter/test/material/input_decorator_test.dart b/packages/flutter/test/material/input_decorator_test.dart index 8ed040a5358..a7900f0ea3f 100644 --- a/packages/flutter/test/material/input_decorator_test.dart +++ b/packages/flutter/test/material/input_decorator_test.dart @@ -8456,7 +8456,7 @@ void main() { ); // InputDecoration (baseDecoration) defines InputDecoration properties - final MaterialStateOutlineInputBorder border = MaterialStateOutlineInputBorder.resolveWith(( + final WidgetStateInputBorder border = WidgetStateInputBorder.resolveWith(( Set states, ) { return const OutlineInputBorder(); @@ -8522,7 +8522,7 @@ void main() { expect(decoration.counterStyle, decorationStyle); expect(decoration.filled, false); expect(decoration.fillColor, Colors.blue); - expect(decoration.border, isA()); + expect(decoration.border, isA()); expect(decoration.alignLabelWithHint, false); expect( decoration.constraints,