Skip to content

Commit

Permalink
Flutter 3.1 deprecations (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed Aug 31, 2022
1 parent 82df850 commit 15e20f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/src/pages/rows/yaru_row.dart
Expand Up @@ -75,7 +75,7 @@ class YaruRow extends StatelessWidget {
return DefaultTextStyle(
style: TextStyle(
color: enabled
? Theme.of(context).textTheme.bodyText1!.color
? Theme.of(context).textTheme.bodyLarge!.color
: Theme.of(context).disabledColor,
),
child: SizedBox(
Expand Down Expand Up @@ -106,8 +106,8 @@ class YaruRow extends StatelessWidget {
child: Text(
description!,
style: enabled
? Theme.of(context).textTheme.caption
: Theme.of(context).textTheme.caption?.copyWith(
? Theme.of(context).textTheme.bodySmall
: Theme.of(context).textTheme.bodySmall?.copyWith(
color: Theme.of(context).disabledColor,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/yaru_section.dart
Expand Up @@ -61,7 +61,7 @@ class YaruSection extends StatelessWidget {
if (headline != null)
Text(
headline!,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.titleLarge,
textAlign: TextAlign.left,
),
headerWidget ?? const SizedBox()
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utilities/yaru_carousel.dart
Expand Up @@ -247,7 +247,7 @@ class _YaruCarouselState extends State<YaruCarousel> {
Widget _buildTextIndicator() {
return Text(
'${_index + 1}/${widget.children.length}',
style: Theme.of(context).textTheme.caption,
style: Theme.of(context).textTheme.bodySmall,
textAlign: TextAlign.center,
);
}
Expand Down

0 comments on commit 15e20f1

Please sign in to comment.