Skip to content

[animations] fix invalid text style names #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[animations] fix invalid text style names
  • Loading branch information
Pedro Massango committed Feb 21, 2020
commit 0d53a5bb2d36f80a8abade7648cdcccd25749e0b
10 changes: 5 additions & 5 deletions packages/animations/example/lib/container_transition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class _ExampleCard extends StatelessWidget {
'adipiscing elit, sed do eiusmod tempor.',
style: Theme.of(context)
.textTheme
.bodyText2
.body2
.copyWith(color: Colors.black54),
),
),
Expand Down Expand Up @@ -359,7 +359,7 @@ class _SmallerCard extends StatelessWidget {
children: <Widget>[
Text(
'Title',
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.headline,
),
const SizedBox(height: 4),
Text(
Expand Down Expand Up @@ -409,7 +409,7 @@ class _ExampleSingleTile extends StatelessWidget {
children: <Widget>[
Text(
'Title',
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.subtitle,
),
const SizedBox(height: 8),
Text(
Expand Down Expand Up @@ -476,15 +476,15 @@ class _DetailsPage extends StatelessWidget {
children: <Widget>[
Text(
'Title',
style: Theme.of(context).textTheme.headline5.copyWith(
style: Theme.of(context).textTheme.headline.copyWith(
color: Colors.black54,
fontSize: 30.0,
),
),
const SizedBox(height: 10),
Text(
_loremIpsumParagraph,
style: Theme.of(context).textTheme.bodyText2.copyWith(
style: Theme.of(context).textTheme.body2.copyWith(
color: Colors.black54,
height: 1.5,
fontSize: 16.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class _ExampleCard extends StatelessWidget {
children: <Widget>[
Text(
'123 photos',
style: Theme.of(context).textTheme.bodyText1,
style: Theme.of(context).textTheme.body1,
),
Text(
'123 photos',
Expand Down
4 changes: 2 additions & 2 deletions packages/animations/example/lib/shared_axis_transition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class _CoursePage extends StatelessWidget {
const Padding(padding: EdgeInsets.symmetric(vertical: 8.0)),
Text(
'Streamling your courses',
style: Theme.of(context).textTheme.headline5,
style: Theme.of(context).textTheme.headline,
textAlign: TextAlign.center,
),
const Padding(padding: EdgeInsets.symmetric(vertical: 5.0)),
Expand Down Expand Up @@ -194,7 +194,7 @@ class _SignInPage extends StatelessWidget {
Padding(padding: EdgeInsets.symmetric(vertical: maxHeight / 50)),
Text(
'Hi David Park',
style: Theme.of(context).textTheme.headline5,
style: Theme.of(context).textTheme.headline,
),
Padding(padding: EdgeInsets.symmetric(vertical: maxHeight / 50)),
const Text(
Expand Down