更新 lib/screens/loading_screen.dart
update
This commit is contained in:
@@ -419,8 +419,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
body: SafeArea(
|
||||
child: Stack(
|
||||
body: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: Image.asset(
|
||||
@@ -432,6 +431,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
child: Container(color: const Color.fromRGBO(0, 0, 0, 0)),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: SafeArea(
|
||||
child: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
@@ -500,6 +500,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (_webviewShow && _initialUrlRequest != null)
|
||||
Positioned.fill(
|
||||
child: Material(
|
||||
@@ -628,8 +629,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
(controller, navigationAction) async {
|
||||
final requestUrl = navigationAction.request.url
|
||||
?.toString();
|
||||
if (requestUrl != null &&
|
||||
requestUrl.isNotEmpty) {
|
||||
if (requestUrl != null && requestUrl.isNotEmpty) {
|
||||
_currentWebViewUrl = requestUrl;
|
||||
}
|
||||
final isRedirect =
|
||||
@@ -672,7 +672,6 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user