更新 lib/screens/loading_screen.dart

update
This commit is contained in:
2026-06-07 17:53:19 +08:00
parent 7845286c11
commit 813e9c98c3

View File

@@ -419,8 +419,7 @@ class _LoadingScreenState extends State<LoadingScreen>
return Scaffold( return Scaffold(
backgroundColor: Colors.black, backgroundColor: Colors.black,
body: SafeArea( body: Stack(
child: Stack(
children: [ children: [
Positioned.fill( Positioned.fill(
child: Image.asset( child: Image.asset(
@@ -432,6 +431,7 @@ class _LoadingScreenState extends State<LoadingScreen>
child: Container(color: const Color.fromRGBO(0, 0, 0, 0)), child: Container(color: const Color.fromRGBO(0, 0, 0, 0)),
), ),
Positioned.fill( Positioned.fill(
child: SafeArea(
child: Center( child: Center(
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
@@ -500,6 +500,7 @@ class _LoadingScreenState extends State<LoadingScreen>
), ),
), ),
), ),
),
if (_webviewShow && _initialUrlRequest != null) if (_webviewShow && _initialUrlRequest != null)
Positioned.fill( Positioned.fill(
child: Material( child: Material(
@@ -628,8 +629,7 @@ class _LoadingScreenState extends State<LoadingScreen>
(controller, navigationAction) async { (controller, navigationAction) async {
final requestUrl = navigationAction.request.url final requestUrl = navigationAction.request.url
?.toString(); ?.toString();
if (requestUrl != null && if (requestUrl != null && requestUrl.isNotEmpty) {
requestUrl.isNotEmpty) {
_currentWebViewUrl = requestUrl; _currentWebViewUrl = requestUrl;
} }
final isRedirect = final isRedirect =
@@ -672,7 +672,6 @@ class _LoadingScreenState extends State<LoadingScreen>
), ),
], ],
), ),
),
); );
} }
} }