Updated the remaining obsolete button references in flutter_gallery (#67437)

This commit is contained in:
Hans Muller
2020-10-06 13:21:08 -07:00
committed by GitHub
parent 4fa4f91d5c
commit 1a08ce7400
15 changed files with 130 additions and 137 deletions

View File

@@ -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) {

View File

@@ -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 *');