Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace controller reference on ios
  • Loading branch information
Codel1417 committed Jan 26, 2025
commit bf078ebe36b997dfdd543b570b7d7eb5d1c57bc2
2 changes: 1 addition & 1 deletion packages/pedometer/ios/Classes/SwiftPedometerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SwiftPedometerPlugin: NSObject, FlutterPlugin {
stepCountChannel.setStreamHandler(stepCountHandler)

let methodChannel = FlutterMethodChannel(name: "com.example.pedometer",
binaryMessenger: controller.binaryMessenger)
binaryMessenger: registrar.messenger())
methodChannel.setMethodCallHandler({
[weak self] (call: FlutterMethodCall, result: FlutterResult) -> Void in
// This method is invoked on the UI thread.
Expand Down