Updated examples/layers to use the new button API. (#62932)

Updated examples/layers to use the new button API.
This commit is contained in:
Darren Austin 2020-08-05 15:15:46 -07:00 committed by GitHub
parent 504963b4d1
commit e82b9f9922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ class IsolateExampleState extends State<StatefulWidget> with SingleTickerProvide
), ),
Text(_status), Text(_status),
Center( Center(
child: RaisedButton( child: ElevatedButton(
child: Text(_label), child: Text(_label),
onPressed: _handleButtonPressed, onPressed: _handleButtonPressed,
), ),

View File

@ -96,7 +96,7 @@ class SectorAppState extends State<SectorApp> {
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 25.0), padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 25.0),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
RaisedButton( ElevatedButton(
onPressed: _enabledAdd ? addSector : null, onPressed: _enabledAdd ? addSector : null,
child: IntrinsicWidth( child: IntrinsicWidth(
child: Row( child: Row(
@ -111,7 +111,7 @@ class SectorAppState extends State<SectorApp> {
), ),
), ),
), ),
RaisedButton( ElevatedButton(
onPressed: _enabledRemove ? removeSector : null, onPressed: _enabledRemove ? removeSector : null,
child: IntrinsicWidth( child: IntrinsicWidth(
child: Row( child: Row(