opt account

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-10 11:42:50 +08:00
parent 5f77a8aa19
commit 4c758bb1a3
51 changed files with 342 additions and 299 deletions

View File

@@ -45,7 +45,7 @@ class _DynTopicPageState extends State<DynTopicPage> {
resizeToAvoidBottomInset: false,
floatingActionButton: FloatingActionButton.extended(
onPressed: () {
if (_controller.isLogin) {
if (_controller.accountService.isLogin.value) {
CreateDynPanel.onCreateDyn(
context,
topic: Pair(
@@ -304,7 +304,7 @@ class _DynTopicPageState extends State<DynTopicPage> {
PopupMenuItem(
child: const Text('举报'),
onTap: () {
if (!_controller.isLogin) {
if (!_controller.accountService.isLogin.value) {
SmartDialog.showToast('账号未登录');
return;
}