-
Notifications
You must be signed in to change notification settings - Fork 0
Enhance splash screen #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
# flutter pub run flutter_launcher_icons | ||
flutter_launcher_icons: | ||
image_path: "assets/icon/headlines_toolkit.png" | ||
image_path: "assets/icon/logo.png" | ||
|
||
android: "launcher_icon" | ||
# image_path_android: "assets/icon/headlines_toolkit.png" | ||
# image_path_android: "assets/icon/logo.png" | ||
min_sdk_android: 21 # android min sdk min:16, default 21 | ||
# adaptive_icon_background: "assets/icon/background.png" | ||
# adaptive_icon_foreground: "assets/icon/foreground.png" | ||
# adaptive_icon_foreground_inset: 16 | ||
# adaptive_icon_monochrome: "assets/icon/monochrome.png" | ||
|
||
ios: false | ||
# image_path_ios: "assets/icon/headlines_toolkit.png" | ||
remove_alpha_channel_ios: true | ||
# image_path_ios_dark_transparent: "assets/icon/icon_dark.png" | ||
# image_path_ios_tinted_grayscale: "assets/icon/icon_tinted.png" | ||
# desaturate_tinted_to_grayscale_ios: true | ||
|
||
web: | ||
generate: true | ||
# image_path: "assets/icon/headlines_toolkit.png" | ||
background_color: "#FFFFFF" | ||
theme_color: "#FFFFFF" | ||
theme_color: "#FFFFFF" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import 'package:device_preview/device_preview.dart'; | ||
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/web_splash.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_news_app_mobile_client_full_source_code/app/config/config.dart'; | ||
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/splash_screen_remover/web_splash_remover.dart'; | ||
import 'package:flutter_news_app_mobile_client_full_source_code/bootstrap.dart'; | ||
|
||
// Define the current application environment (production/development/demo). | ||
const appEnvironment = AppEnvironment.development; | ||
const appEnvironment = AppEnvironment.demo; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The application environment has been switched to
|
||
|
||
void main() async { | ||
final appConfig = switch (appEnvironment) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.center { | ||
margin: 0; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
-ms-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
} | ||
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
|
||
#splash-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
#splash { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.loader { | ||
border: 4px solid #f3f3f3; | ||
border-radius: 50%; | ||
border-top: 4px solid #3498db; | ||
width: 40px; | ||
height: 40px; | ||
-webkit-animation: spin 2s linear infinite; /* Safari */ | ||
animation: spin 2s linear infinite; | ||
} | ||
|
||
/* Safari */ | ||
@-webkit-keyframes spin { | ||
0% { -webkit-transform: rotate(0deg); } | ||
100% { -webkit-transform: rotate(360deg); } | ||
} | ||
|
||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
.loader { | ||
border-top: 4px solid #90caf9; /* A lighter blue for dark mode */ | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this
ios
configuration block will cause theflutter_launcher_icons
tool to default to generating icons for iOS (asios
defaults totrue
). This is a significant change from explicitly disabling it withios: false
. Was this intentional? If not, this could introduce unexpected changes or failures in the iOS build process.If you intend to keep iOS icon generation disabled, this block should be restored, or at least
ios: false
should be present in the configuration.