发现页面

This commit is contained in:
2022-10-27 10:43:44 +08:00
parent 93f41b091f
commit aa30a11af2
6 changed files with 31 additions and 24 deletions

View File

@@ -34,6 +34,7 @@ class _UserInfoPageState extends State<UserInfoPage> {
Get.context!,
pickerConfig: const AssetPickerConfig(
maxAssets: 1,
textDelegate: AssetPickerTextDelegate(),
requestType: RequestType.image,
),
);
@@ -77,12 +78,12 @@ class _UserInfoPageState extends State<UserInfoPage> {
sourcePath: imagePath,
maxHeight: 128,
maxWidth: 128,
compressQuality: 70,
compressQuality: 100,
aspectRatio: const CropAspectRatio(
ratioX: 1,
ratioY: 1,
),
compressFormat: ImageCompressFormat.png,
compressFormat: ImageCompressFormat.jpg,
uiSettings: [
IOSUiSettings(
title: '头像剪裁',