Skip to content

Commit ed80045

Browse files
committed
refactor(web): remove unused splash screen remover code
- Remove unused import for WebSplashRemover - Remove post-frame callback for removing splash screen on web
1 parent 378f8db commit ed80045

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/main.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import 'package:device_preview/device_preview.dart';
22
import 'package:flutter/foundation.dart';
33
import 'package:flutter/material.dart';
44
import 'package:flutter_news_app_mobile_client_full_source_code/app/config/config.dart';
5-
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/splash_screen_remover/web_splash_remover.dart';
65
import 'package:flutter_news_app_mobile_client_full_source_code/bootstrap.dart';
76

87
// Define the current application environment (production/development/demo).
@@ -17,13 +16,6 @@ void main() async {
1716

1817
final appWidget = await bootstrap(appConfig, appEnvironment);
1918

20-
// Only remove the splash screen on web after the app is ready.
21-
if (kIsWeb) {
22-
WidgetsBinding.instance.addPostFrameCallback((_) {
23-
removeSplashFromWeb();
24-
});
25-
}
26-
2719
if (appConfig.environment == AppEnvironment.demo && kIsWeb) {
2820
runApp(
2921
DevicePreview(

0 commit comments

Comments
 (0)