From 341a82025266b57c1e57507be6d8e295595b8fba Mon Sep 17 00:00:00 2001 From: Philip Purwoko Date: Wed, 6 Apr 2022 11:01:30 +0700 Subject: [PATCH 1/3] fix set indent type --- lib/flutter_pax_printer_utility.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flutter_pax_printer_utility.dart b/lib/flutter_pax_printer_utility.dart index b1aaa98..7625ef1 100644 --- a/lib/flutter_pax_printer_utility.dart +++ b/lib/flutter_pax_printer_utility.dart @@ -141,7 +141,7 @@ class FlutterPaxPrinterUtility { return response; } - static Future leftIndents(String indent) async { + static Future leftIndents(int indent) async { Map arguments = { "indent": indent, }; From 5e647edcb78ea93f3ac23b58a457cc6876050fe8 Mon Sep 17 00:00:00 2001 From: Philip Purwoko Date: Wed, 6 Apr 2022 11:06:20 +0700 Subject: [PATCH 2/3] change short type to int --- .../FlutterPaxPrinterUtilityPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/mahatech/flutter_pax_printer_utility/FlutterPaxPrinterUtilityPlugin.java b/android/src/main/java/com/mahatech/flutter_pax_printer_utility/FlutterPaxPrinterUtilityPlugin.java index 123df13..617644d 100644 --- a/android/src/main/java/com/mahatech/flutter_pax_printer_utility/FlutterPaxPrinterUtilityPlugin.java +++ b/android/src/main/java/com/mahatech/flutter_pax_printer_utility/FlutterPaxPrinterUtilityPlugin.java @@ -207,7 +207,7 @@ public void run() { final String status = printerUtility.start(); result.success(status); } else if (call.method.equals("leftIndents")) { - short indent = call.argument("indent"); + int indent = call.argument("indent"); printerUtility.leftIndents(indent); result.success(true); } else if (call.method.equals("getDotLine")) { From 9cf6043a91193aa46b76da8869e4a5784e21284d Mon Sep 17 00:00:00 2001 From: Philip Purwoko Date: Wed, 6 Apr 2022 11:08:01 +0700 Subject: [PATCH 3/3] change short to int --- .../mahatech/flutter_pax_printer_utility/PrinterUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/mahatech/flutter_pax_printer_utility/PrinterUtility.java b/android/src/main/java/com/mahatech/flutter_pax_printer_utility/PrinterUtility.java index 8e880f3..9427c29 100644 --- a/android/src/main/java/com/mahatech/flutter_pax_printer_utility/PrinterUtility.java +++ b/android/src/main/java/com/mahatech/flutter_pax_printer_utility/PrinterUtility.java @@ -140,7 +140,7 @@ public String start() { } - public void leftIndents(short indent) { + public void leftIndents(int indent) { try { printer.leftIndent(indent); Log.i("LIND", "LEFT INDENT");