Skip to content

Commit

Permalink
Fix use of deprecated members (beta channel) (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Jan 20, 2023
1 parent 1bae201 commit 17e7289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/lib/code_snippet_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class _CodeDialog extends StatelessWidget {
children: [
YaruAnimatedNoNetworkIcon(
size: 200,
color: Theme.of(context).errorColor,
color: Theme.of(context).colorScheme.error,
),
Padding(
padding: const EdgeInsets.symmetric(
Expand Down
8 changes: 1 addition & 7 deletions lib/src/pages/yaru_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ class YaruTile extends StatelessWidget {
}

TextStyle _titleTextStyle(BuildContext context) {
final theme = Theme.of(context);
switch (style) {
case YaruTileStyle.normal:
return theme.textTheme.bodyText1!;
case YaruTileStyle.banner:
return theme.textTheme.bodyLarge!;
}
return Theme.of(context).textTheme.bodyLarge!;
}

TextStyle _subtitleTextStyle(BuildContext context) {
Expand Down

0 comments on commit 17e7289

Please sign in to comment.