// // AMapFlutterFactory.m // amap_flutter_map // // Created by lly on 2020/10/29. // #import "AMapFlutterFactory.h" #import #import "AMapViewController.h" @implementation AMapFlutterFactory { NSObject* _registrar; } - (instancetype)initWithRegistrar:(NSObject*)registrar { self = [super init]; if (self) { _registrar = registrar; } return self; } - (NSObject*)createArgsCodec { return [FlutterStandardMessageCodec sharedInstance]; } - (NSObject*)createWithFrame:(CGRect)frame viewIdentifier:(int64_t)viewId arguments:(id _Nullable)args { return [[AMapViewController alloc] initWithFrame:frame viewIdentifier:viewId arguments:args registrar:_registrar]; } @end