Removed remaining obsolete button widget references (#67440)

This commit is contained in:
Hans Muller
2020-10-07 08:45:41 -07:00
committed by GitHub
parent 6620f831e9
commit ab9373bf48
6 changed files with 12 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
children: <Widget>[
TextButton.icon(
style: style,
icon: const Icon(Icons.add_circle_outlined, size: 18.0),
icon: const Icon(Icons.add_circle_outline, size: 18.0),
label: const Text('TEXT BUTTON', semanticsLabel: 'TEXT BUTTON 2'),
onPressed: () {
// Perform some action
@@ -201,7 +201,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
),
TextButton.icon(
style: style,
icon: const Icon(Icons.add_circle_outlined, size: 18.0),
icon: const Icon(Icons.add_circle_outline, size: 18.0),
label: const Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 4'),
onPressed: null,
),

View File

@@ -43,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> {
title: Text(widget.title),
),
body: Column(children: <Widget>[
FlatButton(
TextButton(
key: const ValueKey<String>('platform_view_button'),
child: const Text('show platform view'),
onPressed: () {
@@ -55,7 +55,7 @@ class _MyHomePageState extends State<MyHomePage> {
},
),
// Push this button to perform an animation, which ensure the threads are unmerged after the animation.
RaisedButton(
ElevatedButton(
key: const ValueKey<String>('unmerge_button'),
child: const Text('Tap to unmerge threads'),
onPressed: () {},
@@ -82,7 +82,7 @@ class PlatformViewPage extends StatelessWidget {
width: 300,
height: 300,
),
RaisedButton(
ElevatedButton(
key: button,
child: const Text('button'),
onPressed: (){},

View File

@@ -29,7 +29,7 @@ void main() {
await driver.waitFor(plusButton);
await driver.waitUntilNoTransientCallbacks();
// Tapping a raised button runs an animation that pumps enough frames to un-merge the threads.
// Tapping an elevated button runs an animation that pumps enough frames to un-merge the threads.
await driver.tap(plusButton);
await driver.waitUntilNoTransientCallbacks();
@@ -56,7 +56,7 @@ void main() {
await driver.tap(backButton);
await driver.waitUntilNoTransientCallbacks();
// The animation of tapping a `RaisedButton` should pump enough frames to un-merge the thread.
// The animation of tapping a `ElevatedButton` should pump enough frames to un-merge the thread.
final SerializableFinder unmergeButton =
find.byValueKey('unmerge_button');
await driver.waitFor(unmergeButton);