|
|
7 vuotta sitten | |
|---|---|---|
| example | 7 vuotta sitten | |
| lib | 7 vuotta sitten | |
| test | 7 vuotta sitten | |
| .gitignore | 7 vuotta sitten | |
| CHANGELOG.md | 7 vuotta sitten | |
| LICENSE | 7 vuotta sitten | |
| README.md | 7 vuotta sitten | |
| pubspec.lock | 7 vuotta sitten | |
| pubspec.yaml | 7 vuotta sitten |
image picker, multi picker use flutter as ui
if you want to build custom ui, you just need api to make custom ui. to use photo_manager
dependencies:
photo: ^0.0.1
import 'package:photo/photo.dart';
import 'package:photo_manager/photo_manager.dart';
void _pickImage() async{
void _pickImage() async {
List<ImageEntity> imgList = await PhotoPicker.pickImage(
context: context, // BuildContext requied
/// The following are optional parameters.
themeColor: Colors.green, // the title color and bottom color
padding: 5.0, // item padding
dividerColor: Colors.deepOrange, // divider color
disableColor: Colors.grey.shade300, // the check box disable color
itemRadio: 0.88, // the content item radio
maxSelected: 8, // max picker image count
provider: CNProvider(), // i18n provider ,default is chinese.
rowCount: 5, // item row count
textColor: Colors.white, // text color
);
imgList.forEach((e) async {
print(e.id);
});
}