diff --git a/lib/pages/android_file_picker_page.dart b/lib/pages/android_file_picker_page.dart index 512771c..154a8e4 100644 --- a/lib/pages/android_file_picker_page.dart +++ b/lib/pages/android_file_picker_page.dart @@ -1,5 +1,6 @@ /// Modified based on the example of library `file_manager`: /// https://github.com/DevsOnFlutter/file_manager/blob/main/example/lib/main.dart +/// Originally distributed under BSD-3-Clause license import 'dart:io'; @@ -73,7 +74,7 @@ class _AndroidFilePickerState extends State { // open the folder controller.openDirectory(entity); } else { - // select a file + // select or unselect a file setStateS(() { if (_selected.contains(entity)) { _selected.remove(entity); @@ -83,6 +84,16 @@ class _AndroidFilePickerState extends State { }); } }, + onLongPress: () async { + // select or unselect a file or a dir + setStateS(() { + if (_selected.contains(entity)) { + _selected.remove(entity); + } else { + _selected.add(entity); + } + }); + }, ), ); }, diff --git a/lib/pages/rules_page.dart b/lib/pages/rules_page.dart index 80b68cb..498097e 100644 --- a/lib/pages/rules_page.dart +++ b/lib/pages/rules_page.dart @@ -62,6 +62,7 @@ class RulesPageState extends State { children: [ Row( children: [ + box, Expanded( child: CustomDrop( value: Shared.ruleName, diff --git a/license_checker_config.yaml b/license_checker_config.yaml new file mode 100644 index 0000000..e165095 --- /dev/null +++ b/license_checker_config.yaml @@ -0,0 +1,17 @@ +permittedLicenses: + - MIT + - BSD-2-Clause + - BSD-3-Clause + - Apache-2.0 + - MIT + - MPL + - LGPL + - GPLv2+ + - GPLv3 + - AGPL + +rejectedLicenses: + - GPLv2 + +omitDisclaimer: + - angles \ No newline at end of file