mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Enable Material 3 on provider_shopper (#1627)
Co-authored-by: Brett Morgan <brettmorgan@google.com>
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
final appTheme = ThemeData(
|
final appTheme = ThemeData(
|
||||||
primarySwatch: Colors.yellow,
|
colorSchemeSeed: Colors.yellow,
|
||||||
|
useMaterial3: true,
|
||||||
textTheme: const TextTheme(
|
textTheme: const TextTheme(
|
||||||
displayLarge: TextStyle(
|
displayLarge: TextStyle(
|
||||||
fontFamily: 'Corben',
|
fontFamily: 'Corben',
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class _CartTotal extends StatelessWidget {
|
|||||||
builder: (context, cart, child) =>
|
builder: (context, cart, child) =>
|
||||||
Text('\$${cart.totalPrice}', style: hugeStyle)),
|
Text('\$${cart.totalPrice}', style: hugeStyle)),
|
||||||
const SizedBox(width: 24),
|
const SizedBox(width: 24),
|
||||||
TextButton(
|
FilledButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
const SnackBar(content: Text('Buying not supported yet.')));
|
const SnackBar(content: Text('Buying not supported yet.')));
|
||||||
|
|||||||
Reference in New Issue
Block a user