fix(ui): fix attachment picker ui
This commit is contained in:
+19
-19
@@ -281,27 +281,27 @@ class _StreamAttachmentPickerState extends State<StreamAttachmentPicker> {
|
|||||||
icon: widget.customAttachmentTypes[i]
|
icon: widget.customAttachmentTypes[i]
|
||||||
.iconBuilder(context, _filePickerIndex == i + 1),
|
.iconBuilder(context, _filePickerIndex == i + 1),
|
||||||
),
|
),
|
||||||
],
|
const Spacer(),
|
||||||
),
|
FutureBuilder(
|
||||||
const Spacer(),
|
future: PhotoManager.requestPermissionExtend(),
|
||||||
FutureBuilder(
|
builder: (context, snapshot) {
|
||||||
future: PhotoManager.requestPermissionExtend(),
|
if (snapshot.hasData &&
|
||||||
builder: (context, snapshot) {
|
snapshot.data == PermissionState.limited) {
|
||||||
if (snapshot.hasData &&
|
return TextButton(
|
||||||
snapshot.data == PermissionState.limited) {
|
child: Text(context.translations.viewLibrary),
|
||||||
return TextButton(
|
onPressed: () async {
|
||||||
child: Text(context.translations.viewLibrary),
|
await PhotoManager.presentLimited();
|
||||||
onPressed: () async {
|
_mediaListViewController.updateMedia(
|
||||||
await PhotoManager.presentLimited();
|
newValue: true,
|
||||||
_mediaListViewController.updateMedia(
|
);
|
||||||
newValue: true,
|
},
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
},
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
DecoratedBox(
|
DecoratedBox(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|||||||
Reference in New Issue
Block a user