当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
19 Star 119 Fork 133

OpenHarmony-SIG/flutter_packages
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

仓库介绍

该仓库基于上游Flutter社区packages仓库,基于commitId:b8b84b2304f00a3f93ce585cc7a30e1235bde7a0。

该仓库主要新增对OpenHarmony平台的兼容。

OpenHarmony平台已兼容库

序号 原库名 原库基线版本 仓库名 状态
1 pigeon 14.0.0 pigeon 已适配
2 file_selector 1.0.1 file_selector 已适配
3 image_picker 1.0.4 image_picker 已适配
4 animations 2.0.8 animations 已适配
5 url_launcher 6.1.11 url_launcher 已适配
6 shared_preferences 2.2.2 shared_preferences 已适配
7 path_provider 2.1.1 path_provider 已适配
8 local_auth 2.1.6 local_auth 已适配
9 sqflite 2.2.8+4 flutter_sqflite 已适配
10 permission_handler 11.3.1 flutter_permission_handler 已适配
11 fluttertoast 8.2.8 flutter_fluttertoast 已适配
12 camera 0.10.5+5 camera 已适配
13 video_player 2.7.2 video_player 已适配
14 webview_flutter 4.4.2 webview_flutter 已适配
15 webview_flutter-v4.4.4 4.4.4 webview_flutter-v4.4.4 已适配
16 connectivity_plus 5.0.2 connectivity_plus 已适配
17 device_info_plus 9.1.2 device_info_plus 已适配
18 package_info_plus 4.2.0 package_info_plus 已适配
19 package_info 2.0.2 package_info_plus 已适配
20 share_plus 7.2.2 share_plus 已适配
21 audio_session 0.1.21 flutter_audio_session 已适配
22 flutter_native_image 0.0.6+1 flutter_native_image 已适配
23 flutter_sound 9.2.13 flutter_sound 已适配
24 image_gallery_saver 2.0.3 flutter_image_gallery_saver 已适配
25 location 5.0.3 location 已适配
26 power_image 0.1.0-pre.2 flutter_power_image 已适配
27 wakelock 0.6.2 wakelock 已适配
28 flutter_console 0.0.4 flutter_console 已适配
29 audioplayers 4.1.0 flutter_audioplayers 已适配
30 gpu_image 1.0.0 flutter_gpu_image 已适配
31 image_crop 0.4.1 flutter_image_crop 已适配
32 bitmap 0.1.3 flutter_bitmap 已适配
33 leak_detector 1.1.0 flutter_leak_detector 已适配
34 flutter_math_fork 0.6.3+1 flutter_math_fork 已适配
35 flutter_contacts 1.1.9+2 flutter_contacts 已适配
36 flutter_inappwebview 6.0.0 flutter_inappwebview 已适配
37 flutter_keyboard_visibility 6.0.0 flutter_keyboard_visibility 已适配
38 flutter_widget_from_html 0.14.11 flutter_widget_from_html 已适配
39 mobile_scanner 3.5.7 fluttertpc_mobile_scanner 已适配
40 device_util 1.0.7 fluttertpc_device_util 已适配
41 export_video_frame 0.0.7 fluttertpc_export_video_frame 已适配
42 flutter_local_notifications 17.2.2 fluttertpc_flutter_local_notifications 已适配
43 flutter_phone_direct_caller 2.2.1 fluttertpc_flutter_phone_direct_caller 已适配
44 flutter_screenshot_callback 0.0.9 fluttertpc_screenshot_callback 已适配
45 flutter_sms 2.3.3 fluttertpc_flutter_sms 已适配
46 media_info 0.12.0+2 fluttertpc_media_info 已适配
47 orientation 1.3.0 fluttertpc_orientation 已适配
48 recognition_qrcode 2.0.2 fluttertpc_recognition_qrcode 已适配
49 video_compress 3.1.2 fluttertpc_video_compress 已适配
50 share_extend 2.0.0 fluttertpc_share_extend 已适配
51 catcher 0.8.0 fluttertpc_catcher 已适配
52 flutter_mailer 2.1.2 fluttertpc_flutter_mailer 已适配
53 gallery_saver 2.3.2 fluttertpc_gallery_saver 已适配
54 flutter_localization 0.2.2 flutter_localization 已适配
55 keyboard_actions 4.2.0 fluttertpc_keyboard_actions 已适配
56 native_device_orientation 1.2.1 fluttertpc_native_device_orientation 已适配
57 screen 0.0.5 fluttertpc_screen 已适配
58 pdf_render 1.4.12 fluttertpc_pdf_render 已适配
59 pdf_viewer_plugin 2.0.1 fluttertpc_pdf_viewer_plugin 已适配
60 r_scan 0.1.6+1 fluttertpc_r_scan 已适配
61 r_upgrade 0.4.2 fluttertpc_r_upgrade 已适配
62 scan 1.6.0 fluttertpc_scan 已适配
63 open_app_settings 2.0.1 fluttertpc_open_app_settings 已适配
64 audio_service 0.18.15 fluttertpc_audio_service 已适配
65 open_filex 4.5.0 fluttertpc_open_filex 已适配
66 auto_orientation 2.3.1 fluttertpc_auto_orientation 已适配
67 tobias 4.0.0 fluttertpc_tobias 已适配
68 flutter_filereader 3.0.0 fluttertpc_flutter_filereader 已适配
69 flutter_document_picker 5.2.3 fluttertpc_flutter_document_picker 已适配
70 flutter_keychain 2.5.0 fluttertpc_flutter_keychain 已适配
71 flutter_udid 2.0.1 fluttertpc_flutter_udid 已适配
72 in_app_purchase 3.1.11 in_app_purchase 已适配
73 flutter_yfree 2.2.11 fluttertpc_flutter_yfree 已适配
74 flutter_custom_cursor 0.0.4 fluttertpc_flutter_custom_cursor 已适配
75 flutter_downloader 1.10.5 fluttertpc_flutter_downloader 已适配
76 flutter_qr_reader 1.0.5 fluttertpc_flutter_qr_reader 已适配
77 app_installer 1.2.0 fluttertpc_app_installer 已适配
78 camerawesome 1.4.0 fluttertpc_camerawesome 已适配
79 file_picker 8.0.7 fluttertpc_file_picker 已适配
80 fk_user_agent 2.1.0 fluttertpc_fk_user_agent 已适配
81 flutter_pdfview 1.3.2 fluttertpc_flutter_pdfview 已适配
82 flutter_secure_storage 9.2.2 fluttertpc_flutter_secure_storage 已适配
83 flutter_statusbarcolor_ns 0.5.0 fluttertpc_flutter_statusbarcolor_ns 已适配
84 geocoding 3.0.0 fluttertpc_geocoding 已适配
85 image_cropper 6.0.0 fluttertpc_image_cropper 已适配
86 light_compressor 2.0.1 fluttertpc_light_compressor 已适配
87 map_launcher 3.2.0 fluttertpc_map_launcher 已适配
88 qr_code_scanner 1.0.1 fluttertpc_qr_code_scanner 已适配
89 record_mp3 3.0.0 fluttertpc_record_mp3 已适配
90 simple_circular_progress_bar 1.0.2 fluttertpc_simple_circular_progress_bar 已适配
91 wakelock_plus 1.1.6 fluttertpc_wakelock_plus 已适配
92 system_boot_time 0.0.1 fluttertpc_system_boot_time 已适配
93 fast_rsa 3.6.3 fluttertpc_fast_rsa 已适配
94 install_plugin 2.1.0 fluttertpc_install_plugin 已适配
95 flutter_native_splash 2.3.13 fluttertpc_flutter_native_splash 已适配
96 geolocator 13.0.1 fluttertpc_geolocator 已适配
97 just_audio 0.9.37 fluttertpc_just_audio 已适配
98 printing 5.10.4 fluttertpc_printing 已适配
99 flutter_barcode_scanner 2.0.0 fluttertpc_flutter_barcode_scanner 已适配
100 open_file 3.5.3 fluttertpc_open_file 已适配
101 flutter_blue_plus 1.32.12 fluttertpc_flutter_blue_plus 已适配
102 record 5.0.5 fluttertpc_record 已适配
103 video_thumbnail 0.5.3 fluttertpc_video_thumbnail 已适配
104 flutter_isolate 2.0.4 fluttertpc_flutter_isolate 已适配
105 flutter_jsbridge_plugin 0.0.5 fluttertpc_flutter_jsbridge_plugin 已适配
106 flutter_vibrate 1.3.0 fluttertpc_flutter_vibrate 已适配
107 app_settings 5.1.1 fluttertpc_app_settings 已适配
108 qrcode_flutter 3.0.0 fluttertpc_qrcode_flutter 已适配
109 cryptography_flutter 2.3.0 fluttertpc_cryptography_flutter 已适配
110 pdfx 2.3.0 pdfx 已适配
111 get 4.6.5 fluttertpc_get 已适配
112 super_native_extensions 0.4.0 fluttertpc_super_native_extensions 已适配
113 irondash_engine_context 0.1.1 fluttertpc_irondash 已适配
114 dart_native 0.7.11 - 开发中
115 media_kit_video 1.2.5 - 开发中
116 quick_actions 1.0.6 - 开发中
117 media_kit_libs_video 1.0.5 - 开发中
118 sign_in_with_apple 5.0.0 - 开发中
119 sqlite3_flutter_libs 0.5.24 - 开发中
120 fluwx 3.13.1 - 开发中
121 appspector 0.10.0 - 开发中
122 photo_manager 3.3.0 - 开发中
123 saver_gallery 3.0.6 - 开发中
124 uni_links 0.5.1 - 开发中
125 flutter_app_badger 1.5.0 - 开发中
126 sensors_plus 4.0.2 - 开发中
127 sms_autofill 2.4.0 - 开发中
128 vibration 2.0.0 - 开发中
129 network_info_plus 6.0.1 - 开发中
130 connectivity_for_web 0.4.0+1 - 未适配
131 connectivity_macos 0.2.1+2 - 未适配
132 css_colors 1.1.3 css_colors 未适配
133 espresso 0.3.0+6 espresso 未适配
134 extension_google_sign_ in_as_googleapis_auth 2.0.11 extension_google_sign_ in_as_googleapis_auth 未适配
135 flutter_adaptive_scaffold 0.1.4 flutter_adaptive_scaffold 未适配
136 flutter_image 4.1.9 flutter_image 未适配
137 flutter_lints 2.0.3 flutter_lints 未适配
138 flutter_markdown 0.6.15 flutter_markdown 未适配
139 flutter_migrate 0.1.0 flutter_migrate 未适配
140 flutter_plugin_android_lifecycle 2.0.17 flutter_plugin_android_lifecycle 未适配
141 flutter_template_images 4.2.1 flutter_template_images 未适配
142 go_router 12.1.1 go_router 未适配
143 go_router_builder 2.3.4 go_router_builder 未适配
144 google_identity_services_web 0.2.2 google_identity_services_web 未适配
145 google_maps_flutter 2.3.0 google_maps_flutter 未适配
146 google_sign_in 6.1.6 google_sign_in 未适配
147 ios_platform_images 0.2.3 ios_platform_images 未适配
148 metrics_center 1.0.12 metrics_center 未适配
149 multicast_dns 0.3.2+4 multicast_dns 未适配
150 palette_generator 0.3.3+3 palette_generator 未适配
151 pointer_interceptor 0.9.3+5 pointer_interceptor 未适配
152 rfw 1.0.9 rfw 未适配
153 standard_message_codec 0.0.1+4 standard_message_codec 未适配
154 two_dimensional_scrollables - two_dimensional_scrollables 未适配
155 web_benchmarks 0.1.0+8 web_benchmarks 未适配
156 webview_flutter_platform_interface 2.6.0 webview_flutter_platform_interface 未适配
157 xdg_directories 1.0.3 xdg_directories 未适配
158 volume_controller 2.0.8 - 未适配
159 photo_gallery 2.1.1 - 未适配
160 ffmpeg_kit_flutter_full_gpl 6.0.3 - 未适配
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 - -
  • 注意:状态为-表示为纯Dart库

如何引用这些库

一、工具库pigeon使用

  1. 引入pigeon库,在pubspec.yaml中dev_dependencies新增配置:
dev_dependencies:
 pigeon:
   git:
     url: "https://gitee.com/openharmony-sig/flutter_packages.git"
     path: "packages/pigeon"
  1. 项目根目录运行flutter pub get

  2. 项目根目录运行flutter pub run pigeon --input <dart通信模型文件路径> --arkts_out <arkts平台方法代码输出文件路径,示例./ohos/entry/src/main/ets/xxx.ets>

将会生成Flutter与OpenHarmony平台通信的模板代码;

  1. 调用示例,参考packages/pigeon/example/app/ohos/entry/src/main/ets/plugins/MessagePlugin.ets

二、 插件库使用

以path_provider举例:

  1. 在引用的项目中,pubspec.yaml中dependencies新增配置:
dependencies:
  path_provider:
    git:
      url: "https://gitee.com/openharmony-sig/flutter_packages.git"
      path: "packages/path_provider/path_provider"

2、项目根目录运行flutter pub get;(ohos/entry/oh-package.json5会自动添加相关插件har依赖)

3、在业务代码中调用path_provider相关api,它会在OpenHarmony平台正常运行。

示例:在某个Flutter兼容OpenHarmony项目中加入支持OpenHarmony平台的path_provider库依赖;

可参考示例:https://gitee.com/openharmony-sig/flutter_samples/tree/master/ohos/pictures_provider_demo

FAQ

一、 运行 flutter pub get 遇到 "File name too long" 问题

打开Git Bash运行 cmd(需要将git添加到环境变量中),执行以下命令:

  git config --global core.longpaths true
Copyright (c) 2023 Huawei Device Co., Ltd. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/flutter_packages.git
git@gitee.com:openharmony-sig/flutter_packages.git
openharmony-sig
flutter_packages
flutter_packages
master

搜索帮助