feat: 更新 App 图标与开屏素材
This commit is contained in:
1 parent
928ac1de19
commit
d868ce9336
65 files changed
+139
-126
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -44,10 +43,7 @@ class HomePage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
|
||||
static const _androidSplashAsset = 'assets/icon/splash_logo_android12.png';
|
||||
static const _defaultSplashAsset = 'assets/icon/splash_logo.png';
|
||||
static const _androidSplashSize = 288.0;
|
||||
static const _defaultSplashSize = 384.0;
|
||||
static const _splashAsset = 'assets/icon/splash_logo.png';
|
||||
|
||||
bool _resumeRetryInFlight = false;
|
||||
HomeFeedController? _homeFeed;
|
||||
@@ -163,18 +159,15 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
|
||||
}
|
||||
|
||||
Widget _startupSplash() {
|
||||
final isAndroid = defaultTargetPlatform == TargetPlatform.android;
|
||||
final size = isAndroid ? _androidSplashSize : _defaultSplashSize;
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: SystemUiOverlayStyle.light,
|
||||
child: ColoredBox(
|
||||
color: AppColors.splashInk,
|
||||
color: AppColors.mediaBlack,
|
||||
child: Center(
|
||||
child: Image.asset(
|
||||
isAndroid ? _androidSplashAsset : _defaultSplashAsset,
|
||||
_splashAsset,
|
||||
key: const Key('startup-splash'),
|
||||
width: size,
|
||||
height: size,
|
||||
width: 200,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user