Updated references to obsolete Material button classes in examples (#65904)

This commit is contained in:
Hans Muller 2020-09-16 08:02:06 -07:00 committed by GitHub
parent 82706d730b
commit b2b5f2636a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
margin: const EdgeInsets.all(10.0),
child: Row(
children: <Widget>[
RaisedButton(
ElevatedButton(
child: Row(
children: <Widget>[
Image.network('https://flutter.dev/images/favicon.png'),

View File

@ -65,7 +65,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
Text(_batteryLevel, key: const Key('Battery level label')),
Padding(
padding: const EdgeInsets.all(16.0),
child: RaisedButton(
child: ElevatedButton(
child: const Text('Refresh'),
onPressed: _getBatteryLevel,
),

View File

@ -65,7 +65,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
Text(_batteryLevel, key: const Key('Battery level label')),
Padding(
padding: const EdgeInsets.all(16.0),
child: RaisedButton(
child: ElevatedButton(
child: const Text('Refresh'),
onPressed: _getBatteryLevel,
),