pickFromGallery static method

Future<String?> pickFromGallery()

Pick a photo from the gallery (used by the camera UI when allowed).

Implementation

static Future<String?> pickFromGallery() async {
  final picker = ImagePicker();
  final picked = await picker.pickImage(source: ImageSource.gallery);
  return picked?.path;
}