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
String toString() {
return 'ApiException: $errMsg';
return errMsg ?? '';
}
}

View File

@@ -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,
),
],
),

View File

@@ -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);
}

View File

@@ -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');
}
}
}