Skip to content

Splash screen implementation #1420

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/app-icons/zulip-combined_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/zulip_plugin/pubspec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages: {}
sdks:
dart: ">=3.4.0-256.0.dev <4.0.0"
flutter: ">=3.3.0"
31 changes: 29 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: A Zulip client for Android and iOS
publish_to: 'none'

# Keep the last two numbers equal; see docs/release.md.
version: 0.0.27+27
version: 0.0.26+26

environment:
# We use a recent version of Flutter from its main channel, and
Expand All @@ -21,6 +21,9 @@ environment:
dependencies:
flutter:
sdk: flutter
shared_preferences: ^2.2.2
flutter_native_splash: ^2.3.5

flutter_localizations:
sdk: flutter

Expand Down Expand Up @@ -66,6 +69,29 @@ dependencies:
path: ./packages/zulip_plugin
# Keep list sorted when adding dependencies; it helps prevent merge conflicts.


flutter_native_splash:
color: "#ADD8E6" # Light blue background color
# Alternatively, use a gradient:
# background_image: "assets/background.png" # can create a gradient background image

image: assets/app-icons/zulip-combined_.png # Zulip custom screen image
fullscreen: true
# The following are optional parameters
# branding: assets/branding.png
# branding_mode: bottom

# Customize the splash screen for different platforms
android_12:
image: assets/app-icons/zulip-combined_.png #Zulip custom screen image
icon_background_color: "#ADD8E6"

web: false # Set to true if you want splash screen on web

# For a gradient effect on iOS, use a background image instead of color
# ios_content_mode: center


dependency_overrides:
# TODO(#918) remove this and `flutter_color_models` when `flutter_color_models` accommodates
# wide-gamut adjustments to Flutter's `Color`. A PR to `flutter_color_models` is already open:
Expand Down Expand Up @@ -95,13 +121,14 @@ dev_dependencies:
checks: ^0.3.0
clock: ^1.1.1
drift_dev: ^2.5.2
sqlite3_flutter_libs: ^0.5.0
fake_async: ^1.3.1
flutter_checks: ^0.1.1
flutter_lints: ^5.0.0
ini: ^2.1.0
json_serializable: ^6.5.4
legacy_checks: ^0.1.0
pigeon: ^24.2.1
pigeon: 22.7.2
plugin_platform_interface: ^2.1.8
stack_trace: ^1.11.1
test: ^1.23.1
Expand Down
Loading