Unverified Commit 0ea5e002 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Updated old button references in dev/integration_tests/flutter_gallery ... cards_demo (#63400)

parent 9a10d295
...@@ -261,6 +261,7 @@ class TravelDestinationContent extends StatelessWidget { ...@@ -261,6 +261,7 @@ class TravelDestinationContent extends StatelessWidget {
final ThemeData theme = Theme.of(context); final ThemeData theme = Theme.of(context);
final TextStyle titleStyle = theme.textTheme.headline5.copyWith(color: Colors.white); final TextStyle titleStyle = theme.textTheme.headline5.copyWith(color: Colors.white);
final TextStyle descriptionStyle = theme.textTheme.subtitle1; final TextStyle descriptionStyle = theme.textTheme.subtitle1;
final ButtonStyle textButtonStyle = TextButton.styleFrom(primary: Colors.amber.shade500);
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -326,15 +327,15 @@ class TravelDestinationContent extends StatelessWidget { ...@@ -326,15 +327,15 @@ class TravelDestinationContent extends StatelessWidget {
ButtonBar( ButtonBar(
alignment: MainAxisAlignment.start, alignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
FlatButton( TextButton(
child: Text('SHARE', semanticsLabel: 'Share ${destination.title}'), style: textButtonStyle,
textColor: Colors.amber.shade500,
onPressed: () { print('pressed'); }, onPressed: () { print('pressed'); },
child: Text('SHARE', semanticsLabel: 'Share ${destination.title}'),
), ),
FlatButton( TextButton(
child: Text('EXPLORE', semanticsLabel: 'Explore ${destination.title}'), style: textButtonStyle,
textColor: Colors.amber.shade500,
onPressed: () { print('pressed'); }, onPressed: () { print('pressed'); },
child: Text('EXPLORE', semanticsLabel: 'Explore ${destination.title}'),
), ),
], ],
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment