diff --git a/examples/flutter_shopping_cart/lib/app.dart b/examples/flutter_shopping_cart/lib/app.dart index eb629d4ada7..eac3783dd2d 100644 --- a/examples/flutter_shopping_cart/lib/app.dart +++ b/examples/flutter_shopping_cart/lib/app.dart @@ -26,6 +26,13 @@ class App extends StatelessWidget { ], child: MaterialApp( title: 'Flutter Bloc Shopping Cart', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.white), + appBarTheme: const AppBarTheme( + backgroundColor: Colors.transparent, + elevation: 0, + ), + ), initialRoute: '/', routes: { '/': (_) => const CatalogPage(), diff --git a/examples/flutter_shopping_cart/lib/cart/view/cart_page.dart b/examples/flutter_shopping_cart/lib/cart/view/cart_page.dart index 035a1981c53..26f3cad4448 100644 --- a/examples/flutter_shopping_cart/lib/cart/view/cart_page.dart +++ b/examples/flutter_shopping_cart/lib/cart/view/cart_page.dart @@ -8,6 +8,7 @@ class CartPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( + extendBodyBehindAppBar: true, appBar: AppBar(title: const Text('Cart')), body: const ColoredBox( color: Colors.yellow, @@ -97,7 +98,6 @@ class CartTotal extends StatelessWidget { const SnackBar(content: Text('Buying not supported yet.')), ); }, - style: ElevatedButton.styleFrom(backgroundColor: Colors.black), child: const Text('BUY'), ), ],