0 purchases
wa flutter photo picker
wa_flutter_photo_picker #
Flutter plugin for selecting images from the WA Android gallery.
Getting Started #
To add a plugin to a project, consider following options:
add plugin as source project
add plugin as git repository
To add plugin as source project clone it:
git clone [email protected]:waveaccessllc/wa-flutter-photo-picker.git
copied to clipboard
add a dependency by specifying the path to the plugin project in pubspec.yaml:
wa_flutter_photo_picker:
path: ../wa_flutter_photo_picker/
copied to clipboard
To add plugin as git repository simply register it in pubspec.yaml:
wa_flutter_photo_picker:
git:
url: [email protected]:waveaccessllc/wa-flutter-photo-picker.git
ref: master # optional property, here you can specify tag or branch
copied to clipboard
Usage #
Plugin uses Android Gallery library from Nexus WaveAccess repository as a dependency.
To authorize in the Nexus repository, add the following code to the android/build.gradle:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def nexusUser = localProperties.getProperty('nexusUser')
def nexusPassword = localProperties.getProperty('nexusPassword')
repositories {
maven {
url 'https://nexus-mobile.wavea.cc/repository/maven-releases/'
credentials {
username nexusUser ? nexusUser : System.getenv("NEXUS_USER")
password nexusPassword ? nexusPassword : System.getenv("NEXUS_PASSWD")
}
}
}
copied to clipboard
To get image(s) from gallery call pickImage() method and pass it a PhotoPickerConfiguration
with optional parameters.
For usage details see the example project.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.