mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 14:28:51 +00:00
Migrate to the New Material Buttons (#668)
This commit is contained in:
@@ -138,7 +138,7 @@ class Contents extends StatelessWidget {
|
||||
SizedBox(height: 16),
|
||||
Consumer<CounterModel>(
|
||||
builder: (context, model, child) {
|
||||
return RaisedButton(
|
||||
return ElevatedButton(
|
||||
onPressed: () => model.increment(),
|
||||
child: Text('Tap me!'),
|
||||
);
|
||||
@@ -146,7 +146,7 @@ class Contents extends StatelessWidget {
|
||||
),
|
||||
if (showExit) ...[
|
||||
SizedBox(height: 16),
|
||||
RaisedButton(
|
||||
ElevatedButton(
|
||||
onPressed: () => SystemNavigator.pop(animated: true),
|
||||
child: Text('Exit this screen'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user