opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-18 11:24:46 +08:00
parent a252ee0655
commit f42a6200ed
22 changed files with 87 additions and 164 deletions

View File

@@ -11,7 +11,7 @@ import 'package:get/get.dart';
class BlackListController
extends CommonListController<BlackListDataModel, BlackListItem> {
int pageSize = 50;
RxInt total = 0.obs;
RxInt total = (-1).obs;
@override
void onInit() {

View File

@@ -34,7 +34,8 @@ class _BlackListPageState extends State<BlackListPage> {
return Scaffold(
appBar: AppBar(
title: Obx(
() => Text('黑名单管理: ${_blackListController.total.value}'),
() => Text(
'黑名单管理${_blackListController.total.value == -1 ? '' : ': ${_blackListController.total.value}'}'),
),
),
body: refreshIndicator(