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:
@@ -40,7 +40,8 @@ class BasicsPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localTheme = Theme.of(context).textTheme;
|
||||
final boldStyle = localTheme.body1.copyWith(fontWeight: FontWeight.w600);
|
||||
final boldStyle =
|
||||
localTheme.bodyText2.copyWith(fontWeight: FontWeight.w600);
|
||||
|
||||
final dynamic dynamicListOfInts = json.decode(JsonStrings.listOfInts);
|
||||
final strongListOfInts = List<int>.from(dynamicListOfInts);
|
||||
@@ -75,7 +76,7 @@ class BasicsPage extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
prettyPrintList(strongListOfInts),
|
||||
style: localTheme.body1,
|
||||
style: localTheme.bodyText2,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -87,7 +88,7 @@ class BasicsPage extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
prettyPrintList(strongListOfStrings),
|
||||
style: localTheme.body1,
|
||||
style: localTheme.bodyText2,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -99,7 +100,7 @@ class BasicsPage extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
prettyPrintList(strongListOfDoubles),
|
||||
style: localTheme.body1,
|
||||
style: localTheme.bodyText2,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -111,7 +112,7 @@ class BasicsPage extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
prettyPrintList(strongListOfDynamics),
|
||||
style: localTheme.body1,
|
||||
style: localTheme.bodyText2,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -135,7 +136,7 @@ class BasicsPage extends StatelessWidget {
|
||||
},
|
||||
children: createMapRows(
|
||||
strongMapOfDynamics,
|
||||
localTheme.body1,
|
||||
localTheme.bodyText2,
|
||||
boldStyle,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user