mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-11 13:39:29 +00:00
theme on item page is much smoother now
This commit is contained in:
parent
1609fe9d65
commit
0d54f1cb15
3 changed files with 176 additions and 107 deletions
|
|
@ -13,7 +13,7 @@ Future<FutureOr<ColorScheme?>> themeFromCover(
|
|||
Brightness brightness = Brightness.dark,
|
||||
}) async {
|
||||
// add deliberate delay to simulate a long running task
|
||||
await Future.delayed(200.ms);
|
||||
await Future.delayed(500.ms);
|
||||
return ColorScheme.fromImageProvider(
|
||||
provider: img,
|
||||
brightness: brightness,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue