mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 06:48:26 +00:00
Update for Material changes & run rebuild scripts (#1412)
This commit is contained in:
@@ -13,7 +13,7 @@ class MyCart extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Cart', style: Theme.of(context).textTheme.headline1),
|
||||
title: Text('Cart', style: Theme.of(context).textTheme.displayLarge),
|
||||
backgroundColor: Colors.white,
|
||||
),
|
||||
body: Container(
|
||||
@@ -38,7 +38,7 @@ class MyCart extends StatelessWidget {
|
||||
class _CartList extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var itemNameStyle = Theme.of(context).textTheme.headline6;
|
||||
var itemNameStyle = Theme.of(context).textTheme.titleLarge;
|
||||
// This gets the current state of CartModel and also tells Flutter
|
||||
// to rebuild this widget when CartModel notifies listeners (in other words,
|
||||
// when it changes).
|
||||
@@ -67,7 +67,7 @@ class _CartTotal extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var hugeStyle =
|
||||
Theme.of(context).textTheme.headline1!.copyWith(fontSize: 48);
|
||||
Theme.of(context).textTheme.displayLarge!.copyWith(fontSize: 48);
|
||||
|
||||
return SizedBox(
|
||||
height: 200,
|
||||
|
||||
Reference in New Issue
Block a user