@@ -193,14 +193,14 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect,
193
193
void FlutterPlatformViewsController::OnCreate (FlutterMethodCall* call, FlutterResult& result) {
194
194
NSDictionary <NSString *, id >* args = [call arguments ];
195
195
196
- long viewId = [args[@" id" ] longValue ];
196
+ int64_t viewId = [args[@" id" ] longLongValue ];
197
197
NSString * viewTypeString = args[@" viewType" ];
198
198
std::string viewType (viewTypeString.UTF8String );
199
199
200
200
if (views_.count (viewId) != 0 ) {
201
201
result ([FlutterError errorWithCode: @" recreating_view"
202
202
message: @" trying to create an already created view"
203
- details: [NSString stringWithFormat: @" view id: '%ld '" , viewId]]);
203
+ details: [NSString stringWithFormat: @" view id: '%lld '" , viewId]]);
204
204
}
205
205
206
206
NSObject <FlutterPlatformViewFactory>* factory = factories_[viewType].get ();
@@ -234,7 +234,8 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect,
234
234
arguments: params];
235
235
UIView* platform_view = [embedded_view view ];
236
236
// Set a unique view identifier, so the platform view can be identified in unit tests.
237
- platform_view.accessibilityIdentifier = [NSString stringWithFormat: @" platform_view[%ld ]" , viewId];
237
+ platform_view.accessibilityIdentifier =
238
+ [NSString stringWithFormat: @" platform_view[%lld ]" , viewId];
238
239
views_[viewId] = fml::scoped_nsobject<NSObject <FlutterPlatformView>>([embedded_view retain ]);
239
240
240
241
FlutterTouchInterceptingView* touch_interceptor = [[[FlutterTouchInterceptingView alloc ]
0 commit comments