Skip to content

Commit

Permalink
Fix loading of base64 data in FLPencilKit.swift and PencilKitController
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis115 committed Jan 6, 2024
1 parent d6a3c85 commit 127a4f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/Classes/FLPencilKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class FLPencilKit: NSObject, FlutterPlatformView {
result: FlutterResult
) {
do {
let (base64Data) = parseArguments(call.arguments)
let base64Data = call.arguments;
try pencilKitView.loadBase64Data(base64Data: base64Data)
result(nil)
} catch {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pencil_kit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,5 @@ class PencilKitController {
/// }
/// ```
Future<void> loadBase64Data(String base64Data) =>
_channel.invokeMethod('loadBase64Data', <Object>[base64Data]);
_channel.invokeMethod('loadBase64Data', base64Data);
}

0 comments on commit 127a4f3

Please sign in to comment.