mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt forwarded dyn pic
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -268,14 +268,24 @@ TextSpan? richNode(
|
|||||||
style: style,
|
style: style,
|
||||||
recognizer: TapGestureRecognizer()
|
recognizer: TapGestureRecognizer()
|
||||||
..onTap = () {
|
..onTap = () {
|
||||||
|
void onView(List<OpusPicModel> list) {
|
||||||
|
Get.context!.imageView(
|
||||||
|
imgList: list
|
||||||
|
.map((e) => SourceModel(url: e.src!))
|
||||||
|
.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i.pics?.isNotEmpty == true) {
|
||||||
|
onView(i.pics!);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
DynamicsHttp.dynPic(i.rid).then((res) {
|
DynamicsHttp.dynPic(i.rid).then((res) {
|
||||||
if (res.isSuccess) {
|
if (res.isSuccess) {
|
||||||
var list = res.data;
|
var list = res.data;
|
||||||
|
i.pics = list;
|
||||||
if (list?.isNotEmpty == true) {
|
if (list?.isNotEmpty == true) {
|
||||||
Get.context!.imageView(
|
onView(list!);
|
||||||
imgList: list!
|
|
||||||
.map((e) => SourceModel(url: e.src!))
|
|
||||||
.toList());
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
res.toast();
|
res.toast();
|
||||||
|
|||||||
Reference in New Issue
Block a user