diff --git a/example/widgetbook/pages/components/search_bar_widgetbook.dart b/example/widgetbook/pages/components/search_bar_widgetbook.dart index 9072142b..fc767a8d 100644 --- a/example/widgetbook/pages/components/search_bar_widgetbook.dart +++ b/example/widgetbook/pages/components/search_bar_widgetbook.dart @@ -49,7 +49,7 @@ Widget searchBarUseCase(BuildContext context) { size: size, shape: shape, disabled: disabled, - hintText: hint, + placeholder: hint, showSpeechToText: showSpeechToText, onChange: (value) { if (value == null) return; diff --git a/test/src/components/search_bar/golden/search_bar_default.png b/test/src/components/search_bar/golden/search_bar_default.png index 3926f597..614622db 100644 Binary files a/test/src/components/search_bar/golden/search_bar_default.png and b/test/src/components/search_bar/golden/search_bar_default.png differ diff --git a/test/src/components/search_bar/golden/search_bar_full.png b/test/src/components/search_bar/golden/search_bar_full.png index e3ffbdaf..a0146091 100644 Binary files a/test/src/components/search_bar/golden/search_bar_full.png and b/test/src/components/search_bar/golden/search_bar_full.png differ diff --git a/test/src/components/search_bar/golden/search_bar_medium.png b/test/src/components/search_bar/golden/search_bar_medium.png index 3926f597..614622db 100644 Binary files a/test/src/components/search_bar/golden/search_bar_medium.png and b/test/src/components/search_bar/golden/search_bar_medium.png differ diff --git a/test/src/components/search_bar/golden/search_bar_sharp.png b/test/src/components/search_bar/golden/search_bar_sharp.png index 27a2b4e3..c3c1ab55 100644 Binary files a/test/src/components/search_bar/golden/search_bar_sharp.png and b/test/src/components/search_bar/golden/search_bar_sharp.png differ diff --git a/test/src/components/search_bar/golden/search_bar_small.png b/test/src/components/search_bar/golden/search_bar_small.png index 835f47d2..0f23bf32 100644 Binary files a/test/src/components/search_bar/golden/search_bar_small.png and b/test/src/components/search_bar/golden/search_bar_small.png differ diff --git a/test/src/components/search_bar/search_bar_test.dart b/test/src/components/search_bar/search_bar_test.dart index 9cfaef8b..120b326a 100644 --- a/test/src/components/search_bar/search_bar_test.dart +++ b/test/src/components/search_bar/search_bar_test.dart @@ -47,7 +47,7 @@ void main() { ); await tester.pumpAndSettle(); - expect(find.byType(TextFormField), findsOneWidget); + expect(find.byType(TextField), findsOneWidget); }); testWidgets('golden: renders initializes correctly', (WidgetTester tester) async { @@ -178,7 +178,7 @@ void main() { ); await tester.pumpAndSettle(); - await tester.enterText(find.byType(TextFormField), 'New text'); + await tester.enterText(find.byType(TextField), 'New text'); await tester.pump(); verify(callbacks.onChange.call('New text')).called(1); @@ -194,7 +194,7 @@ void main() { ); await tester.pumpAndSettle(); - await tester.enterText(find.byType(TextFormField), 'Submit text'); + await tester.enterText(find.byType(TextField), 'Submit text'); await tester.testTextInput.receiveAction(TextInputAction.done); await tester.pump(); @@ -231,7 +231,7 @@ void main() { ); await tester.pumpAndSettle(); - await tester.enterText(find.byType(TextFormField), 'Disabled input'); + await tester.enterText(find.byType(TextField), 'Disabled input'); await tester.pump(); expect(find.text('Disabled input'), findsNothing); @@ -263,7 +263,7 @@ void main() { ); await tester.pumpAndSettle(); - await tester.enterText(find.byType(TextFormField), 'New text'); + await tester.enterText(find.byType(TextField), 'New text'); await tester.pump(); verify(callbacks.onChange.call('New text')).called(1); @@ -280,7 +280,7 @@ void main() { expect(diagnostics.finder('size'), 'medium'); expect(diagnostics.finder('shape'), 'rounded'); - expect(diagnostics.finder('hintText'), 'null'); + expect(diagnostics.finder('placeholder'), 'null'); expect(diagnostics.finder('textInputAction'), 'null'); expect(diagnostics.finder('onSpeechToText'), 'null'); expect(diagnostics.finder('showSpeechToText'), 'true');