let add-to-app ios demo page transitions be animated (#603)

pull/605/head
xster 4 years ago committed by GitHub
parent a0d314bf5e
commit 7cab73a075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,7 +147,7 @@ class Contents extends StatelessWidget {
if (showExit) ...[
SizedBox(height: 16),
RaisedButton(
onPressed: () => SystemNavigator.pop(),
onPressed: () => SystemNavigator.pop(animated: true),
child: Text('Exit this screen'),
),
],

@ -44,7 +44,7 @@ class ViewController: UIViewController {
@IBAction func buttonWasTapped(_ sender: Any) {
if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine {
let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)
self.present(flutterViewController, animated: false, completion: nil)
self.present(flutterViewController, animated: true, completion: nil)
}
}
}

Loading…
Cancel
Save