dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
dio: ^3.0.9
flutter_swiper: ^1.1.6
crypto: ^2.0.6
- flutter create myapp
- cd myapp
- flutter run
- flutter create -t module flutter_module
- flutter attach
flutter_application_path = '../my_flutter'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'targetName'
use_frameworks!
install_all_flutter_pods(flutter_application_path)
end
#import <FlutterPluginRegistrant/GeneratedPluginRegistrant.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.flutterEngine = [[FlutterEngine alloc] initWithName:@"my flutter engine"];
[self.flutterEngine run];
[GeneratedPluginRegistrant registerWithRegistry:self.flutterEngine];
return YES;
}
FlutterEngine *flutterEngine =
((AppDelegate *)UIApplication.sharedApplication.delegate).flutterEngine;
self.flutterViewController =
[[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil];
self.flutterViewController.view.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
[self addChildViewController:self.flutterViewController];
[self.view addSubview:self.flutterViewController.view];