mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Flutter 1.17 updates (#432)
* Material text theme updates & flutter pub upgrade (#411) * Beta channel updates (#412) * fix deprecated usages in provider_shopper - beta channel * fix deprecated usages in animations - beta channel * fix deprecated usages in provider_counter - beta * Updates additional samples for beta release (#416) * use headline6 instead of title * fix another title -> headline6 Co-authored-by: Brett Morgan <brett.morgan@gmail.com> Co-authored-by: Andrew Brogdon <RedBrogdon@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ class MyCart extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Cart', style: Theme.of(context).textTheme.display4),
|
||||
title: Text('Cart', style: Theme.of(context).textTheme.headline1),
|
||||
backgroundColor: Colors.white,
|
||||
),
|
||||
body: Container(
|
||||
@@ -36,7 +36,7 @@ class MyCart extends StatelessWidget {
|
||||
class _CartList extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var itemNameStyle = Theme.of(context).textTheme.title;
|
||||
var itemNameStyle = Theme.of(context).textTheme.headline6;
|
||||
var cart = Provider.of<CartModel>(context);
|
||||
|
||||
return ListView.builder(
|
||||
@@ -55,7 +55,8 @@ class _CartList extends StatelessWidget {
|
||||
class _CartTotal extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var hugeStyle = Theme.of(context).textTheme.display4.copyWith(fontSize: 48);
|
||||
var hugeStyle =
|
||||
Theme.of(context).textTheme.headline1.copyWith(fontSize: 48);
|
||||
|
||||
return SizedBox(
|
||||
height: 200,
|
||||
|
||||
@@ -48,7 +48,7 @@ class _MyAppBar extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SliverAppBar(
|
||||
title: Text('Catalog', style: Theme.of(context).textTheme.display4),
|
||||
title: Text('Catalog', style: Theme.of(context).textTheme.headline1),
|
||||
floating: true,
|
||||
actions: [
|
||||
IconButton(
|
||||
@@ -69,7 +69,7 @@ class _MyListItem extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
var catalog = Provider.of<CatalogModel>(context);
|
||||
var item = catalog.getByPosition(index);
|
||||
var textTheme = Theme.of(context).textTheme.title;
|
||||
var textTheme = Theme.of(context).textTheme.headline6;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
|
||||
@@ -16,7 +16,7 @@ class MyLogin extends StatelessWidget {
|
||||
children: [
|
||||
Text(
|
||||
'Welcome',
|
||||
style: Theme.of(context).textTheme.display4,
|
||||
style: Theme.of(context).textTheme.headline1,
|
||||
),
|
||||
TextFormField(
|
||||
decoration: InputDecoration(
|
||||
|
||||
Reference in New Issue
Block a user