Skip to content
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

Flutter 3.1 deprecations #194

Merged
merged 1 commit into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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