diff --git a/lib/pages/logger.dart b/lib/pages/logger.dart index 0c10143..8b562db 100644 --- a/lib/pages/logger.dart +++ b/lib/pages/logger.dart @@ -11,8 +11,7 @@ import 'package:routemaster/routemaster.dart'; import '../utils/scroll.dart'; class LogPage extends StatefulWidget { - LogPage({super.key, required String serial}) - : logFuture = Adb.logcat(serial); + LogPage({super.key, required String serial}) : logFuture = Adb.logcat(serial); final Future> logFuture; final scrollController = AdjustableScrollController(); diff --git a/lib/src/pigeon.g.dart b/lib/src/pigeon.g.dart index 2efad61..1e0293e 100644 --- a/lib/src/pigeon.g.dart +++ b/lib/src/pigeon.g.dart @@ -8,7 +8,8 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse( + {Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -26,14 +27,15 @@ abstract class Native2Flutter { static void setup(Native2Flutter? api, {BinaryMessenger? binaryMessenger}) { { final BasicMessageChannel channel = BasicMessageChannel( - 'dev.flutter.pigeon.desktop_adb_file_browser.Native2Flutter.onClick', codec, + 'dev.flutter.pigeon.desktop_adb_file_browser.Native2Flutter.onClick', + codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.desktop_adb_file_browser.Native2Flutter.onClick was null.'); + 'Argument for dev.flutter.pigeon.desktop_adb_file_browser.Native2Flutter.onClick was null.'); final List args = (message as List?)!; final bool? arg_forward = (args[0] as bool?); assert(arg_forward != null, @@ -43,8 +45,9 @@ abstract class Native2Flutter { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/lib/utils/file_sort.dart b/lib/utils/file_sort.dart index b8d7ac1..4ed5785 100644 --- a/lib/utils/file_sort.dart +++ b/lib/utils/file_sort.dart @@ -1,4 +1,3 @@ - /// /// Sorts directories (ends with /) first then files, finally alphabetical /// diff --git a/lib/widgets/browser/new_file_dialog.dart b/lib/widgets/browser/new_file_dialog.dart index b63294d..064270d 100644 --- a/lib/widgets/browser/new_file_dialog.dart +++ b/lib/widgets/browser/new_file_dialog.dart @@ -6,7 +6,9 @@ class NewFileDialog extends StatefulWidget { final ValueNotifier fileCreation; const NewFileDialog( - {super.key, required this.fileNameController, required this.fileCreation}); + {super.key, + required this.fileNameController, + required this.fileCreation}); @override State createState() => _NewFileDialogState(); diff --git a/pigeon/mouse_event.dart b/pigeon/mouse_event.dart index ea5e135..3893fb6 100644 --- a/pigeon/mouse_event.dart +++ b/pigeon/mouse_event.dart @@ -3,7 +3,9 @@ import 'package:pigeon/pigeon.dart'; @ConfigurePigeon(PigeonOptions( dartOut: 'lib/src/pigeon.g.dart', dartOptions: DartOptions(), - cppOptions: CppOptions(namespace: "pigeon", ), + cppOptions: CppOptions( + namespace: "pigeon", + ), cppHeaderOut: 'windows/runner/pigeon.g.h', cppSourceOut: 'windows/runner/pigeon.g.cpp', objcHeaderOut: 'macos/Runner/pigeon.g.h', @@ -12,7 +14,6 @@ import 'package:pigeon/pigeon.dart'; objcOptions: ObjcOptions(prefix: 'PGN'), // copyrightHeader: 'pigeons/copyright.txt', dartPackageName: 'desktop_adb_file_browser', - )) // https://github.com/flutter/flutter/issues/108682 @@ -26,5 +27,3 @@ abstract class Native2Flutter { abstract class Flutter2Native { void random(bool x); } - -