mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Migrate to the New Material Buttons (#668)
This commit is contained in:
@@ -52,9 +52,9 @@ class _PerformancePageState extends State<PerformancePage> {
|
||||
FutureBuilder(
|
||||
future: computeFuture,
|
||||
builder: (context, snapshot) {
|
||||
return RaisedButton(
|
||||
return ElevatedButton(
|
||||
child: const Text('Compute on Main'),
|
||||
elevation: 8.0,
|
||||
style: ElevatedButton.styleFrom(elevation: 8.0),
|
||||
onPressed:
|
||||
snapshot.connectionState == ConnectionState.done
|
||||
? () => handleComputeOnMain(context)
|
||||
@@ -65,9 +65,9 @@ class _PerformancePageState extends State<PerformancePage> {
|
||||
FutureBuilder(
|
||||
future: computeFuture,
|
||||
builder: (context, snapshot) {
|
||||
return RaisedButton(
|
||||
return ElevatedButton(
|
||||
child: const Text('Compute on Secondary'),
|
||||
elevation: 8.0,
|
||||
style: ElevatedButton.styleFrom(elevation: 8.0),
|
||||
onPressed:
|
||||
snapshot.connectionState == ConnectionState.done
|
||||
? () => handleComputeOnSecondary(context)
|
||||
|
||||
Reference in New Issue
Block a user