├── .gitignore
├── .metadata
├── .vscode
├── c_cpp_properties.json
├── launch.json
├── notes.txt
└── settings.json
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── .project
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── app
│ ├── .classpath
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ ├── arm64-v8a
│ │ │ │ ├── busybox
│ │ │ │ └── proot
│ │ │ └── x86_64
│ │ │ │ ├── busybox
│ │ │ │ └── proot
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── deskbtm
│ │ │ │ └── aqua
│ │ │ │ ├── InnerPluginMgmt.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── Template.java
│ │ │ │ └── tools
│ │ │ │ ├── archive
│ │ │ │ ├── Archive.java
│ │ │ │ ├── ArchiveMapper.java
│ │ │ │ └── ArchivePlugin.java
│ │ │ │ ├── connectivity
│ │ │ │ ├── Connectivity.java
│ │ │ │ ├── ConnectivityBroadcastReceiver.java
│ │ │ │ ├── ConnectivityMethodChannelHandler.java
│ │ │ │ └── ConnectivityPlugin.java
│ │ │ │ ├── fs
│ │ │ │ ├── ExtendStorage.java
│ │ │ │ ├── FsPlugin.java
│ │ │ │ ├── PathProvider.java
│ │ │ │ ├── SAFStorage.java
│ │ │ │ ├── StorageDescription.java
│ │ │ │ ├── StorageDirectoryMapper.java
│ │ │ │ └── StorageListenerPlugin.java
│ │ │ │ ├── glide
│ │ │ │ ├── BitmapTarget.java
│ │ │ │ ├── EnumMapper.java
│ │ │ │ ├── GlideHandler.java
│ │ │ │ ├── GlidePlugin.java
│ │ │ │ └── Reply.java
│ │ │ │ ├── pkg
│ │ │ │ ├── PackageManagerPlugin.java
│ │ │ │ └── PackageMgmt.java
│ │ │ │ └── virtual_container
│ │ │ │ ├── VirtualContainerPlugin.java
│ │ │ │ └── VirtualContainerUtils.java
│ │ └── res
│ │ │ ├── drawable-anydpi-v26
│ │ │ └── ic_launcher.xml
│ │ │ ├── drawable
│ │ │ ├── ic_baseline_folder_24.xml
│ │ │ └── launch_background.xml
│ │ │ ├── layout
│ │ │ └── demo.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values
│ │ │ ├── setings.xml
│ │ │ └── styles.xml
│ │ │ └── xml
│ │ │ └── network_security_config.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── debug.properties
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── logo.svg
├── settings.gradle
└── settings_aar.gradle
├── aqua_policy.html
├── assets
├── images
│ ├── ai.png
│ ├── alipay.jpg
│ ├── apk.png
│ ├── audio.png
│ ├── csv.png
│ ├── excel.png
│ ├── exe.png
│ ├── flash.png
│ ├── folder.png
│ ├── html.png
│ ├── image.png
│ ├── link.png
│ ├── logo.png
│ ├── md.png
│ ├── pdf.png
│ ├── ppt.png
│ ├── psd.png
│ ├── txt.png
│ ├── unknown.png
│ ├── video.png
│ ├── wechat_pay.jpg
│ ├── word.png
│ ├── xml.png
│ └── zip.png
├── logo.svg
└── web
│ ├── plyr.css
│ └── plyr.js
├── build.bat
├── image
├── QQE59BBEE7898720210105161527-281004-o_1er8v8kudfdb1i715l3eoi1bf215-uid-1111781@1080x1920.jpg
├── QQE59BBEE7898720210105161531-281004-o_1er8v8kudojamqs1v7p1t5g139716-uid-1111781@1080x1920.jpg
├── QQE59BBEE7898720210105161535-281004-o_1er8v8kudv6ivnd1svrshk19rk17-uid-1111781@1080x1920.jpg
├── QQE59BBEE7898720210105161539-281004-o_1er8v8kud1uei1lpo1bqf16n3inq18-uid-1111781@1080x1920.jpg
└── QQE59BBEE7898720210105161737-281057-o_1erc01i4hccv1ifs1ok711utgbi2h-uid-1111781@1080x1920.jpg
├── ios
├── .gitignore
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── l10n.yaml
├── lib
├── aqua.dart
├── common
│ ├── theme.dart
│ └── widget
│ │ ├── action_button.dart
│ │ ├── aqua_text_field.dart
│ │ ├── checkbox.dart
│ │ ├── cloud_header.dart
│ │ ├── dialog.dart
│ │ ├── double_pop.dart
│ │ ├── fade_in.dart
│ │ ├── function_widget.dart
│ │ ├── icon_item.dart
│ │ ├── images.dart
│ │ ├── inner_drawer.dart
│ │ ├── input.dart
│ │ ├── loading_flipping.dart
│ │ ├── marquee.dart
│ │ ├── modal
│ │ ├── show_modal.dart
│ │ ├── show_specific_modal.dart
│ │ └── split_modal.dart
│ │ ├── no_resize_text.dart
│ │ ├── overwrite_cupertino_modal.dart
│ │ ├── point_tab.dart
│ │ ├── progress.dart
│ │ ├── refresh_header.dart
│ │ ├── static_utils.dart
│ │ ├── storage_card.dart
│ │ ├── switch.dart
│ │ ├── tile.dart
│ │ └── widget.dart
├── constant
│ ├── constant.dart
│ └── constant_var.dart
├── external
│ ├── breadcrumb
│ │ ├── flutter_breadcrumb.dart
│ │ └── src
│ │ │ ├── breadcrumb.dart
│ │ │ ├── breadcrumb_item.dart
│ │ │ ├── breadcrumb_overflow.dart
│ │ │ └── breadcrumb_widget.dart
│ ├── menu
│ │ └── menu.dart
│ ├── switch
│ │ ├── animation_switch.dart
│ │ ├── thumb_painter.dart
│ │ └── xliv-switch.dart
│ └── webdav
│ │ ├── src
│ │ ├── client.dart
│ │ ├── file.dart
│ │ └── retry.dart
│ │ └── webdav.dart
├── l10n
│ ├── app_en.arb
│ └── app_zh.arb
├── main.dart
├── model
│ ├── associate_view_model.dart
│ ├── file_manager_model.dart
│ ├── global_model.dart
│ ├── independent_view_model.dart
│ ├── model.dart
│ ├── quick_board_model.dart
│ ├── select_file_model.dart
│ └── theme_model.dart
├── page
│ ├── file_editor
│ │ ├── dialog.dart
│ │ ├── editor_theme.dart
│ │ ├── encoding_list.dart
│ │ ├── file_editor.dart
│ │ ├── langagues.dart
│ │ ├── loading.dart
│ │ ├── modal.dart
│ │ └── tool_item.dart
│ ├── file_manager
│ │ ├── archive_modal.dart
│ │ ├── associate_view.dart
│ │ ├── create_file_modal.dart
│ │ ├── file_info_card.dart
│ │ ├── file_list.dart
│ │ ├── file_list_tile.dart
│ │ ├── file_manager.dart
│ │ ├── file_operation.dart
│ │ ├── fs_ui_utils.dart
│ │ ├── fs_utils.dart
│ │ ├── independent_view.dart
│ │ ├── left_sider.dart
│ │ ├── nav_bar.dart
│ │ ├── path_breadcrumb.dart
│ │ ├── rename_modal.dart
│ │ ├── search_bar.dart
│ │ └── show_more.dart
│ ├── home
│ │ ├── home.dart
│ │ ├── left_quick_board.dart
│ │ └── right_quick_board.dart
│ ├── installed_apps
│ │ └── installed_apps.dart
│ ├── lan
│ │ ├── code_server
│ │ │ └── utils.dart
│ │ ├── create_proot_env.dart
│ │ ├── share.dart
│ │ └── static_fs
│ │ │ ├── body_parser
│ │ │ ├── shelf_body_parser.dart
│ │ │ └── src
│ │ │ │ ├── body_parse_result.dart
│ │ │ │ ├── body_parser.dart
│ │ │ │ ├── buffer.dart
│ │ │ │ ├── file.dart
│ │ │ │ └── shelf_body_parser.dart
│ │ │ ├── directory_listing.dart
│ │ │ ├── util.dart
│ │ │ └── web_handler.dart
│ ├── not_support
│ │ └── not_support.dart
│ ├── photo_viewer
│ │ └── photo_viewer.dart
│ ├── purchase
│ │ └── purchase.dart
│ ├── setting
│ │ ├── about.dart
│ │ ├── code_setting.dart
│ │ ├── helper_setting.dart
│ │ ├── privacy_policy.dart
│ │ ├── setting.dart
│ │ └── widget
│ │ │ └── setting_item.dart
│ └── video
│ │ ├── meida_info.dart
│ │ └── video.dart
├── plugin
│ ├── archive
│ │ ├── archive.dart
│ │ └── enums.dart
│ ├── glide
│ │ ├── enum.dart
│ │ └── glide.dart
│ ├── pkg_mgmt
│ │ └── mgmt.dart
│ └── storage
│ │ ├── enums.dart
│ │ ├── listener.dart
│ │ └── storage.dart
├── third_party
│ ├── back_button_interceptor
│ │ ├── back_button_interceptor.dart
│ │ └── src
│ │ │ ├── back_button_interceptor.dart
│ │ │ └── merge_sort.dart
│ ├── connectivity
│ │ ├── connectivity.dart
│ │ ├── connectivity_platform_interface.dart
│ │ ├── enums.dart
│ │ ├── method_channel_connectivity.dart
│ │ └── utils.dart
│ └── photo_view
│ │ ├── photo_view.dart
│ │ ├── photo_view_gallery.dart
│ │ └── src
│ │ ├── controller
│ │ ├── photo_view_controller.dart
│ │ ├── photo_view_controller_delegate.dart
│ │ └── photo_view_scalestate_controller.dart
│ │ ├── core
│ │ ├── photo_view_core.dart
│ │ ├── photo_view_gesture_detector.dart
│ │ └── photo_view_hit_corners.dart
│ │ ├── photo_view_computed_scale.dart
│ │ ├── photo_view_default_widgets.dart
│ │ ├── photo_view_scale_state.dart
│ │ ├── photo_view_wrappers.dart
│ │ └── utils
│ │ ├── ignorable_change_notifier.dart
│ │ ├── photo_view_hero_attributes.dart
│ │ └── photo_view_utils.dart
└── utils
│ ├── dio_range.dart
│ ├── mix_utils.dart
│ ├── notification.dart
│ ├── req.dart
│ ├── store.dart
│ └── webdav.dart
├── plugins
├── android_intent
│ ├── .gitignore
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── settings.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── deskbtm
│ │ │ └── aqua
│ │ │ └── android_intent
│ │ │ └── AndroidIntentPlugin.java
│ ├── lib
│ │ └── android_intent.dart
│ ├── pubspec.lock
│ └── pubspec.yaml
├── android_saf
│ ├── .gitignore
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── android
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── settings.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── deskbtm
│ │ │ └── android_saf
│ │ │ └── AndroidSafPlugin.java
│ ├── lib
│ │ └── android_saf.dart
│ ├── pubspec.lock
│ └── pubspec.yaml
├── intent
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── android
│ │ ├── .classpath
│ │ ├── .gitignore
│ │ ├── .project
│ │ ├── .settings
│ │ │ └── org.eclipse.buildship.core.prefs
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── settings.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ └── io
│ │ │ │ └── github
│ │ │ │ └── itzmeanjan
│ │ │ │ └── intent
│ │ │ │ ├── IntentPlugin.kt
│ │ │ │ └── MyProvider.kt
│ │ │ └── res
│ │ │ └── xml
│ │ │ └── file_paths.xml
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Assets
│ │ │ └── .gitkeep
│ │ ├── Classes
│ │ │ ├── IntentPlugin.h
│ │ │ └── IntentPlugin.m
│ │ └── intent.podspec
│ ├── lib
│ │ ├── action.dart
│ │ ├── category.dart
│ │ ├── extra.dart
│ │ ├── flag.dart
│ │ ├── intent.dart
│ │ └── typedExtra.dart
│ └── pubspec.yaml
├── markdown_weight
│ ├── .github
│ │ ├── ISSUE_TEMPLATE
│ │ │ ├── bug_report.md
│ │ │ └── feature_request.md
│ │ └── workflows
│ │ │ └── build_web.yml
│ ├── .gitignore
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── README.md
│ ├── README_ZH.md
│ ├── lib
│ │ ├── config
│ │ │ ├── highlight_themes.dart
│ │ │ ├── html_support.dart
│ │ │ ├── style_config.dart
│ │ │ └── widget_config.dart
│ │ ├── markdown_generator.dart
│ │ ├── markdown_helper.dart
│ │ ├── markdown_themes
│ │ │ ├── all_themes.dart
│ │ │ ├── dark_theme.dart
│ │ │ └── light_theme.dart
│ │ ├── markdown_toc.dart
│ │ ├── markdown_widget.dart
│ │ └── tags
│ │ │ ├── a.dart
│ │ │ ├── all_tags.dart
│ │ │ ├── blockquote.dart
│ │ │ ├── code.dart
│ │ │ ├── hr.dart
│ │ │ ├── img.dart
│ │ │ ├── input.dart
│ │ │ ├── markdown_tags.dart
│ │ │ ├── ol.dart
│ │ │ ├── other.dart
│ │ │ ├── p.dart
│ │ │ ├── pre.dart
│ │ │ ├── table.dart
│ │ │ ├── title.dart
│ │ │ ├── ul.dart
│ │ │ └── video.dart
│ └── pubspec.yaml
├── pure_video_player
│ ├── .gitignore
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── android
│ │ ├── .classpath
│ │ ├── .gitignore
│ │ ├── .project
│ │ ├── .settings
│ │ │ └── org.eclipse.buildship.core.prefs
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── settings.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── sewerganger
│ │ │ └── pure_video_player
│ │ │ └── PureVideoPlayerPlugin.java
│ ├── assets
│ │ └── icons
│ │ │ ├── fast-forward.png
│ │ │ ├── fullscreen.png
│ │ │ ├── minimize.png
│ │ │ ├── mute.png
│ │ │ ├── pause.png
│ │ │ ├── picture-in-picture.png
│ │ │ ├── play.png
│ │ │ ├── repeat.png
│ │ │ ├── rewind.png
│ │ │ └── sound.png
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Assets
│ │ │ └── .gitkeep
│ │ ├── Classes
│ │ │ ├── PureVideoPlayerPlugin.h
│ │ │ ├── PureVideoPlayerPlugin.m
│ │ │ └── SwiftPureVideoPlayerPlugin.swift
│ │ └── pure_video_player.podspec
│ ├── lib
│ │ ├── pure_video_player.dart
│ │ └── src
│ │ │ ├── controller.dart
│ │ │ ├── helpers
│ │ │ ├── custom_icons.dart
│ │ │ ├── data_source.dart
│ │ │ ├── enabled_buttons.dart
│ │ │ ├── player_data_status.dart
│ │ │ ├── pure_player_status.dart
│ │ │ ├── responsive.dart
│ │ │ ├── screen_manager.dart
│ │ │ └── utils.dart
│ │ │ ├── native
│ │ │ └── pip_manager.dart
│ │ │ └── widgets
│ │ │ ├── closed_caption_view.dart
│ │ │ ├── fullscreen_button.dart
│ │ │ ├── fullscreen_page.dart
│ │ │ ├── mute_sound_button.dart
│ │ │ ├── pip_button.dart
│ │ │ ├── play_pause_button.dart
│ │ │ ├── player_button.dart
│ │ │ ├── player_slider.dart
│ │ │ ├── pure_video_player.dart
│ │ │ └── styles
│ │ │ ├── controls_container.dart
│ │ │ ├── primary
│ │ │ ├── bottom_controls.dart
│ │ │ └── primary_player_controls.dart
│ │ │ └── secondary
│ │ │ ├── secondary_bottom_controls.dart
│ │ │ └── secondary_player_controls.dart
│ ├── pubspec.lock
│ └── pubspec.yaml
└── storage_mount_listener
│ ├── .gitignore
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── android
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ ├── settings.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── sewerganger
│ │ └── storage_mount_listener
│ │ └── StorageMountListenerPlugin.java
│ ├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── StorageMountListenerPlugin.h
│ │ └── StorageMountListenerPlugin.m
│ └── storage_mount_listener.podspec
│ ├── lib
│ └── storage_mount_listener.dart
│ ├── pubspec.lock
│ └── pubspec.yaml
├── pubspec.lock
├── pubspec.yaml
└── windows
├── .gitignore
├── CMakeLists.txt
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | temp
12 | *.jks
13 |
14 | # IntelliJ related
15 | *.iml
16 | *.ipr
17 | *.iws
18 | .idea/
19 | android/r.jks
20 | android/key.properties
21 |
22 |
23 | # The .vscode folder contains launch configuration and tasks you configure in
24 | # VS Code which you may wish to be included in version control, so this line
25 | # is commented out by default.
26 | #.vscode/
27 |
28 | # Flutter/Dart/Pub related
29 | **/doc/api/
30 | .dart_tool/
31 | .flutter-plugins
32 | .flutter-plugins-dependencies
33 | .packages
34 | .pub-cache/
35 | .pub/
36 | **/build/
37 | **/example
38 | **/.gradle
39 |
40 | # Web related
41 | lib/generated_plugin_registrant.dart
42 |
43 | # Symbolication related
44 | app.*.symbols
45 |
46 | # Obfuscation related
47 | app.*.map.json
48 |
49 | # Exceptions to above rules.
50 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
51 | test
52 |
53 | mirrors/
54 | .unotes
55 | flutter
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 8af6b2f038c1172e61d418869363a28dffec3cb4
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/.vscode/c_cpp_properties.json:
--------------------------------------------------------------------------------
1 | {
2 | "configurations": [
3 | {
4 | "name": "Win32",
5 | "includePath": [
6 | "${workspaceFolder}/**",
7 | "${vcpkgRoot}/x86-windows/include"
8 | ],
9 | "defines": [
10 | "_DEBUG",
11 | "UNICODE",
12 | "_UNICODE"
13 | ],
14 | "windowsSdkVersion": "10.0.19041.0",
15 | "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe",
16 | "cStandard": "c17",
17 | "cppStandard": "c++17",
18 | "intelliSenseMode": "windows-msvc-x64"
19 | }
20 | ],
21 | "version": 4
22 | }
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Flutter Profile",
9 | "type": "dart",
10 | "request": "launch",
11 | "program": "lib/main.dart",
12 | "flutterMode": "profile"
13 | },
14 | {
15 | "name": "Flutter",
16 | "program": "lib/main.dart",
17 | "request": "launch",
18 | "type": "dart"
19 | }
20 | ]
21 | }
--------------------------------------------------------------------------------
/.vscode/notes.txt:
--------------------------------------------------------------------------------
1 | ListView.builder(
2 | controller: _scrollController,
3 | physics: BouncingScrollPhysics(),
4 | itemCount: widget.fileList.length,
5 | itemBuilder: (BuildContext context, int index) {
6 | SelfFileEntity file = widget.fileList[index];
7 | ListFileItemInfo item = ListFileItemInfo(
8 | leading: getPreviewIcon(context, _tm, file),
9 | file: file,
10 | );
11 |
12 | return FileItem(
13 | mode: widget.mode,
14 | isDir: item.file.isDir,
15 | leading: item.leading,
16 | withAnimation: index < 15,
17 | index: index,
18 | file: item.file,
19 | onLongPress: (details) {
20 | if (widget.itemOnLongPress != null) {
21 | widget.itemOnLongPress(index);
22 | }
23 | },
24 | onTap: () {
25 | if (widget.onItemTap != null) widget.onItemTap(index);
26 | },
27 | onItemHozDrag: (dir) async {
28 | /// [index] 位数 [dir] 方向 1 向右 -1 左
29 | await widget.onItemHozDrag(index, dir);
30 | },
31 | );
32 | },
33 | ),
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "[markdown]": {
3 | "editor.quickSuggestions": {
4 | "other": true, // this must be true
5 | "comments": false,
6 | "strings": false
7 | }
8 | },
9 | "cSpell.ignoreWords": [
10 | "sdk",
11 | "umeng",
12 | "umeng sdk"
13 | ],
14 | "copyrightInserter.holder": "deskbtm",
15 | "copyrightInserter.license": "gpl3"
16 | }
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | ## [v1.0.5] - 2021-05-30
4 |
5 | ### Added
6 |
7 | - 添加首次使用向导
8 | - 添加到系统打开方式
9 |
10 | ### Changed
11 | - 支持上下分屏 支持窗口独立模式
12 | - 使用新UI 包含(搜索,总体布局)
13 | - 优化文件名过长问题
14 | - 优化目录滚拖拽组件
15 | - 翻译部分英文
16 | - 使用原生 toast
17 | - 启用新的管理后台
18 | - 更换 icon
19 | - 迁移空安全
20 | - 迁移原生插件到android目录
21 | - 重新实现virtual container, 升级code server
22 |
23 | ### Fixed
24 |
25 | - 优化代码丢失导致的性能问题,修复 bug
26 | - 重构大量代码
27 |
28 | ### Removed
29 |
30 | - 彻底删除乱起八糟毛用没有的功能
31 | ## [v1.0.4] - 2021-01-30
32 |
33 | ### Added
34 |
35 | - 增添国际化 支持英语(未完全覆盖)
36 | - 添加到系统打开方式
37 |
38 | ### Changed
39 | - 移除内购
40 | - 改名为 Aqua
41 | ## [v1.0.3] - 2020-12-15
42 |
43 | ### Added
44 |
45 | - 增添国际化 支持英语(未完全覆盖)
46 | - 添加到系统打开方式
47 |
48 | ### Fixed
49 | - 修复服务器到期,
50 | - 修复 iqoo 等机型文件管理器无法使用
51 | - 由于代码丢失,不保证所有功能正常
52 | - 改名为 Aqua
53 | ## [v1.0.0] - 2020-11-12
54 |
55 | ### Added
56 |
57 | - 添加下拉刷新
58 | - 添加当前目录搜索
59 |
60 | ### Fixed
61 | - 修复服务器到期,
62 | - 修复 iqoo 等机型文件管理器无法使用
63 | - 由于代码丢失,不保证所有功能正常
64 | ## [v0.0.2] - 2020-10-12
65 | ### Fixed
66 | - 修复在根目录下新建文件夹失败
67 | - 添加二维码扫描 打开链接
68 | - 优化视频和图片缩略图
69 | - 优化 APP 体积
70 | - 优化视频播放器,支持小窗模式
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## WIP
2 |
3 | 下载
4 |
5 | 欢迎 star fork
6 |
7 | v1.0.5 [refactor](./CHANGELOG.md)
8 |
9 |
(org.json.JSONObject);
15 | }
16 | -keepclassmembers enum * {
17 | public static **[] values();
18 | public static ** valueOf(java.lang.String);
19 | }
20 | -keep class com.zui.** {*;}
21 | -keep class com.miui.** {*;}
22 | -keep class com.heytap.** {*;}
23 | -keep class a.** {*;}
24 | -keep class com.vivo.** {*;}
25 |
26 | # 压缩
27 | -keep class net.lingala.** {*;}
28 | -keep class org.apache.** {*;}
29 | -keep class org.rauschig.** {*;}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/arm64-v8a/busybox:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/assets/arm64-v8a/busybox
--------------------------------------------------------------------------------
/android/app/src/main/assets/arm64-v8a/proot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/assets/arm64-v8a/proot
--------------------------------------------------------------------------------
/android/app/src/main/assets/x86_64/busybox:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/assets/x86_64/busybox
--------------------------------------------------------------------------------
/android/app/src/main/assets/x86_64/proot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/assets/x86_64/proot
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/InnerPluginMgmt.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua;
2 |
3 | import com.deskbtm.aqua.tools.archive.ArchivePlugin;
4 | import com.deskbtm.aqua.tools.connectivity.ConnectivityPlugin;
5 | import com.deskbtm.aqua.tools.fs.FsPlugin;
6 | import com.deskbtm.aqua.tools.fs.StorageListenerPlugin;
7 | import com.deskbtm.aqua.tools.glide.GlidePlugin;
8 | import com.deskbtm.aqua.tools.pkg.PackageManagerPlugin;
9 |
10 | import io.flutter.embedding.engine.FlutterEngine;
11 |
12 | public final class InnerPluginMgmt {
13 | public static void register(FlutterEngine flutterEngine) {
14 | flutterEngine.getPlugins().add(new ConnectivityPlugin());
15 | flutterEngine.getPlugins().add(new GlidePlugin());
16 | flutterEngine.getPlugins().add(new ArchivePlugin());
17 | flutterEngine.getPlugins().add(new PackageManagerPlugin());
18 | // 基本文件系统操作插件
19 | flutterEngine.getPlugins().add(new FsPlugin());
20 | // 存储设备监听插件
21 | flutterEngine.getPlugins().add(new StorageListenerPlugin());
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/connectivity/ConnectivityBroadcastReceiver.java:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package com.deskbtm.aqua.tools.connectivity;
6 |
7 | import android.content.BroadcastReceiver;
8 | import android.content.Context;
9 | import android.content.Intent;
10 | import android.content.IntentFilter;
11 | import android.net.ConnectivityManager;
12 | import io.flutter.plugin.common.EventChannel;
13 |
14 | /**
15 | * The ConnectivityBroadcastReceiver receives the connectivity updates and send them to the UIThread
16 | * through an {@link EventChannel.EventSink}
17 | *
18 | * Use {@link
19 | * io.flutter.plugin.common.EventChannel#setStreamHandler(io.flutter.plugin.common.EventChannel.StreamHandler)}
20 | * to set up the receiver.
21 | */
22 | class ConnectivityBroadcastReceiver extends BroadcastReceiver
23 | implements EventChannel.StreamHandler {
24 | private Context context;
25 | private Connectivity connectivity;
26 | private EventChannel.EventSink events;
27 |
28 | ConnectivityBroadcastReceiver(Context context, Connectivity connectivity) {
29 | this.context = context;
30 | this.connectivity = connectivity;
31 | }
32 |
33 | @Override
34 | public void onListen(Object arguments, EventChannel.EventSink events) {
35 | this.events = events;
36 | context.registerReceiver(this, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
37 | }
38 |
39 | @Override
40 | public void onCancel(Object arguments) {
41 | context.unregisterReceiver(this);
42 | }
43 |
44 | @Override
45 | public void onReceive(Context context, Intent intent) {
46 | if (events != null) {
47 | events.success(connectivity.getNetworkType());
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/connectivity/ConnectivityMethodChannelHandler.java:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package com.deskbtm.aqua.tools.connectivity;
6 |
7 | import io.flutter.plugin.common.MethodCall;
8 | import io.flutter.plugin.common.MethodChannel;
9 |
10 | /**
11 | * The handler receives {@link MethodCall}s from the UIThread, gets the related information from
12 | * a @{@link Connectivity}, and then send the result back to the UIThread through the {@link
13 | * MethodChannel.Result}.
14 | */
15 | class ConnectivityMethodChannelHandler implements MethodChannel.MethodCallHandler {
16 |
17 | private Connectivity connectivity;
18 |
19 | /**
20 | * Construct the ConnectivityMethodChannelHandler with a {@code connectivity}. The {@code
21 | * connectivity} must not be null.
22 | */
23 | ConnectivityMethodChannelHandler(Connectivity connectivity) {
24 | assert (connectivity != null);
25 | this.connectivity = connectivity;
26 | }
27 |
28 | @Override
29 | public void onMethodCall(MethodCall call, MethodChannel.Result result) {
30 | switch (call.method) {
31 | case "check":
32 | result.success(connectivity.getNetworkType());
33 | break;
34 | case "wifiName":
35 | result.success(connectivity.getWifiName());
36 | break;
37 | case "wifiBSSID":
38 | result.success(connectivity.getWifiBSSID());
39 | break;
40 | case "wifiIPAddress":
41 | result.success(connectivity.getWifiIPAddress());
42 | break;
43 | default:
44 | result.notImplemented();
45 | break;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/fs/SAFStorage.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.fs;
2 |
3 | import android.content.Context;
4 |
5 | public class SAFStorage {
6 | private Context mContext;
7 |
8 | public SAFStorage(Context context){
9 | mContext = context;
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/fs/StorageDescription.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.fs;
2 |
3 | import java.io.File;
4 |
5 | import android.content.Context;
6 |
7 | import androidx.annotation.IntDef;
8 |
9 | public final class StorageDescription {
10 |
11 | public static final int STORAGE_INTERNAL = 0;
12 | public static final int STORAGE_SD_CARD = 1;
13 | public static final int ROOT = 2;
14 | public static final int NOT_KNOWN = 3;
15 |
16 | @IntDef({STORAGE_INTERNAL, STORAGE_SD_CARD, ROOT, NOT_KNOWN})
17 | public @interface DeviceDescription {
18 | }
19 |
20 | public static @DeviceDescription
21 | int getDeviceDescriptionLegacy(File file) {
22 | String path = file.getPath();
23 |
24 | switch (path) {
25 | case "/storage/emulated/legacy":
26 | case "/storage/emulated/0":
27 | case "/mnt/sdcard":
28 | return STORAGE_INTERNAL;
29 | case "/storage/sdcard":
30 | case "/storage/sdcard1":
31 | return STORAGE_SD_CARD;
32 | case "/":
33 | return ROOT;
34 | default:
35 | return NOT_KNOWN;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/fs/StorageDirectoryMapper.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.fs;
2 |
3 | import android.os.Build;
4 | import android.os.Environment;
5 |
6 | class StorageDirectoryMapper {
7 |
8 | static String androidType(Integer dartIndex) throws IllegalArgumentException {
9 | if (dartIndex == null) {
10 | return null;
11 | }
12 |
13 | switch (dartIndex) {
14 | case 0:
15 | return Environment.DIRECTORY_MUSIC;
16 | case 1:
17 | return Environment.DIRECTORY_PODCASTS;
18 | case 2:
19 | return Environment.DIRECTORY_RINGTONES;
20 | case 3:
21 | return Environment.DIRECTORY_ALARMS;
22 | case 4:
23 | return Environment.DIRECTORY_NOTIFICATIONS;
24 | case 5:
25 | return Environment.DIRECTORY_PICTURES;
26 | case 6:
27 | return Environment.DIRECTORY_MOVIES;
28 | case 7:
29 | return Environment.DIRECTORY_DOWNLOADS;
30 | case 8:
31 | return Environment.DIRECTORY_DCIM;
32 | case 9:
33 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
34 | return Environment.DIRECTORY_DOCUMENTS;
35 | } else {
36 | throw new IllegalArgumentException("Documents directory is unsupported.");
37 | }
38 | default:
39 | throw new IllegalArgumentException("Unknown index: " + dartIndex);
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/glide/BitmapTarget.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.glide;
2 |
3 | import android.graphics.Bitmap;
4 | import androidx.annotation.NonNull;
5 | import androidx.annotation.Nullable;
6 | import com.bumptech.glide.request.target.CustomTarget;
7 | import com.bumptech.glide.request.transition.Transition;
8 |
9 | abstract class BitmapTarget extends CustomTarget {
10 | private Bitmap bitmap;
11 |
12 |
13 | public BitmapTarget(Integer width, Integer height) {
14 | super(width, height);
15 | }
16 |
17 | public BitmapTarget() {
18 | super();
19 | }
20 |
21 | @Override
22 | public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition super Bitmap> transition) {
23 | bitmap = resource;
24 | }
25 |
26 | @Override
27 | public void onDestroy() {
28 | super.onDestroy();
29 | if (!bitmap.isRecycled()) {
30 | bitmap.recycle();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/glide/EnumMapper.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.glide;
2 |
3 |
4 | import com.bumptech.glide.load.engine.DiskCacheStrategy;
5 |
6 | public class EnumMapper {
7 | static DiskCacheStrategy cacheStrategy(int type) {
8 | DiskCacheStrategy strategy;
9 | switch (type) {
10 | case 0:
11 | strategy = DiskCacheStrategy.ALL;
12 | break;
13 | case 1:
14 | strategy = DiskCacheStrategy.NONE;
15 | break;
16 | case 2:
17 | strategy = DiskCacheStrategy.DATA;
18 | break;
19 | case 3:
20 | strategy = DiskCacheStrategy.RESOURCE;
21 | break;
22 | default:
23 | strategy = DiskCacheStrategy.AUTOMATIC;
24 | }
25 | return strategy;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/glide/Reply.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.glide;
2 |
3 | import android.app.Activity;
4 | import io.flutter.plugin.common.MethodChannel;
5 |
6 | public class Reply {
7 | private boolean isSending = false;
8 | Activity activity;
9 | MethodChannel.Result result;
10 |
11 | public Reply(Activity activity, MethodChannel.Result result) {
12 | this.activity = activity;
13 | this.result = result;
14 | }
15 |
16 | public void send(Object val) {
17 | if (isSending) {
18 | return;
19 | }
20 | isSending = true;
21 | activity.runOnUiThread(() -> {
22 | result.success(val);
23 | });
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/deskbtm/aqua/tools/virtual_container/VirtualContainerPlugin.java:
--------------------------------------------------------------------------------
1 | package com.deskbtm.aqua.tools.virtual_container;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import androidx.annotation.NonNull;
6 | import io.flutter.embedding.engine.plugins.FlutterPlugin;
7 | import io.flutter.embedding.engine.plugins.activity.ActivityAware;
8 | import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
9 | import io.flutter.plugin.common.MethodCall;
10 | import io.flutter.plugin.common.MethodChannel;
11 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
12 | import io.flutter.plugin.common.MethodChannel.Result;
13 |
14 | /**
15 | * GlidePlugin
16 | */
17 | public class VirtualContainerPlugin implements FlutterPlugin, MethodCallHandler {
18 |
19 | private MethodChannel channel;
20 | private Context context;
21 | private String CHANNEL_NAME = "aqua_virtual_container";
22 |
23 | @Override
24 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
25 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), CHANNEL_NAME);
26 | channel.setMethodCallHandler(this);
27 | context = flutterPluginBinding.getApplicationContext();
28 |
29 | }
30 |
31 | @Override
32 | public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
33 |
34 | VirtualContainerUtils vcu = new VirtualContainerUtils(context);
35 |
36 | switch (call.method) {
37 | case "copyDirFromAssets":
38 | vcu.copyDirFromAssets(call, result);
39 |
40 | }
41 | }
42 |
43 | @Override
44 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
45 | channel.setMethodCallHandler(null);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/ic_baseline_folder_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/layout/demo.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/setings.xml:
--------------------------------------------------------------------------------
1 |
2 | Aqua
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/xml/network_security_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | jcenter()
5 | mavenCentral()
6 | maven { url 'https://maven.aliyun.com/repository/google' }
7 | maven { url 'https://maven.aliyun.com/repository/jcenter' }
8 | maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
9 | }
10 |
11 | dependencies {
12 | classpath 'com.android.tools.build:gradle:4.1.0'
13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | jcenter()
20 | google()
21 | maven { url 'https://maven.aliyun.com/repository/google' }
22 | maven { url 'https://maven.aliyun.com/repository/jcenter' }
23 | maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
24 | }
25 | }
26 |
27 | rootProject.buildDir = '../build'
28 | subprojects {
29 | project.buildDir = "${rootProject.buildDir}/${project.name}"
30 | }
31 | subprojects {
32 | project.evaluationDependsOn(':app')
33 | }
34 |
35 | task clean(type: Delete) {
36 | delete rootProject.buildDir
37 | }
38 |
--------------------------------------------------------------------------------
/android/debug.properties:
--------------------------------------------------------------------------------
1 | storePassword=123456
2 | keyPassword=123456
3 | keyAlias=debug
4 | storeFile=../debug.jks
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Flutter Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | include ':app'
6 |
7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8 | def properties = new Properties()
9 |
10 | assert localPropertiesFile.exists()
11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12 |
13 | def flutterSdkPath = properties.getProperty("flutter.sdk")
14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
16 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/images/ai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/ai.png
--------------------------------------------------------------------------------
/assets/images/alipay.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/alipay.jpg
--------------------------------------------------------------------------------
/assets/images/apk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/apk.png
--------------------------------------------------------------------------------
/assets/images/audio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/audio.png
--------------------------------------------------------------------------------
/assets/images/csv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/csv.png
--------------------------------------------------------------------------------
/assets/images/excel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/excel.png
--------------------------------------------------------------------------------
/assets/images/exe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/exe.png
--------------------------------------------------------------------------------
/assets/images/flash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/flash.png
--------------------------------------------------------------------------------
/assets/images/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/folder.png
--------------------------------------------------------------------------------
/assets/images/html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/html.png
--------------------------------------------------------------------------------
/assets/images/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/image.png
--------------------------------------------------------------------------------
/assets/images/link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/link.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/md.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/md.png
--------------------------------------------------------------------------------
/assets/images/pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/pdf.png
--------------------------------------------------------------------------------
/assets/images/ppt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/ppt.png
--------------------------------------------------------------------------------
/assets/images/psd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/psd.png
--------------------------------------------------------------------------------
/assets/images/txt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/txt.png
--------------------------------------------------------------------------------
/assets/images/unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/unknown.png
--------------------------------------------------------------------------------
/assets/images/video.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/video.png
--------------------------------------------------------------------------------
/assets/images/wechat_pay.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/wechat_pay.jpg
--------------------------------------------------------------------------------
/assets/images/word.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/word.png
--------------------------------------------------------------------------------
/assets/images/xml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/xml.png
--------------------------------------------------------------------------------
/assets/images/zip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/assets/images/zip.png
--------------------------------------------------------------------------------
/build.bat:
--------------------------------------------------------------------------------
1 | flutter build apk --target-platform android-arm64 --no-shrink
--------------------------------------------------------------------------------
/image/QQE59BBEE7898720210105161527-281004-o_1er8v8kudfdb1i715l3eoi1bf215-uid-1111781@1080x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/image/QQE59BBEE7898720210105161527-281004-o_1er8v8kudfdb1i715l3eoi1bf215-uid-1111781@1080x1920.jpg
--------------------------------------------------------------------------------
/image/QQE59BBEE7898720210105161531-281004-o_1er8v8kudojamqs1v7p1t5g139716-uid-1111781@1080x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/image/QQE59BBEE7898720210105161531-281004-o_1er8v8kudojamqs1v7p1t5g139716-uid-1111781@1080x1920.jpg
--------------------------------------------------------------------------------
/image/QQE59BBEE7898720210105161535-281004-o_1er8v8kudv6ivnd1svrshk19rk17-uid-1111781@1080x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/image/QQE59BBEE7898720210105161535-281004-o_1er8v8kudv6ivnd1svrshk19rk17-uid-1111781@1080x1920.jpg
--------------------------------------------------------------------------------
/image/QQE59BBEE7898720210105161539-281004-o_1er8v8kud1uei1lpo1bqf16n3inq18-uid-1111781@1080x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/image/QQE59BBEE7898720210105161539-281004-o_1er8v8kud1uei1lpo1bqf16n3inq18-uid-1111781@1080x1920.jpg
--------------------------------------------------------------------------------
/image/QQE59BBEE7898720210105161737-281057-o_1erc01i4hccv1ifs1ok711utgbi2h-uid-1111781@1080x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/image/QQE59BBEE7898720210105161737-281057-o_1erc01i4hccv1ifs1ok711utgbi2h-uid-1111781@1080x1920.jpg
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | lan_file_more
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/l10n.yaml:
--------------------------------------------------------------------------------
1 | arb-dir: lib/l10n
2 | template-arb-file: app_en.arb
3 | output-localization-file: app_localizations.dart
4 | output-class: S
5 |
--------------------------------------------------------------------------------
/lib/common/widget/checkbox.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class LanCheckBox extends StatelessWidget {
5 | final bool value;
6 | final Color? borderColor;
7 | final void Function(bool?)? onChanged;
8 |
9 | const LanCheckBox(
10 | {Key? key, required this.value, this.borderColor, this.onChanged})
11 | : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Material(
16 | color: Colors.transparent,
17 | child: Theme(
18 | data: ThemeData(unselectedWidgetColor: borderColor),
19 | child: Checkbox(
20 | onChanged: onChanged,
21 | value: value,
22 | ),
23 | ),
24 | );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/common/widget/double_pop.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:aqua/model/global_model.dart';
3 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
4 | import 'package:fluttertoast/fluttertoast.dart';
5 |
6 | // ignore: must_be_immutable
7 | class DoublePop extends StatelessWidget {
8 | final Widget child;
9 | final GlobalModel globalModel;
10 | DateTime? _lastPressedTime;
11 |
12 | DoublePop({
13 | required this.child,
14 | required this.globalModel,
15 | });
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return WillPopScope(
20 | child: child,
21 | onWillPop: () async {
22 | if (globalModel.canPopToDesktop) {
23 | // ignore: unnecessary_null_comparison
24 | if (_lastPressedTime == null ||
25 | (_lastPressedTime != null &&
26 | DateTime.now().difference(_lastPressedTime!) >
27 | Duration(milliseconds: 800))) {
28 | _lastPressedTime = DateTime.now();
29 | Fluttertoast.showToast(
30 | msg: S.of(context)!.pressAgain,
31 | );
32 | return false;
33 | }
34 | return true;
35 | } else {
36 | return false;
37 | }
38 | },
39 | );
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/common/widget/function_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:aqua/common/widget/no_resize_text.dart';
3 | import 'package:aqua/model/theme_model.dart';
4 |
5 | Widget loadingIndicator(BuildContext context, ThemeModel provider) =>
6 | CupertinoTheme(
7 | data: CupertinoTheme.of(context).copyWith(
8 | brightness: provider.isDark ? Brightness.dark : Brightness.light),
9 | child: CupertinoActivityIndicator(),
10 | );
11 |
12 | Widget loadingWithText(BuildContext context, ThemeModel provider,
13 | {required String text}) =>
14 | Column(
15 | children: [
16 | loadingIndicator(context, provider),
17 | SizedBox(height: 10),
18 | Container(
19 | alignment: Alignment.center,
20 | width: MediaQuery.of(context).size.width - 100,
21 | child: NoResizeText(
22 | text,
23 | overflow: TextOverflow.ellipsis,
24 | // style: TextStyle(),
25 | ),
26 | ),
27 | ],
28 | );
29 |
30 | Widget blockTitle(String title, {String? subtitle}) => Container(
31 | padding: EdgeInsets.only(left: 15, right: 15),
32 | child: Row(crossAxisAlignment: CrossAxisAlignment.end, children: [
33 | NoResizeText(
34 | title,
35 | style: TextStyle(fontSize: 18, color: Color(0xFF007AFF)),
36 | ),
37 | SizedBox(width: 5),
38 | if (subtitle != null) ThemedText(subtitle, small: true)
39 | ]),
40 | );
41 |
--------------------------------------------------------------------------------
/lib/common/widget/icon_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:aqua/common/widget/no_resize_text.dart';
3 |
4 | class IconItem extends StatelessWidget {
5 | final Widget icon;
6 | final VoidCallback? onPressed;
7 | final String title;
8 |
9 | const IconItem(
10 | {Key? key, required this.icon, required this.title, this.onPressed})
11 | : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return InkWell(
16 | onTap: onPressed,
17 | child: Container(
18 | height: 60,
19 | width: 60,
20 | child: Column(
21 | mainAxisAlignment: MainAxisAlignment.center,
22 | children: [
23 | Container(
24 | width: 30,
25 | height: 30,
26 | child: icon,
27 | ),
28 | SizedBox(height: 4),
29 | NoResizeText(title)
30 | ],
31 | ),
32 | ),
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/common/widget/input.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | BorderSide kDefaultRoundedBorderSide(color) => BorderSide(
4 | color: color,
5 | // CupertinoDynamicColor.withBrightness(
6 | // color: Color(0x33000000),
7 | // darkColor: Color(0x33FFFFFF),
8 | // ),
9 | style: BorderStyle.solid,
10 | width: 0.0,
11 | );
12 | Border defaultRoundedBorder({color}) => Border(
13 | top: kDefaultRoundedBorderSide(color),
14 | bottom: kDefaultRoundedBorderSide(color),
15 | left: kDefaultRoundedBorderSide(color),
16 | right: kDefaultRoundedBorderSide(color),
17 | );
18 |
19 | BoxDecoration inputDecoration(
20 | {color = CupertinoColors.white, required Color borderColor}) =>
21 | BoxDecoration(
22 | color: color,
23 | border: defaultRoundedBorder(color: borderColor),
24 | borderRadius: BorderRadius.all(Radius.circular(5.0)),
25 | );
26 |
--------------------------------------------------------------------------------
/lib/common/widget/modal/split_modal.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deskbtm/Aqua/f7da42246b088161c3f20143b6acdace1e930b6e/lib/common/widget/modal/split_modal.dart
--------------------------------------------------------------------------------
/lib/common/widget/refresh_header.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/common/widget/static_utils.dart:
--------------------------------------------------------------------------------
1 | import 'package:aqua/common/widget/no_resize_text.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/widgets.dart';
4 | import 'package:unicons/unicons.dart';
5 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
6 |
7 | class ErrorBoard extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return Center(
11 | child: Wrap(
12 | direction: Axis.vertical,
13 | crossAxisAlignment: WrapCrossAlignment.center,
14 | children: [
15 | Icon(
16 | UniconsLine.band_aid,
17 | color: Colors.red[400],
18 | size: 33,
19 | ),
20 | NoResizeText('错误')
21 | ],
22 | ),
23 | );
24 | }
25 | }
26 |
27 | class EmptyBoard extends StatelessWidget {
28 | @override
29 | Widget build(BuildContext context) {
30 | return Center(
31 | child: Wrap(
32 | direction: Axis.vertical,
33 | crossAxisAlignment: WrapCrossAlignment.center,
34 | children: [
35 | Icon(
36 | UniconsLine.box,
37 | color: Color(0xFF007AFF),
38 | size: 33,
39 | ),
40 | NoResizeText(S.of(context)!.empty)
41 | ],
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/common/widget/storage_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:aqua/common/widget/progress.dart';
4 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
5 |
6 | // ignore: must_be_immutable
7 | class StorageCard extends StatelessWidget {
8 | final double totalSize;
9 | final double validSize;
10 |
11 | const StorageCard(
12 | {Key? key, required this.totalSize, required this.validSize})
13 | : super(key: key);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | CupertinoThemeData themeData = CupertinoTheme.of(context);
18 |
19 | return CupertinoTheme(
20 | data: CupertinoThemeData(textTheme: themeData.textTheme),
21 | child: Container(
22 | padding: EdgeInsets.only(left: 20, right: 20, top: 30, bottom: 3),
23 | child: ProgressBar(
24 | padding: 5,
25 | barColor: Color(0x91000000),
26 | backgroundColor: Color(0x75FFFFFFf),
27 | barHeight: 7,
28 | extraSize: 40,
29 | barWidth: MediaQuery.of(context).size.width,
30 | numerator: totalSize - validSize,
31 | denominator: totalSize,
32 | title: S.of(context)!.internalStorage,
33 | dialogTextStyle: TextStyle(
34 | fontSize: 10, fontWeight: FontWeight.bold, color: Colors.white),
35 | titleStyle: TextStyle(
36 | fontSize: 12,
37 | fontWeight: FontWeight.bold,
38 | // color: Colors.cyanAccent,
39 | ),
40 | boarderColor: Colors.grey,
41 | ),
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/common/widget/widget.dart:
--------------------------------------------------------------------------------
1 | export './action_button.dart';
2 | export './aqua_text_field.dart';
3 | export './checkbox.dart';
4 | export './cloud_header.dart';
5 |
6 |
--------------------------------------------------------------------------------
/lib/constant/constant_var.dart:
--------------------------------------------------------------------------------
1 | const String NOT_FOUND_DEVICES = 'NOT_FOUND_DEVICES';
2 |
3 | const String FILE_PORT = 'file-port';
4 | const String CODE_SERVER_PORT = 'code-server-port';
5 | const String STATIC_UPLOAD_SAVEPATH = 'static_upload_savepath';
6 | const String AUTO_CONNECT_COMMON_IP = 'auto_connect_common_ip';
7 | const String COMMON_IPS = 'common_ips';
8 |
9 | // vscode 开启用户体验
10 | const String CODE_SERVER_TELEMETRY = 'code-server-telemetry';
11 | const String ENABLE_CLIPBOARD = 'enable-clipboard';
12 |
13 | const String LOGIN_TOKEN = 'login-token';
14 | const String LOGIN_USERNMAE = 'login-username';
15 |
16 | // const String SANDBOX_NO_SECCOMP = 'sandbox-seccomp';
17 | // 沙盒源
18 | const String LINUX_REPO = 'linux-repo';
19 | const String TSINGHUA_REPO = 'tsinghua';
20 | const String ALIYUN_REPO = 'aliyun';
21 | const String USTC_REPO = 'ustc';
22 | const String ALPINE_REPO = 'alpine';
23 | const String LANGUAGE = 'language';
24 |
25 | const String PURCHASED = 'purchased';
26 | const String APP_INIT = 'app-init';
27 | const String FILE_OPTION_INIT = 'file-option-init';
28 | const String BASE_URL_KEY = 'base-url-key';
29 | const String AUTO_CONNECT_EXPRESS = 'auto-connect-express';
30 | const String ENABLE_CONNECT = 'auto-connect';
31 |
32 | // webdav
33 | const WEBDAV_ADDR = 'webdav-addr';
34 | const WEBDAV_USERNAME = 'webdav-username';
35 | const WEBDAV_PWD = 'webdav-pwd';
36 | const REMEMBER_NO_UPDATE_TIP = 'remember-no-update-tip';
37 | const MESSAGE_UPDATE_ID = 'message_update_id';
38 |
39 | const String APP_NAME = 'aqua';
40 |
41 | const String THEME_KEY = 'theme';
42 | const String LIGHT_THEME = 'light';
43 | const String DARK_THEME = 'dark';
44 |
45 | // 文件管理器持久化设置
46 | const String SHOW_FILE_HIDDEN = 'show_hidden';
47 | const String FILE_SORT_TYPE = 'file_sort_type';
48 | const String LAYOUUT_MODE = 'layout_mode';
49 | const String VIEW_MODE = 'view_mode';
50 |
51 | // ntaive 通信
52 | const String SHARED_CHANNEL = 'app.channel.shared.data';
53 |
--------------------------------------------------------------------------------
/lib/external/breadcrumb/flutter_breadcrumb.dart:
--------------------------------------------------------------------------------
1 | library flutter_breadcrumb;
2 |
3 | export 'src/breadcrumb.dart';
4 | export 'src/breadcrumb_item.dart';
5 | export 'src/breadcrumb_overflow.dart';
6 |
--------------------------------------------------------------------------------
/lib/external/breadcrumb/src/breadcrumb.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../flutter_breadcrumb.dart';
3 |
4 | typedef IndexedBreadCrumbItemBuilder = BreadCrumbItem Function(int index);
5 |
6 | class BreadCrumb extends StatelessWidget {
7 | final List items;
8 | final Widget? divider;
9 | final BreadCrumbOverflow overflow;
10 |
11 | const BreadCrumb({
12 | Key? key,
13 | required this.items,
14 | this.divider,
15 | this.overflow = const WrapOverflow(),
16 | }) : assert(items.length > 0, 'items parameters should not be empty'),
17 | super(key: key);
18 |
19 | factory BreadCrumb.builder({
20 | Key? key,
21 | required int itemCount,
22 | required IndexedBreadCrumbItemBuilder builder,
23 | Widget? divider,
24 | BreadCrumbOverflow overflow = const WrapOverflow(),
25 | }) =>
26 | BreadCrumb(
27 | key: key,
28 | items: List.generate(
29 | itemCount,
30 | (i) => builder(i),
31 | ),
32 | divider: divider,
33 | overflow: overflow,
34 | );
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return overflow.build(context, items, divider);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/external/breadcrumb/src/breadcrumb_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class BreadCrumbItem {
4 | BreadCrumbItem({
5 | required this.content,
6 | this.padding = EdgeInsets.zero,
7 | this.margin = EdgeInsets.zero,
8 | this.onTap,
9 | this.color = Colors.transparent,
10 | this.disableColor = Colors.transparent,
11 | this.splashColor = Colors.transparent,
12 | this.textColor,
13 | this.disabledTextColor,
14 | this.borderRadius = BorderRadius.zero,
15 | this.border = BorderSide.none,
16 | });
17 |
18 | final Widget content;
19 | final EdgeInsetsGeometry padding;
20 | final EdgeInsetsGeometry margin;
21 | final VoidCallback? onTap;
22 | final Color color;
23 | final Color disableColor;
24 | final Color splashColor;
25 | final Color? textColor;
26 | final Color? disabledTextColor;
27 | final BorderRadiusGeometry borderRadius;
28 | final BorderSide border;
29 |
30 | bool get isEnable => onTap != null;
31 |
32 | @override
33 | String toString() {
34 | return 'BreadCrumbItem{content: $content, padding: $padding, margin: $margin, onTap: $onTap, enableColor: $color, disableColor: $disableColor, splashColor: $splashColor, textColor: $textColor, disabledTextColor: $disabledTextColor, borderRadiusGeometry: $borderRadius, border: $border}';
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/external/breadcrumb/src/breadcrumb_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'breadcrumb_item.dart';
4 |
5 |
6 | class BreadCrumbTile extends StatelessWidget {
7 | final BreadCrumbItem breadCrumbItem;
8 |
9 | const BreadCrumbTile({Key? key, required this.breadCrumbItem})
10 | : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return Padding(
15 | padding: breadCrumbItem.margin,
16 | child: Material(
17 | color: breadCrumbItem.isEnable
18 | ? breadCrumbItem.color
19 | : breadCrumbItem.disableColor,
20 | shape: RoundedRectangleBorder(
21 | borderRadius: breadCrumbItem.borderRadius,
22 | side: breadCrumbItem.border,
23 | ),
24 | child: InkWell(
25 | onTap: breadCrumbItem.onTap,
26 | splashColor: breadCrumbItem.splashColor,
27 | borderRadius: breadCrumbItem.borderRadius as BorderRadius?,
28 | child: Padding(
29 | padding: breadCrumbItem.padding,
30 | child: DefaultTextStyle.merge(
31 | style: TextStyle(
32 | color: breadCrumbItem.isEnable
33 | ? breadCrumbItem.textColor
34 | : breadCrumbItem.disabledTextColor,
35 | ),
36 | child: breadCrumbItem.content,
37 | ),
38 | ),
39 | ),
40 | ),
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/external/switch/thumb_painter.dart:
--------------------------------------------------------------------------------
1 | part of xlive_switch;
2 |
3 | class _XliveThumbPainter {
4 | _XliveThumbPainter({
5 | required this.color,
6 | this.shadowColor = const Color(0x00FFFFFF),
7 | }) : _shadowPaint = BoxShadow(
8 | color: shadowColor,
9 | blurRadius: 1.0,
10 | ).toPaint();
11 |
12 | final Color color;
13 |
14 | final Color shadowColor;
15 |
16 | final Paint _shadowPaint;
17 |
18 | static const double radius = 14.0;
19 |
20 | static const double extension = 7.0;
21 |
22 | void paint(Canvas canvas, Rect rect) {
23 | final RRect rrectParent = RRect.fromRectAndRadius(
24 | rect.deflate(4.0),
25 | Radius.circular(rect.shortestSide / 2.0),
26 | );
27 |
28 | final RRect childRect = RRect.fromRectAndRadius(
29 | rect.deflate(10.0),
30 | Radius.circular(rect.shortestSide / 2.0),
31 | );
32 |
33 | canvas.drawDRRect(rrectParent, childRect, _shadowPaint);
34 | canvas.drawDRRect(rrectParent.shift(const Offset(0.0, 3.0)),
35 | childRect.shift(const Offset(0.0, 3.0)), _shadowPaint);
36 | canvas.drawDRRect(
37 | RRect.fromLTRBR(
38 | rrectParent.left,
39 | rrectParent.top,
40 | rrectParent.right,
41 | rrectParent.bottom,
42 | Radius.circular(rect.shortestSide / 2.0),
43 | ),
44 | childRect,
45 | Paint()..color = color);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/external/switch/xliv-switch.dart:
--------------------------------------------------------------------------------
1 | library xlive_switch;
2 |
3 | import 'dart:ui';
4 |
5 | import 'package:flutter/cupertino.dart';
6 | import 'package:flutter/foundation.dart';
7 | import 'package:flutter/gestures.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter/rendering.dart';
10 | import 'package:flutter/widgets.dart';
11 |
12 | part 'animation_switch.dart';
13 |
14 | part 'thumb_painter.dart';
15 |
16 | class XlivSwitch extends StatefulWidget {
17 | //create a switcher with animation similar https://dribbble.com/shots/5429846-Switcher-XLIV
18 | const XlivSwitch({
19 | Key? key,
20 | required this.value,
21 | required this.onChanged,
22 | this.activeColor,
23 | this.unActiveColor,
24 | this.thumbColor,
25 | }) : super(key: key);
26 |
27 | final bool value;
28 |
29 | final ValueChanged onChanged;
30 |
31 | final Color? activeColor;
32 |
33 | final Color? unActiveColor;
34 |
35 | final Color? thumbColor;
36 |
37 | @override
38 | _XlivSwitchState createState() => _XlivSwitchState();
39 |
40 | @override
41 | void debugFillProperties(DiagnosticPropertiesBuilder properties) {
42 | super.debugFillProperties(properties);
43 | properties.add(FlagProperty('value',
44 | value: value, ifTrue: 'on', ifFalse: 'off', showName: true));
45 | properties.add(ObjectFlagProperty>(
46 | 'onChanged', onChanged,
47 | ifNull: 'disabled'));
48 | }
49 | }
50 |
51 | class _XlivSwitchState extends State with TickerProviderStateMixin {
52 | @override
53 | Widget build(BuildContext context) {
54 | return _XlivSwitchRenderObjectWidget(
55 | value: widget.value,
56 | activeColor: widget.activeColor ?? CupertinoColors.activeGreen,
57 | onChanged: widget.onChanged,
58 | thumbColor: widget.thumbColor ?? CupertinoColors.white,
59 | unActiveColor: widget.unActiveColor ?? CupertinoColors.destructiveRed,
60 | vsync: this,
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/external/webdav/webdav.dart:
--------------------------------------------------------------------------------
1 | library webdav;
2 |
3 | export './src/client.dart' show Client;
4 | export './src/file.dart' show FileInfo;
5 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/services.dart';
4 | import 'package:flutter/widgets.dart';
5 | import 'package:aqua/aqua.dart';
6 | import 'package:permission_handler/permission_handler.dart';
7 |
8 | void main() async {
9 | WidgetsFlutterBinding.ensureInitialized();
10 |
11 | if (Platform.isAndroid) {
12 | SystemUiOverlayStyle systemUiOverlayStyle =
13 | SystemUiOverlayStyle(statusBarColor: Colors.transparent);
14 | SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
15 | }
16 |
17 | if (Platform.isWindows) {
18 | runApp(Aqua());
19 | } else {
20 | if (await Permission.storage.request().isGranted) {
21 | runApp(Aqua());
22 | }
23 | }
24 |
25 | // await SentryFlutter.init(
26 | // (options) {
27 | // options.dsn = SENTRY_DNS;
28 | // },
29 | // appRunner: () => runApp(Aqua()),
30 | // );
31 | }
32 |
--------------------------------------------------------------------------------
/lib/model/associate_view_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:aqua/page/file_manager/fs_ui_utils.dart';
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:aqua/page/file_manager/fs_utils.dart';
5 |
6 | class AssociateViewModel extends ChangeNotifier {
7 | // 当前目录
8 | Directory? _currentDir;
9 | Directory? get currentDir => _currentDir;
10 |
11 | void setCurrentDir(Directory? dir, {update: false}) {
12 | _currentDir = dir;
13 | if (update) notifyListeners();
14 | }
15 |
16 | List? _majorList;
17 | List? get majorList => _majorList;
18 |
19 | Future setMajorList(context, Directory dir, {update = false}) async {
20 | await FsUIUtils.readdir(context, dir).then((list) {
21 | _majorList = list;
22 | if (update) notifyListeners();
23 | }).catchError((err) {
24 | throw Exception(err);
25 | });
26 | }
27 |
28 | List? _minorList;
29 | List? get minorList => _minorList;
30 |
31 | Future setMinorList(context, Directory? dir, {update = false}) async {
32 | await FsUIUtils.readdir(context, dir!).then((list) {
33 | _minorList = list;
34 | if (update) notifyListeners();
35 | }).catchError((err) {
36 | throw Exception(err);
37 | });
38 | }
39 |
40 | Future setMinorListDirectly(context, List? list,
41 | {update = false}) async {
42 | _minorList = list;
43 |
44 | if (update) notifyListeners();
45 | }
46 |
47 | bool _isSelectAll = false;
48 | bool get isSelectAll => _isSelectAll;
49 |
50 | Future setSelectAll({update = false}) async {
51 | _isSelectAll = !_isSelectAll;
52 |
53 | if (update) notifyListeners();
54 | }
55 | }
56 |
57 | AssociateViewModel associateViewModel = AssociateViewModel();
58 |
--------------------------------------------------------------------------------
/lib/model/model.dart:
--------------------------------------------------------------------------------
1 | export './global_model.dart';
2 | export './associate_view_model.dart';
3 | export './file_manager_model.dart';
4 | export './independent_view_model.dart';
5 | export './quick_board_model.dart';
6 | export './select_file_model.dart';
7 | export './theme_model.dart';
8 |
--------------------------------------------------------------------------------
/lib/model/quick_board_model.dart:
--------------------------------------------------------------------------------
1 | // import 'dart:io';
2 | // import 'package:flutter/cupertino.dart';
3 | // import 'package:aqua/constant/constant_var.dart';
4 | // import 'package:aqua/page/file_manager/fs_utils.dart';
5 | // import 'package:aqua/utils/store.dart';
6 |
7 | // class QuickBoardModel extends ChangeNotifier {
8 |
9 | // }
10 |
--------------------------------------------------------------------------------
/lib/model/theme_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:aqua/constant/constant_var.dart';
3 | import 'package:aqua/utils/store.dart';
4 | import 'package:aqua/common/theme.dart';
5 |
6 | class ThemeModel extends ChangeNotifier {
7 | late String _theme = LIGHT_THEME;
8 | AquaTheme _themeData = LightTheme();
9 | late bool _isDark = false;
10 |
11 | bool get isDark => _isDark;
12 |
13 | AquaTheme get themeData => _themeData;
14 | String get theme => _theme;
15 |
16 | Future setTheme(String theme, {notify = true}) async {
17 | _theme = theme;
18 | switch (theme) {
19 | case LIGHT_THEME:
20 | _isDark = false;
21 | _themeData = LightTheme();
22 | break;
23 | case DARK_THEME:
24 | _isDark = true;
25 | _themeData = DarkTheme();
26 | break;
27 | default:
28 | _isDark = false;
29 | _themeData = LightTheme();
30 | break;
31 | }
32 | await Store.setString(THEME_KEY, theme);
33 | if (notify) notifyListeners();
34 | }
35 |
36 | Future init() async {
37 | String theme = (await Store.getString(THEME_KEY)) ?? LIGHT_THEME;
38 | await setTheme(theme, notify: false);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/page/file_editor/encoding_list.dart:
--------------------------------------------------------------------------------
1 | List encodings = [
2 | 'GBK',
3 | 'UTF-7',
4 | 'UTF-8',
5 | 'UTF-16BE',
6 | 'UTF-16LE',
7 | 'UTF-16',
8 | 'UTF-32',
9 | 'UTF-32BE',
10 | 'UTF-32LE',
11 | 'GB18030',
12 | 'GB2312',
13 | 'Big5',
14 | 'Shift_JIS',
15 | 'ISO-2022-CN',
16 | 'ISO-2022-JP',
17 | 'ISO-2022-KR'
18 | ];
19 |
--------------------------------------------------------------------------------
/lib/page/file_editor/langagues.dart:
--------------------------------------------------------------------------------
1 | final List allLanguages = [
2 | 'vue',
3 | 'bash',
4 | 'clojure',
5 | 'cmake',
6 | 'coffeescript',
7 | 'cpp',
8 | 'cs',
9 | 'csp',
10 | 'css',
11 | 'dart',
12 | 'dockerfile',
13 | 'excel',
14 | 'go',
15 | 'gradle',
16 | 'groovy',
17 | 'haskell',
18 | 'java',
19 | 'javascript',
20 | 'julia',
21 | 'kotlin',
22 | 'lisp',
23 | 'lua',
24 | 'makefile',
25 | 'markdown',
26 | 'matlab',
27 | 'objectivec',
28 | 'ocaml',
29 | 'perl',
30 | 'php',
31 | 'plaintext',
32 | 'powershell',
33 | 'python',
34 | 'reasonml',
35 | 'ruby',
36 | 'rust',
37 | 'scala',
38 | 'scss',
39 | 'shell',
40 | 'sql',
41 | 'swift',
42 | 'typescript',
43 | 'xml',
44 | 'yaml',
45 | ];
46 |
--------------------------------------------------------------------------------
/lib/page/file_editor/tool_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ToolItem {
4 | VoidCallback? press;
5 |
6 | String symbol;
7 |
8 | ToolItem({
9 | required this.press,
10 | required this.symbol,
11 | });
12 | }
13 |
--------------------------------------------------------------------------------
/lib/page/file_manager/left_sider.dart:
--------------------------------------------------------------------------------
1 | // Future getValidAndTotalStorageSize() async {
2 | // _totalSize = await ExtraStorage.getTotalExternalStorageSize;
3 | // _validSize = await ExtraStorage.getValidExternalStorageSize;
4 | // }
5 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/body_parser/shelf_body_parser.dart:
--------------------------------------------------------------------------------
1 | /// Support for doing something awesome.
2 | ///
3 | /// More dartdocs go here.
4 | library shelf_body_parser;
5 |
6 | export 'src/shelf_body_parser.dart';
7 | export 'src/buffer.dart';
8 | export 'src/file.dart';
9 |
10 | dynamic getParams(Map params, String key) {
11 | var value = params[key];
12 | if (value is List) return value[0];
13 | return value;
14 | }
15 |
16 | // TODO: Export any libraries intended for clients of this package.
17 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/body_parser/src/body_parse_result.dart:
--------------------------------------------------------------------------------
1 | part of body_parser;
2 |
3 | /// A representation of data from an incoming request.
4 | abstract class BodyParseResult {
5 | /// The parsed body.
6 | Map get postParams;
7 |
8 | /// The parsed query string.
9 | Map get query;
10 |
11 | /// All files uploaded within this request.
12 | Map> get postFileParams;
13 |
14 | /// The original body bytes sent with this request.
15 | ///
16 | /// You must set [storeOriginalBuffer] to `true` to see this.
17 | Buffer get originalBuffer;
18 |
19 | /// If an error was encountered while parsing the body, it will appear here.
20 | ///
21 | /// Otherwise, this is `null`.
22 | dynamic get error;
23 |
24 | /// If an error was encountered while parsing the body, the call stack will appear here.
25 | ///
26 | /// Otherwise, this is `null`.
27 | StackTrace get stack;
28 | }
29 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/body_parser/src/buffer.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | class Buffer {
4 | final List store;
5 | Buffer(List store) : store = store;
6 | String get UTF8 => utf8.decode(this.store);
7 |
8 | @override
9 | String toString() => this.store.toString();
10 | }
11 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/body_parser/src/file.dart:
--------------------------------------------------------------------------------
1 | import 'package:mime/mime.dart';
2 |
3 | /// Represents a file uploaded to the server.
4 | class FileParams {
5 | /// The MIME type of the uploaded file.
6 | String mimeType;
7 |
8 | /// The name of the file field from the request.
9 | String name;
10 |
11 | /// The filename of the file.
12 | String filename;
13 |
14 | /// The bytes that make up this file.
15 | MimeMultipart part;
16 |
17 | FileParams(
18 | {required String mimeType,
19 | required String name,
20 | required String filename,
21 | required MimeMultipart part})
22 | : mimeType = mimeType,
23 | name = name,
24 | filename = filename,
25 | part = part;
26 |
27 | @override
28 | String toString() =>
29 | 'filename:${this.filename} name:${this.name} mimeType:${this.mimeType}';
30 | }
31 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/body_parser/src/shelf_body_parser.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:shelf/shelf.dart' as shelf;
4 | import 'package:http_parser/http_parser.dart';
5 | import 'body_parser.dart';
6 |
7 | /// Creates a Shelf [Middleware] to parse body.
8 | ///
9 | shelf.Middleware bodyParser({bool storeOriginalBuffer = false}) {
10 | return (shelf.Handler innerHandler) {
11 | return (shelf.Request request) async {
12 | var result = await parseBodyFromStream(
13 | request.read(),
14 | request.headers['content-type'] != null
15 | ? MediaType.parse(request.headers['content-type']!)
16 | // ignore: null_check_always_fails
17 | : null!,
18 | request.url,
19 | storeOriginalBuffer: storeOriginalBuffer);
20 | return Future.sync(() {
21 | return innerHandler(
22 | request.change(context: {
23 | 'query': result.query,
24 | 'postParams': result.postParams,
25 | 'postFileParams': result.postFileParams,
26 | 'originalBuffer': result.originalBuffer
27 | }),
28 | );
29 | }).then((shelf.Response response) {
30 | return response;
31 | }, onError: (error, StackTrace stackTrace) {
32 | throw error;
33 | });
34 | };
35 | };
36 | }
37 |
--------------------------------------------------------------------------------
/lib/page/lan/static_fs/util.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | DateTime toSecondResolution(DateTime dt) {
6 | if (dt.millisecond == 0) return dt;
7 | return dt.subtract(new Duration(milliseconds: dt.millisecond));
8 | }
9 |
--------------------------------------------------------------------------------
/lib/page/video/meida_info.dart:
--------------------------------------------------------------------------------
1 | class MediaInfo {
2 | final String name;
3 | final String path;
4 |
5 | MediaInfo({required this.name, required this.path});
6 | }
7 |
--------------------------------------------------------------------------------
/lib/plugin/archive/enums.dart:
--------------------------------------------------------------------------------
1 | enum ZipCompressLevel { fastest, fast, normal, maximum, ultra }
2 | enum ZipCompressMethod { store, deflate, aes }
3 | enum ZipEncryptionMethod { aes, standard, strong }
4 | enum CompressionType { bzip2, gzip, pack200, xz }
5 | enum ArchiveFormat { sevenz, tar, jar, ar, dump, cpio }
6 |
--------------------------------------------------------------------------------
/lib/plugin/glide/enum.dart:
--------------------------------------------------------------------------------
1 | enum ThumbFormat { jpeg, png }
2 | enum DiskCacheStrategy { all, none, data, resource, automatic }
3 |
--------------------------------------------------------------------------------
/lib/plugin/glide/glide.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:typed_data';
3 | import 'package:flutter/services.dart';
4 | import 'enum.dart';
5 |
6 | class AquaGlide {
7 | static const MethodChannel _channel = const MethodChannel('aqua_glide');
8 |
9 | static Future getLocalThumbnail({
10 | required int width,
11 | required int height,
12 | required String path,
13 | int quality = 100,
14 | ThumbFormat format = ThumbFormat.png,
15 | }) {
16 | return _channel.invokeMethod('getLocalThumbnail', {
17 | 'width': width,
18 | 'height': height,
19 | 'path': path,
20 | 'format': format.index,
21 | 'quality': quality,
22 | });
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/plugin/pkg_mgmt/mgmt.dart:
--------------------------------------------------------------------------------
1 | import 'dart:typed_data';
2 |
3 | import 'package:flutter/services.dart';
4 |
5 | class PackageMgmt {
6 | static const MethodChannel _channel = const MethodChannel('aqua_pkg_mgmt');
7 |
8 | static Future