Skip to content

集成部分原生功能,支持ios&android

License

Notifications You must be signed in to change notification settings

ivantree/flutter_curiosity

 
 

Repository files navigation

flutter_curiosity

集成部分原生功能,支持ios android

android

1.自动 添加 android http无法请求接口 解决方法 2.自动 添加 FileProvider 配置至 AndroidManifest 3.自动 添加以下权限

ios添加权限

  • ios/Runner/Info.plist 添加权限
    <key>NSCameraUsageDescription</key>    
    <string>请允许打开相机拍照</string>
    <key>NSLocationWhenInUseUsageDescription</key>
	<string>通过您的地理位置信息获取您周边的相关数据</string>
	<key>NSPhotoLibraryAddUsageDescription</key>
	<string>请允许访问相册以选取照片</string>
	<key>NSPhotoLibraryUsageDescription</key>
	<string>请允许访问相册以选取照片</string>
	<key>NSFileProviderDomainUsageDescription</key>
	<string>是否允许此App使用你的相机进行拍照?</string>
    <key>io.flutter.embedded_views_preview</key>
    <true/>

3.获取手机硬件信息 (app信息,设备信息)

4.键盘状态监听

    @override
    void initState() {
      super.initState();
      keyboardListener((bool visibility) {
        log(visibility);
        showToast(visibility ? '键盘已弹出' : '键盘已关闭');
      });
    }

About

集成部分原生功能,支持ios&android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 54.9%
  • Kotlin 26.9%
  • C 12.2%
  • CMake 3.7%
  • Ruby 1.6%
  • Shell 0.7%