diff --git a/platform_view_swift/ios/Runner/AppDelegate.swift b/platform_view_swift/ios/Runner/AppDelegate.swift index 9726d3adf..705e86dbd 100644 --- a/platform_view_swift/ios/Runner/AppDelegate.swift +++ b/platform_view_swift/ios/Runner/AppDelegate.swift @@ -29,8 +29,7 @@ import Flutter let navigationController = UINavigationController(rootViewController: platformViewController) navigationController.navigationBar.topItem?.title = "Platform View" controller.present(navigationController, animated: true, completion: nil) - } - else { + } else { result(FlutterMethodNotImplemented) } }); diff --git a/platform_view_swift/lib/main.dart b/platform_view_swift/lib/main.dart index 51d78ddfe..d962b855c 100644 --- a/platform_view_swift/lib/main.dart +++ b/platform_view_swift/lib/main.dart @@ -3,7 +3,6 @@ // BSD-style license that can be found in the LICENSE file. import 'dart:async'; -import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; diff --git a/platform_view_swift/pubspec.yaml b/platform_view_swift/pubspec.yaml index 919f86cf9..c7d0c6ce8 100644 --- a/platform_view_swift/pubspec.yaml +++ b/platform_view_swift/pubspec.yaml @@ -4,11 +4,6 @@ dependencies: flutter: sdk: flutter - collection: 1.14.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vector_math: 2.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - flutter: uses-material-design: true