improved performance and battery usage on older devices
This commit is contained in:
1 parent
ed8e52f475
commit
56a497985b
70 files changed
+1631
-621
No files matched your search
@@ -266,11 +266,12 @@ class _ViewingBanner extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final isFavorite = context
|
||||
.watch<SettingsCubit>()
|
||||
.val()
|
||||
.timetableFavoritesSettings
|
||||
.isFavorite(element.type, element.id);
|
||||
final isFavorite = context.select(
|
||||
(SettingsCubit c) => c.state.timetableFavoritesSettings.isFavorite(
|
||||
element.type,
|
||||
element.id,
|
||||
),
|
||||
);
|
||||
|
||||
final onColor = theme.colorScheme.onSecondaryContainer;
|
||||
// Compact icon button: ~32px square, no extra padding, so the banner stays
|
||||
|
||||
Reference in new issue
Block a user