feat: 保留系统开屏并更新品牌素材
This commit is contained in:
1 parent
41bd4683c3
commit
345cc2ad28
56 files changed
+10
-53
No files matched your search
@@ -43,8 +43,6 @@ class HomePage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
|
||||
static const _splashAsset = 'assets/icon/splash_logo.png';
|
||||
|
||||
bool _resumeRetryInFlight = false;
|
||||
HomeFeedController? _homeFeed;
|
||||
bool _recommendSeeded = false;
|
||||
@@ -111,7 +109,7 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
|
||||
AppLocalizations l10n,
|
||||
) {
|
||||
if (catalog.loading) {
|
||||
return catalog.settled ? _retryLoading() : _startupSplash();
|
||||
return _retryLoading();
|
||||
}
|
||||
if (catalog.error != null) {
|
||||
return Scaffold(
|
||||
@@ -158,23 +156,6 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
|
||||
}
|
||||
}
|
||||
|
||||
Widget _startupSplash() {
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: SystemUiOverlayStyle.light,
|
||||
child: ColoredBox(
|
||||
color: AppColors.mediaBlack,
|
||||
child: Center(
|
||||
child: Image.asset(
|
||||
_splashAsset,
|
||||
key: const Key('startup-splash'),
|
||||
width: 200,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _retryLoading() {
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: SystemUiOverlayStyle.light,
|
||||
|
||||
Reference in new issue
Block a user