Updated the remaining obsolete button references in flutter_gallery (#67437)
This commit is contained in:
@@ -478,14 +478,12 @@ void main() {
|
||||
group('All material demos meet text contrast guidelines', () {
|
||||
final List<ThemeData> themes = <ThemeData>[
|
||||
kLightGalleryTheme,
|
||||
ThemeData.light(),
|
||||
ThemeData.dark(),
|
||||
kDarkGalleryTheme,
|
||||
];
|
||||
|
||||
const List<String> themeNames = <String>[
|
||||
'kLightGalleryTheme',
|
||||
'ThemeData.light()',
|
||||
'ThemeData.dark()',
|
||||
'kDarkGalleryTheme',
|
||||
];
|
||||
|
||||
for (int themeIndex = 0; themeIndex < themes.length; themeIndex += 1) {
|
||||
|
||||
@@ -10,7 +10,7 @@ void main() {
|
||||
testWidgets('validates name field correctly', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const MaterialApp(home: TextFormFieldDemo()));
|
||||
|
||||
final Finder submitButton = find.widgetWithText(RaisedButton, 'SUBMIT');
|
||||
final Finder submitButton = find.widgetWithText(ElevatedButton, 'SUBMIT');
|
||||
expect(submitButton, findsOneWidget);
|
||||
|
||||
final Finder nameField = find.widgetWithText(TextFormField, 'Name *');
|
||||
|
||||
Reference in New Issue
Block a user