Skip to content

Commit

Permalink
Merge pull request #4 from PhilipPurwoko/master
Browse files Browse the repository at this point in the history
Fix set indent function
  • Loading branch information
MAHAulia authored Apr 6, 2022
2 parents 4c2b01e + 9cf6043 commit 2f5e305
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion lib/flutter_pax_printer_utility.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class FlutterPaxPrinterUtility {
return response;
}

static Future<bool?> leftIndents(String indent) async {
static Future<bool?> leftIndents(int indent) async {
Map<String, dynamic> arguments = {
"indent": indent,
};
Expand Down

0 comments on commit 2f5e305

Please sign in to comment.