mod: err string

fix: typo

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-11 15:01:05 +08:00
parent 72734d4b4e
commit 4a782332d3
4 changed files with 11 additions and 11 deletions

View File

@@ -72,6 +72,6 @@ class Error extends LoadingState<Never> {
@override @override
String toString() { String toString() {
return 'ApiException: $errMsg'; return errMsg ?? '';
} }
} }

View File

@@ -8,9 +8,9 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
class ContactPage extends StatefulWidget { 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 @override
State<ContactPage> createState() => _ContactPageState(); State<ContactPage> createState() => _ContactPageState();
@@ -49,7 +49,7 @@ class _ContactPageState extends State<ContactPage>
UserModel? userModel = await Get.dialog( UserModel? userModel = await Get.dialog(
FollowSearchPage( FollowSearchPage(
mid: mid, mid: mid,
isFromSelct: widget.isFromSelct, isFromSelect: widget.isFromSelect,
), ),
useSafeArea: false, useSafeArea: false,
transitionDuration: const Duration(milliseconds: 120), transitionDuration: const Duration(milliseconds: 120),
@@ -68,11 +68,11 @@ class _ContactPageState extends State<ContactPage>
children: [ children: [
FollowChildPage( FollowChildPage(
mid: mid, mid: mid,
onSelect: widget.isFromSelct ? onSelect : null, onSelect: widget.isFromSelect ? onSelect : null,
), ),
FansPage( FansPage(
mid: mid, mid: mid,
onSelect: widget.isFromSelct ? onSelect : null, onSelect: widget.isFromSelect ? onSelect : null,
), ),
], ],
), ),

View File

@@ -10,11 +10,11 @@ class FollowSearchPage extends CommonSearchPage {
const FollowSearchPage({ const FollowSearchPage({
super.key, super.key,
this.mid, this.mid,
this.isFromSelct, this.isFromSelect,
}); });
final int? mid; final int? mid;
final bool? isFromSelct; final bool? isFromSelect;
@override @override
State<FollowSearchPage> createState() => _FollowSearchPageState(); State<FollowSearchPage> createState() => _FollowSearchPageState();
@@ -42,7 +42,7 @@ class _FollowSearchPageState extends CommonSearchPageState<FollowSearchPage,
} }
return FollowItem( return FollowItem(
item: list[index], item: list[index],
onSelect: widget.mid != null && widget.isFromSelct != false onSelect: widget.mid != null && widget.isFromSelect != false
? (userModel) { ? (userModel) {
Get.back(result: userModel); Get.back(result: userModel);
} }

View File

@@ -180,9 +180,9 @@ extension ThreeDotItemTypeExt on ThreeDotItemType {
}, },
); );
case ThreeDotItemType.THREE_DOT_ITEM_TYPE_CONTACTS: case ThreeDotItemType.THREE_DOT_ITEM_TYPE_CONTACTS:
Get.to(const ContactPage(isFromSelct: false)); Get.to(const ContactPage(isFromSelect: false));
default: default:
SmartDialog.showToast(name); SmartDialog.showToast('TODO: $name');
} }
} }
} }