Migrate TextTheme to 2018 APIs (#48547)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
77fb0c1ade
commit
bc5c46438a
@@ -170,7 +170,7 @@ class CardItem extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
TextStyle textStyle = Theme.of(context).textTheme.display1;
|
||||
TextStyle textStyle = Theme.of(context).textTheme.headline4;
|
||||
if (selected)
|
||||
textStyle = textStyle.copyWith(color: Colors.lightGreenAccent[400]);
|
||||
return Padding(
|
||||
|
||||
@@ -97,7 +97,7 @@ class ChoiceCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.display1;
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.headline4;
|
||||
return Card(
|
||||
color: Colors.white,
|
||||
child: Center(
|
||||
|
||||
@@ -78,7 +78,7 @@ class ChoiceCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.display1;
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.headline4;
|
||||
return Card(
|
||||
color: Colors.white,
|
||||
child: Center(
|
||||
|
||||
@@ -59,7 +59,7 @@ class ChoiceCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.display1;
|
||||
final TextStyle textStyle = Theme.of(context).textTheme.headline4;
|
||||
return Card(
|
||||
color: Colors.white,
|
||||
child: Center(
|
||||
|
||||
Reference in New Issue
Block a user