image_select 0.0.2
image_select: ^0.0.2 copied to clipboard
Pick images from device gallery and camera. Alternate of image_picker
The Image Select Maestro πβ¨ #
Welcome to the magical realm of the Image Picker Maestro! π©β¨ This Flutter wizardry is crafted with the combined enchantments of two spellbinding plugins: image_picker and camera.
Ditch the dull and crash-prone experiences, for our Image Selector plugin guarantees a smooth journey across all devices without a single hiccup!
Installation Magic πͺ #
Simply sprinkle the magic potion into your pubspec.yaml file, and behold the wonders of image_select. Tap here to cast the spell!
Android Incantation π€ #
No need for extra runes or secret scrolls. Android bows before the power of this enchantment with no extra configurations needed.
Example Spellcasting πͺ #
import 'package:flutter/material.dart';
import 'package:image_select/image_select.dart';
File? file;
CameraUiSettings cameraUiSettings = CameraUiSettings(
appbarColor: Colors.teal,
iconTheme: const IconThemeData(color: Colors.white),
title: 'Shoot the Image π·',
textStyle: const TextStyle(
color: Colors.white,
),
);
pickImage(ImageFrom source) async {
ImageSelect imageSelect = ImageSelect(cameraUiSettings: cameraUiSettings);
await imageSelect.pickImage(context: context, source: source).then((pickedFile) {
if (pickedFile != null) {
setState(() {
file = pickedFile;
});
Navigator.pop(context);
}
});
}