From 7cab73a07598ae90567dcdabfb9b5f644b652211 Mon Sep 17 00:00:00 2001 From: xster Date: Thu, 26 Nov 2020 00:23:10 -0800 Subject: [PATCH] let add-to-app ios demo page transitions be animated (#603) --- add_to_app/flutter_module/lib/main.dart | 2 +- add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/add_to_app/flutter_module/lib/main.dart b/add_to_app/flutter_module/lib/main.dart index 2f92e06b7..006de383c 100644 --- a/add_to_app/flutter_module/lib/main.dart +++ b/add_to_app/flutter_module/lib/main.dart @@ -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'), ), ], diff --git a/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift b/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift index 2746e11b4..85a4e1fcd 100644 --- a/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift +++ b/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift @@ -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) } } }