mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 07:06:14 +08:00
committed by
GitHub
parent
e2639b6951
commit
170b2aa6d9
@@ -19,6 +19,11 @@ extension ImageExtension on num? {
|
||||
}
|
||||
}
|
||||
|
||||
extension IntExt on int? {
|
||||
int? operator +(int other) => this == null ? null : this! + other;
|
||||
int? operator -(int other) => this == null ? null : this! - other;
|
||||
}
|
||||
|
||||
extension ScrollControllerExt on ScrollController {
|
||||
void animToTop() {
|
||||
if (!hasClients) return;
|
||||
|
||||
@@ -158,7 +158,7 @@ class RequestUtils {
|
||||
dense: true,
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
var result = await showModalBottomSheet<List?>(
|
||||
var result = await showModalBottomSheet<Set<int>>(
|
||||
context: context,
|
||||
useSafeArea: true,
|
||||
isScrollControlled: true,
|
||||
@@ -190,7 +190,7 @@ class RequestUtils {
|
||||
);
|
||||
},
|
||||
);
|
||||
followStatus!['tag'] = result;
|
||||
followStatus!['tag'] = result?.toList();
|
||||
if (result != null) {
|
||||
callback?.call(result.contains(-10) ? -10 : 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user