songjinwei_plugin

Plugin List ,you can use this plugin to your flutter project, it can help you do somethig, eg:

1, save network image into phone album

2, phone someone

Getting Started

saveImage(String url) async {
    var saveStatus = await SongJinWeiPlugin.saveImage2NativePlugin(url, 'FlutterPlugin');
    print(saveStatus ? 'save success' : 'save error');
    Fluttertoast.showToast(
        msg: saveStatus ? 'save success' : 'save error',
        toastLength: Toast.LENGTH_LONG,
        gravity: ToastGravity.CENTER,
        timeInSecForIos: 1,
        backgroundColor: Colors.grey,
        textColor: Colors.white,
        fontSize: (30));
  }

iOS

Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:

  • NSPhotoLibraryAddUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Additions Usage Description in the visual editor

Android

Add the following keys to your AndroidManifest.xml file:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />

Libraries

songjinwei_plugin