9 lines
288 B
Dart
9 lines
288 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:wechat_assets_picker/wechat_assets_picker.dart';
|
|
|
|
void pickAssets(context) async {
|
|
final List<AssetEntity>? result = await AssetPicker.pickAssets(context, pickerConfig: AssetPickerConfig(
|
|
maxAssets: 1,
|
|
));
|
|
print(result);
|
|
} |