Aucune description
cjl_macbook ccc50c96e2 增加了给预览页面增加了确定按钮 il y a 6 ans
example 增加了给预览页面增加了确定按钮 il y a 6 ans
lib 增加了给预览页面增加了确定按钮 il y a 6 ans
test first commit il y a 6 ans
.gitignore 未被纳入管理的文件 il y a 6 ans
CHANGELOG.md first commit il y a 6 ans
LICENSE Update LICENSE il y a 6 ans
README.md 修改了example il y a 6 ans
pubspec.lock 完善了预览页面的选择逻辑和大图显示逻辑 il y a 6 ans
pubspec.yaml 完善了预览页面的选择逻辑和大图显示逻辑 il y a 6 ans

README.md

photo

内测中

install

dependencies:

  photo:
    git: https://github.com/CaiJingLong/flutter_photo
    ref: 5affef481c63a314333b40b4f26e1dc689c15c00 # 这里的ref看情况修改也可

import

import 'package:photo/photo.dart';
import 'package:photo_manager/photo_manager.dart';

调用

void _pickImage() async{
    List<ImageEntity> imgList = await PhotoPicker.pickImage(
      context: context,
      themeColor: Colors.green,
      padding: 5.0,
      dividerColor: Colors.deepOrange,
      disableColor: Colors.grey.shade300,
      itemRadio: 0.88,
    );

    print(imgList);
  }