Skip to content
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

Support LaunchImage and Blurr together in IOS #38

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
minor formatting/documentation updates
  • Loading branch information
stevenspiel committed Jan 7, 2022
commit 2bd10feaa570eca7be61d87bf1b01ad0b3eb9ef5
2 changes: 1 addition & 1 deletion ios/Classes/SwiftSecureApplicationPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public class SwiftSecureApplicationPlugin: NSObject, FlutterPlugin {
blurrView.removeFromSuperview()
})
}

if let imageView = window.viewWithTag(99697) {
UIView.animate(withDuration: 0.3, animations: {
imageView.alpha = 0.0
Expand Down
6 changes: 3 additions & 3 deletions lib/secure_gate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class SecureGate extends StatefulWidget {
/// Whether to use the application's LaunchImage in the app switcher.
///
/// For this to work, you MUST have a LaunchImage ImageSet in your iOS folder,
/// just like a newly generated flutter application. More info here:
/// https://docs.flutter.dev/development/ui/advanced/splash-screen#ios-launch-screen
/// just like a newly generated flutter application (at ios/Runner/Assets.xcassets/LaunchImage.imageset)
/// More info here: https://docs.flutter.dev/development/ui/advanced/splash-screen#ios-launch-screen
///
/// If this is true, [opacity] and [blurr] are ignored.
/// If this is true, [opacity] and [blurr] are ignored (iOS only).
///
/// Only available on iOS. It is not possible on Android, as far as I'm aware
final bool useLaunchImageIOS;
Expand Down