pickImage static method

dynamic pickImage({
  1. dynamic height,
  2. dynamic width,
  3. bool camera = true,
})

add these lines in ios info p list files to capture image in ios

Implementation

/*  <key>NSPhotoLibraryUsageDescription</key>
  <string>App needs access to photo lib for profile images</string>

  <key>NSCameraUsageDescription</key>
  <string>To capture profile photo please grant camera access</string>

 */
  static pickImage({height, width, bool camera = true}) async {
    return await picker.pickImage(
      source: camera ? ImageSource.camera : ImageSource.gallery,
      maxWidth: width ?? 100,
      maxHeight: height ?? 100,
      // imageQuality: b
    );
  }