add ticker page bloc and avatar disk cache
This commit is contained in:
@@ -51,6 +51,7 @@ import 'utils/downloads/download_manager.dart';
|
||||
import 'view/login/login.dart';
|
||||
import 'view/login/post_login_splash.dart';
|
||||
import 'widget/app_progress_indicator.dart';
|
||||
import 'widget/avatar_disk_cache.dart';
|
||||
import 'widget/breaker/breaker.dart';
|
||||
import 'widget/debug/cache_view.dart';
|
||||
import 'widget/downloads/download_tray.dart';
|
||||
@@ -150,6 +151,11 @@ Future<void> main() async {
|
||||
);
|
||||
}
|
||||
|
||||
// Resolve the avatar cache directory ahead of the first avatar render so the
|
||||
// synchronous disk read hits and cold-start avatars appear without a blank
|
||||
// placeholder flash.
|
||||
AvatarDiskCache.instance.warmUp();
|
||||
|
||||
if (kReleaseMode) {
|
||||
ErrorWidget.builder = (error) => Material(
|
||||
color: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user