用户可借助此项目在 OpenHarmony 平台使用多种 Flutter 主流库。项目新增对 OpenHarmony 的兼容,已适配pigeon、image_picker等20余款常用库,覆盖文件选择、权限管理等功能。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
| 3 years ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 3 years ago | ||
| 3 years ago | ||
| 3 years ago | ||
| 4 years ago | ||
| 9 years ago | ||
| 3 years ago | ||
| 6 years ago | ||
| 3 years ago | ||
| 3 years ago | ||
| 1 year ago | ||
| 3 years ago | ||
| 5 years ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 3 years ago | ||
| 3 years ago | ||
| 3 years ago |
Warehouse introduction
The warehouse is based on the upstream Flutter community [packages warehouse] (https://github.com/flutter/packages/), based on commitId: b8b84b2304f00a3f93ce585cc7a30e1235bde7a0.
This repository mainly adds compatibility with the OpenHarmony platform.
OpenHarmony platform has compatible libraries
| No | Initial Warehouse Name | 3.7 Recommended Version | 3.22 Recommended Version | Warehouse Name | Is Compatible |
|---|---|---|---|---|---|
| 1 | pigeon | 14.0.0 | 21.2.0 | pigeon | Yes |
| 2 | file_selector | 1.0.1 | 1.0.3 | file_selector | Yes |
| 3 | image_picker | 1.0.4 | 1.1.2 | image_picker | Yes |
| 4 | animations | 2.0.8 | 2.0.8 | animations | Yes |
| 5 | url_launcher | 6.1.11 | 6.3.3 | url_launcher | Yes |
| 6 | shared_preferences | 2.2.2 | 2.3.2 | shared_preferences | Yes |
| 7 | path_provider | 2.1.1 | 2.1.4 | path_provider | Yes |
| 8 | local_auth | 2.1.6 | 2.3.0 | local_auth | Yes |
| 9 | sqflite | 2.2.8+4 | 2.3.3+1 | flutter_sqflite | Yes |
| 10 | permission_handler | 10.3.2 | 11.3.1 | flutter_permission_handler | Yes |
| 11 | fluttertoast | 8.2.2 | 8.2.8 | flutter_fluttertoast | Yes |
| 12 | camera | 0.10.5+5 | 0.11.0+2 | camera | Yes |
| 13 | video_player | 2.7.2 | 2.9.2 | video_player | Yes |
| 14 | webview_flutter | 4.4.2 | 4.8.0 | webview_flutter | Yes |
| 15 | webview_flutter-v4.4.4 | 4.4.4 | 4.8.0 | webview_flutter-v4.4.4 | Yes |
| 16 | connectivity_plus | 5.0.2 | 6.1.0 | connectivity_plus | Yes |
| 17 | device_info_plus | 9.1.2 | 11.1.0 | device_info_plus | Yes |
| 18 | package_info_plus | 4.2.0 | 8.1.0 | package_info_plus | Yes |
| 19 | package_info | 2.0.2 | 8.1.0 | package_info_plus | Yes |
| 20 | share_plus | 7.2.2 | 10.1.1 | share_plus | Yes |
| 21 | audio_session | 0.1.18 | 0.1.21 | flutter_audio_session | Yes |
| 22 | flutter_native_image | 0.0.6+1 | flutter_native_image | Yes | |
| 23 | flutter_sound | 9.2.13 | 9.3.0+3 | flutter_sound | Yes |
| 24 | image_gallery_saver | 2.0.3 | 2.0.3 | flutter_image_gallery_saver | Yes |
| 25 | location | 5.0.3 | 7.0.1 | location | Yes |
| 26 | power_image | 0.1.0-pre.2 | flutter_power_image | Yes | |
| 27 | wakelock | 0.6.2 | wakelock | Yes | |
| 28 | flutter_console | 0.0.4 | flutter_console | Yes | |
| 29 | audioplayers | 4.1.0 | 6.1.0 | flutter_audioplayers | Yes |
| 30 | gpu_image | 1.0.0 | flutter_gpu_image | Yes | |
| 31 | image_crop | 0.4.1 | flutter_image_crop | Yes | |
| 32 | bitmap | 0.1.3 | 0.2.0 | flutter_bitmap | Yes |
| 33 | leak_detector | 1.1.0 | 1.1.0 | flutter_leak_detector | Yes |
| 34 | flutter_math_fork | 0.6.3+1 | 0.7.2 | flutter_math_fork | Yes |
| 35 | flutter_contacts | 1.1.7+1 | 1.1.9+2 | flutter_contacts | Yes |
| 36 | flutter_inappwebview | 6.0.0 | flutter_inappwebview | Yes | |
| 37 | flutter_keyboard_visibility | 6.0.0 | 6.0.0 | flutter_keyboard_visibility | Yes |
| 38 | flutter_widget_from_html | 0.14.11 | 0.15.2 | flutter_widget_from_html | Yes |
| 39 | mobile_scanner | 3.5.7 | 6.0.2 | fluttertpc_mobile_scanner | Yes |
| 40 | device_util | 1.0.7 | fluttertpc_device_util | Yes | |
| 41 | export_video_frame | 0.0.7 | fluttertpc_export_video_frame | Yes | |
| 42 | flutter_local_notifications | 17.2.2 | 17.2.4 | fluttertpc_flutter_local_notifications | Yes |
| 43 | flutter_phone_direct_caller | 2.2.1 | fluttertpc_flutter_phone_direct_caller | Yes | |
| 44 | flutter_screenshot_callback | 0.0.9 | fluttertpc_screenshot_callback | Yes | |
| 45 | flutter_sms | 2.3.3 | fluttertpc_flutter_sms | Yes | |
| 46 | media_info | 0.12.0+2 | fluttertpc_media_info] | Yes | |
| 47 | orientation | 1.3.0 | fluttertpc_orientation | Yes | |
| 48 | recognition_qrcode | 2.0.2 | 2.0.2 | fluttertpc_recognition_qrcode | Yes |
| 49 | video_compress | 3.1.2 | fluttertpc_video_compress | Yes | |
| 50 | share_extend | 2.0.0 | [fluttertpc_share_extend | Yes | |
| 51 | catcher | 0.8.0 | fluttertpc_catcher | Yes | |
| 52 | flutter_mailer | 2.1.2 | 2.1.2 | fluttertpc_flutter_mailer | Yes |
| 53 | gallery_saver | 2.3.2 | fluttertpc_gallery_saver | Yes | |
| 54 | flutter_localization | 0.2.2 | 0.2.2 | flutter_localization | Yes |
| 55 | keyboard_actions | 4.2.0 | fluttertpc_keyboard_actions | Yes | |
| 56 | native_device_orientation | 1.2.1 | 1.2.1 | fluttertpc_native_device_orientation | Yes |
| 57 | screen | 0.0.5 | fluttertpc_screen | Yes | |
| 58 | pdf_render | 1.4.12 | 1.4.12 | fluttertpc_pdf_render | Yes |
| 59 | pdf_viewer_plugin | 2.0.1 | fluttertpc_pdf_viewer_plugin | Yes | |
| 60 | r_scan | 0.1.6+1 | fluttertpc_r_scan | Yes | |
| 61 | r_upgrade | 0.4.2 | fluttertpc_r_upgrade | Yes | |
| 62 | scan | 1.6.0 | fluttertpc_scan | Yes | |
| 63 | open_app_settings | 2.0.1 | fluttertpc_open_app_settings | Yes | |
| 64 | audio_service | 0.18.15 | 0.18.15 | fluttertpc_audio_service | Yes |
| 65 | open_filex | 4.5.0 | 4.5.0 | fluttertpc_open_filex | Yes |
| 66 | auto_orientation | 2.3.1 | fluttertpc_auto_orientation | Yes | |
| 67 | tobias | 4.0.0 | 4.0.0 | fluttertpc_tobias | Yes |
| 68 | flutter_filereader | 3.0.0 | fluttertpc_flutter_filereader | Yes | |
| 69 | flutter_document_picker | 5.2.3 | 5.2.3 | fluttertpc_flutter_document_picker | Yes |
| 70 | flutter_keychain | 2.5.0 | 2.5.0 | fluttertpc_flutter_keychain | Yes |
| 71 | flutter_udid | 2.0.1 | fluttertpc_flutter_udid | Yes | |
| 72 | in_app_purchase | 3.1.11 | 3.1.11 | in_app_purchase | Yes |
| 73 | flutter_yfree | 2.2.11 | 3.3.8 | fluttertpc_flutter_yfree | Yes |
| 74 | flutter_custom_cursor | 0.0.4 | fluttertpc_flutter_custom_cursor | Yes | |
| 75 | flutter_downloader | 1.10.5 | 1.10.5 | fluttertpc_flutter_downloader | Yes |
| 76 | flutter_qr_reader | 1.0.5 | 1.0.5 | fluttertpc_flutter_qr_reader | Yes |
| 77 | app_installer | 1.2.0 | 1.2.0 | fluttertpc_app_installer | Yes |
| 78 | camerawesome | 1.4.0 | fluttertpc_camerawesome | Yes | |
| 79 | file_picker | 8.0.7 | 8.0.7 | fluttertpc_file_picker | Yes |
| 80 | fk_user_agent | 2.1.0 | fluttertpc_fk_user_agent | Yes | |
| 81 | flutter_pdfview | 1.3.2 | 1.3.2 | fluttertpc_flutter_pdfview | Yes |
| 82 | flutter_secure_storage | 9.2.2 | fluttertpc_flutter_secure_storage | Yes | |
| 83 | flutter_statusbarcolor_ns | 0.5.0 | 0.5.0 | fluttertpc_flutter_statusbarcolor_ns | Yes |
| 84 | geocoding | 3.0.0 | 3.0.0 | fluttertpc_geocoding | Yes |
| 85 | image_cropper | 6.0.0 | 8.0.2 | fluttertpc_image_cropper | Yes |
| 86 | light_compressor | 2.0.1 | 2.2.0 | fluttertpc_light_compressor | Yes |
| 87 | map_launcher | 3.2.0 | 3.5.0 | fluttertpc_map_launcher | Yes |
| 88 | qr_code_scanner | 0.7.0 | fluttertpc_qr_code_scanner | Yes | |
| 89 | record_mp3 | 3.0.0 | fluttertpc_record_mp3 | Yes | |
| 90 | simple_circular_progress_bar | 1.0.2 | fluttertpc_simple_circular_progress_bar | Yes | |
| 91 | wakelock_plus | 1.1.6 | 1.2.8 | fluttertpc_wakelock_plus | Yes |
| 92 | system_boot_time | 0.0.1 | fluttertpc_system_boot_time | Yes | |
| 93 | fast_rsa | 3.6.3 | fluttertpc_fast_rsa | Yes | |
| 94 | install_plugin | 2.1.0 | 2.1.0 | fluttertpc_install_plugin | Yes |
| 95 | flutter_native_splash | 2.3.13 | 2.4.2 | fluttertpc_flutter_native_splash | Yes |
| 96 | geolocator | 10.1.0 | 13.0.0 | fluttertpc_geolocator | Yes |
| 97 | just_audio | 0.9.37 | 0.9.41 | fluttertpc_just_audio | Yes |
| 98 | printing | 5.10.4 | 5.13.2 | fluttertpc_printing | Yes |
| 99 | flutter_barcode_scanner | 2.0.0 | fluttertpc_flutter_barcode_scanner | Yes | |
| 100 | open_file | 3.5.3 | 3.5.3 | fluttertpc_open_file | Yes |
| 101 | flutter_blue_plus | 1.32.12 | 1.33.5 | fluttertpc_flutter_blue_plus | Yes |
| 102 | record | 5.0.5 | 5.1.2 | fluttertpc_record | Yes |
| 103 | video_thumbnail | 0.5.3 | fluttertpc_video_thumbnail | Yes | |
| 104 | flutter_isolate | 2.0.4 | 2.0.4 | fluttertpc_flutter_isolate | Yes |
| 105 | flutter_jsbridge_plugin | 0.0.5 | fluttertpc_flutter_jsbridge_plugin | Yes | |
| 106 | flutter_vibrate | 1.3.0 | fluttertpc_flutter_vibrate | Yes | |
| 107 | app_settings | 5.1.1 | 5.1.1 | fluttertpc_app_settings | Yes |
| 108 | qrcode_flutter | 3.0.0 | fluttertpc_qrcode_flutter | Yes | |
| 109 | cryptography_flutter | 2.3.0 | fluttertpc_cryptography_flutter | Yes | |
| 110 | pdfx | 2.3.0 | 2.8.0 | pdfx | Yes |
| 111 | get | 4.6.5 | fluttertpc_get | Yes | |
| 112 | super_native_extensions | 0.4.0 | fluttertpc_super_native_extensions | Yes | |
| 113 | irondash_engine_context | 0.1.1 | fluttertpc_irondash | Yes | |
| 114 | sign_in_with_apple | 5.0.0 | fluttertpc_dart_packages | Yes | |
| 115 | fluwx | 3.13.1 | 5.5.4 | fluwx | Yes(Already in the upstream round) |
| 116 | photo_manager | 3.3.0 | 3.3.0 | photo_manager | Yes(Already in the upstream round) |
| 117 | saver_gallery | 3.0.6 | 3.0.6 | saver_gallery | Yes(Already in the upstream round) |
| 118 | vibration | 2.0.0 | 2.0.0 | vibration | Yes(Already in the upstream round) |
| 119 | sqlite3_flutter_libs | 0.5.24 | - | - | Developing |
| 120 | dart_native | 0.7.11 | - | - | Developing |
| 121 | appspector | 0.10.0 | - | - | Developing |
| 122 | media_kit_video | 1.2.5 | - | - | Developing |
| 123 | quick_actions | 1.0.6 | - | - | Developing |
| 124 | uni_links | 0.5.1 | - | - | Developing |
| 125 | flutter_app_badger | 1.5.0 | - | - | Developing |
| 126 | sensors_plus | 4.0.2 | - | - | Developing |
| 127 | sms_autofill | 2.4.0 | - | - | Developing |
| 128 | media_kit_libs_video | 1.0.5 | - | - | Developing |
| 129 | network_info_plus | 6.0.1 | - | - | Developing |
| 130 | connectivity_for_web | 0.4.0+1 | - | - | No |
| 131 | connectivity_macos | 0.2.1+2 | - | - | No |
| 132 | css_colors | 1.1.3 | 1.1.3 | css_colors | No |
| 133 | espresso | 0.3.0+6 | 0.3.0+6 | espresso | No |
| 134 | extension_google_sign_in_as_googleapis_auth | 2.0.11 | 2.0.11 | extension_google_sign_in_as_googleapis_auth | No |
| 135 | flutter_adaptive_scaffold | 0.1.4 | 0.1.4 | flutter_adaptive_scaffold | No |
| 136 | flutter_image | 4.1.9 | 4.1.9 | flutter_image | No |
| 137 | flutter_lints | 2.0.3 | 2.0.3 | flutter_lints | No |
| 138 | flutter_markdown | 0.6.15 | 0.6.15 | flutter_markdown | No |
| 139 | flutter_migrate | 0.1.0 | 0.1.0 | flutter_migrate | No |
| 140 | flutter_plugin_android_lifecycle | 2.0.17 | 2.0.17 | flutter_plugin_android_lifecycle | No |
| 141 | flutter_template_images | 4.2.1 | 4.2.1 | flutter_template_images | No |
| 142 | go_router | 12.1.1 | 12.1.1 | go_router | No |
| 143 | go_router_builder | 2.3.4 | 2.3.4 | go_router_builder | No |
| 144 | google_identity_services_web | 0.2.2 | 0.2.2 | google_identity_services_web | No |
| 145 | google_maps_flutter | 2.3.0 | 2.3.0 | google_maps_flutter | No |
| 146 | google_sign_in | 6.1.6 | 6.1.6 | google_sign_in | No |
| 147 | ios_platform_images | 0.2.3 | 0.2.3 | ios_platform_images | No |
| 148 | metrics_center | 1.0.12 | 1.0.12 | metrics_center | No |
| 149 | multicast_dns | 0.3.2+4 | 0.3.2+4 | multicast_dns | No |
| 150 | palette_generator | 0.3.3+3 | 0.3.3+3 | palette_generator | No |
| 151 | pointer_interceptor | 0.9.3+5 | 0.9.3+5 | pointer_interceptor | No |
| 152 | rfw | 1.0.9 | 1.0.9 | rfw | No |
| 153 | standard_message_codec | 0.0.1+4 | 0.0.1+4 | standard_message_codec | No |
| 154 | two_dimensional_scrollables | - | - | two_dimensional_scrollables | No |
| 155 | web_benchmarks | 0.1.0+8 | 0.1.0+8 | web_benchmarks | No |
| 156 | webview_flutter_platform_interface | 2.6.0 | 2.6.0 | webview_flutter_platform_interface | No |
| 157 | xdg_directories | 1.0.3 | 1.0.3 | xdg_directories | No |
| 158 | volume_controller | 2.0.8 | - | - | No |
| 159 | photo_gallery | 2.1.1 | - | - | No |
| 160 | ffmpeg_kit_flutter_full_gpl | 6.0.3 | - | - | No |
| 161 | stack_trace | 1.11.1 | - | - | - |
| 162 | vector_math | 2.1.4 | - | - | - |
| 163 | collection | 1.18.0 | - | - | - |
| 164 | source_span | 1.10.0 | - | - | - |
| 165 | characters | 1.3.0 | - | - | - |
| 166 | path | 1.8.3 | - | - | - |
| 167 | ffi | 2.0.2 | - | - | - |
| 168 | intl | 0.18.1 | - | - | - |
| 169 | archive | 3.4.10 | - | - | - |
| 170 | file | 6.1.4 | - | - | - |
| 171 | provider | 6.1.2 | - | - | - |
| 172 | typed_data | 1.3.2 | - | - | - |
| 173 | term_glyph | 1.2.1 | - | - | - |
| 174 | nested | 1.0.0 | - | - | - |
| 175 | lottie | 2.3.2 | - | - | - |
| 176 | crypto | 3.0.3 | - | - | - |
| 177 | http_parser | 4.0.2 | - | - | - |
| 178 | uuid | 4.2.2 | - | - | - |
| 179 | dio | 5.7.0 | - | - | - |
| 180 | clock | 1.1.1 | - | - | - |
| 181 | http | 0.13.6 | - | - | - |
| 182 | string_scanner | 1.2.0 | - | - | - |
| 183 | event_bus | 2.0.0 | - | - | - |
| 184 | rxdart | 0.28.0 | - | - | - |
| 185 | platform | 3.1.3 | - | - | - |
| 186 | logging | 1.2.0 | - | - | - |
| 187 | tuple | 2.0.2 | - | - | - |
| 188 | async | 2.11.0 | - | - | - |
| 189 | path_drawing | 1.0.1 | - | - | - |
| 190 | quiver | 3.2.2 | - | - | - |
| 191 | flutter_cache_manager | 3.3.2 | - | - | - |
| 192 | sqflite_common | 2.4.5+1 | - | - | - |
| 193 | visibility_detector | 0.4.0+2 | - | - | - |
| 194 | octo_image | 2.0.0 | - | - | - |
| 195 | synchronized | 3.1.0 | - | - | - |
| 196 | convert | 3.1.1 | - | - | - |
| 197 | cached_network_image | 3.2.3 | - | - | - |
| 198 | xml | 6.3.0 | - | - | - |
| 199 | path_parsing | 1.0.1 | - | - | - |
| 200 | flutter_svg | 2.0.10+1 | - | - | - |
| 201 | petitparser | 5.4.0 | - | - | - |
| 202 | photo_view | 0.15.0 | - | - | - |
| 203 | flutter_swiper_null_safety | 1.0.2 | - | - | - |
| 204 | scrollable_positioned_list | 0.3.8 | - | - | - |
| 205 | flare_flutter | 3.0.2 | - | - | - |
| 206 | table_calendar | 3.0.9 | - | - | - |
| 207 | flutter_bloc | 8.1.6 | - | - | - |
| 208 | pull_to_refresh | 2.0.0 | - | - | - |
| 209 | qr_flutter | 4.1.0 | - | - | - |
| 210 | qr | 3.0.1 | - | - | - |
| 211 | fl_chart | 0.62.0 | - | - | - |
| 212 | date_format | 2.0.9 | - | - | - |
| 213 | auto_size_text | 3.0.0 | - | - | - |
| 214 | bloc | 8.1.4 | - | - | - |
| 215 | plume | 0.1.4 | - | - | - |
| 216 | card_swiper | 3.0.1 | - | - | - |
| 217 | dotted_border | 2.1.0 | - | - | - |
| 218 | equatable | 2.0.5 | - | - | - |
| 219 | rational | 2.2.3 | - | - | - |
| 220 | executor | 2.2.3 | - | - | - |
| 221 | safemap | 2.1.0 | - | - | - |
| 222 | decimal | 3.0.2 | - | - | - |
| 223 | simple_gesture_detector | 0.2.1 | - | - | - |
| 224 | plugin_platform_interface | 2.1.6 | - | - | - |
| 225 | animations | 2.0.8 | - | - | - |
| 226 | cross_file | 0.3.3+6 | - | - | - |
| 227 | flutter_blurhash | 0.7.0 | - | - | - |
| 228 | globbing | 0.3.1 | - | - | - |
| 229 | graphs | 2.3.1 | - | - | - |
How to reference these libraries
1. Use of tool library pigeon
- Introduce the pigeon library and add new configuration to dev_dependencies in pubspec.yaml:
dev_dependencies:
pigeon:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/pigeons"
-
Run
flutter pub getin the project root directory; -
Run
flutter pub run pigeon in the project root directory --input <dart communication model file path> --arkts_out <arkts platform method code output file path, example./ohos/entry/src/main/ets/xxx.ets>
The template code for communication between Flutter and the OpenHarmony platform will be generated;
- For calling examples, refer to packages/pigeon/example/app/ohos/entry/src/main/ets/plugins/MessagePlugin.ets
2. Use of plug-in library
Take path_provider as an example:
- In the referenced project, add new dependencies configuration in pubspec.yaml:
dependencies:
path_provider:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/path_provider/path_provider"
-
Run
flutter pub getin the project root directory; (ohos/entry/oh-package.json5 will automatically add related plug-in har dependencies) -
Call the path_provider related API in the business code, and it will run normally on the OpenHarmony platform.
Example: Add the path_provider library dependency that supports the OpenHarmony platform to a Flutter-compatible OpenHarmony project;
Reference examples: https://gitcode.com/openharmony-tpc/flutter_samples/tree/master/ohos/pictures_provider_demo.
FAQ
1. Run flutter pub get displayed "File name too long" error
Open the Git Bash or cmd.exe(you need to have git as an environment variable) and execute the following command:
git config --global core.longpaths true
Introduction
用户可借助此项目在 OpenHarmony 平台使用多种 Flutter 主流库。项目新增对 OpenHarmony 的兼容,已适配pigeon、image_picker等20余款常用库,覆盖文件选择、权限管理等功能。【此简介由AI生成】
Customize your domain