mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: err string
fix: typo Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -72,6 +72,6 @@ class Error extends LoadingState<Never> {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ApiException: $errMsg';
|
||||
return errMsg ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class ContactPage extends StatefulWidget {
|
||||
const ContactPage({super.key, this.isFromSelct = true});
|
||||
const ContactPage({super.key, this.isFromSelect = true});
|
||||
|
||||
final bool isFromSelct;
|
||||
final bool isFromSelect;
|
||||
|
||||
@override
|
||||
State<ContactPage> createState() => _ContactPageState();
|
||||
@@ -49,7 +49,7 @@ class _ContactPageState extends State<ContactPage>
|
||||
UserModel? userModel = await Get.dialog(
|
||||
FollowSearchPage(
|
||||
mid: mid,
|
||||
isFromSelct: widget.isFromSelct,
|
||||
isFromSelect: widget.isFromSelect,
|
||||
),
|
||||
useSafeArea: false,
|
||||
transitionDuration: const Duration(milliseconds: 120),
|
||||
@@ -68,11 +68,11 @@ class _ContactPageState extends State<ContactPage>
|
||||
children: [
|
||||
FollowChildPage(
|
||||
mid: mid,
|
||||
onSelect: widget.isFromSelct ? onSelect : null,
|
||||
onSelect: widget.isFromSelect ? onSelect : null,
|
||||
),
|
||||
FansPage(
|
||||
mid: mid,
|
||||
onSelect: widget.isFromSelct ? onSelect : null,
|
||||
onSelect: widget.isFromSelect ? onSelect : null,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -10,11 +10,11 @@ class FollowSearchPage extends CommonSearchPage {
|
||||
const FollowSearchPage({
|
||||
super.key,
|
||||
this.mid,
|
||||
this.isFromSelct,
|
||||
this.isFromSelect,
|
||||
});
|
||||
|
||||
final int? mid;
|
||||
final bool? isFromSelct;
|
||||
final bool? isFromSelect;
|
||||
|
||||
@override
|
||||
State<FollowSearchPage> createState() => _FollowSearchPageState();
|
||||
@@ -42,7 +42,7 @@ class _FollowSearchPageState extends CommonSearchPageState<FollowSearchPage,
|
||||
}
|
||||
return FollowItem(
|
||||
item: list[index],
|
||||
onSelect: widget.mid != null && widget.isFromSelct != false
|
||||
onSelect: widget.mid != null && widget.isFromSelect != false
|
||||
? (userModel) {
|
||||
Get.back(result: userModel);
|
||||
}
|
||||
|
||||
@@ -180,9 +180,9 @@ extension ThreeDotItemTypeExt on ThreeDotItemType {
|
||||
},
|
||||
);
|
||||
case ThreeDotItemType.THREE_DOT_ITEM_TYPE_CONTACTS:
|
||||
Get.to(const ContactPage(isFromSelct: false));
|
||||
Get.to(const ContactPage(isFromSelect: false));
|
||||
default:
|
||||
SmartDialog.showToast(name);
|
||||
SmartDialog.showToast('TODO: $name');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user