From 0ea5e00276e0dcf30037d728b92067dd6951c333 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Tue, 11 Aug 2020 07:45:57 -0700 Subject: [PATCH] Updated old button references in dev/integration_tests/flutter_gallery ... cards_demo (#63400) --- .../lib/demo/material/cards_demo.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart b/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart index d43cca9ada..60ccc6e6ce 100644 --- a/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart +++ b/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart @@ -261,6 +261,7 @@ class TravelDestinationContent extends StatelessWidget { final ThemeData theme = Theme.of(context); final TextStyle titleStyle = theme.textTheme.headline5.copyWith(color: Colors.white); final TextStyle descriptionStyle = theme.textTheme.subtitle1; + final ButtonStyle textButtonStyle = TextButton.styleFrom(primary: Colors.amber.shade500); return Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -326,15 +327,15 @@ class TravelDestinationContent extends StatelessWidget { ButtonBar( alignment: MainAxisAlignment.start, children: [ - FlatButton( + TextButton( + style: textButtonStyle, + onPressed: () { print('pressed'); }, child: Text('SHARE', semanticsLabel: 'Share ${destination.title}'), - textColor: Colors.amber.shade500, - onPressed: () { print('pressed'); }, ), - FlatButton( - child: Text('EXPLORE', semanticsLabel: 'Explore ${destination.title}'), - textColor: Colors.amber.shade500, + TextButton( + style: textButtonStyle, onPressed: () { print('pressed'); }, + child: Text('EXPLORE', semanticsLabel: 'Explore ${destination.title}'), ), ], ),