mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
fix extra rebuild due to hierarchy change
This commit is contained in:
parent
f3969dc6af
commit
71132a1f0e
@ -46,11 +46,11 @@ class CoverArtTheme extends HookConsumerWidget {
|
||||
|
||||
final colorScheme = useFuture(getColorScheme).data;
|
||||
|
||||
return colorScheme != null
|
||||
? Theme(
|
||||
data: subtracksTheme(colorScheme),
|
||||
return Theme(
|
||||
data: colorScheme == null
|
||||
? Theme.of(context)
|
||||
: subtracksTheme(colorScheme),
|
||||
child: child,
|
||||
)
|
||||
: child;
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user