mod: 代码整理

This commit is contained in:
guozhigq
2023-07-25 23:44:09 +08:00
parent 6d9f66c420
commit 7745ea076b
74 changed files with 387 additions and 424 deletions

View File

@ -44,7 +44,11 @@ class _FansPageState extends State<FansPage> {
elevation: 0,
scrolledUnderElevation: 0,
centerTitle: false,
title: const Text('我的粉丝'),
titleSpacing: 0,
title: Text(
'我的粉丝',
style: Theme.of(context).textTheme.titleMedium,
),
),
body: RefreshIndicator(
onRefresh: () async => await _fansController.queryFans('init'),
@ -57,7 +61,7 @@ class _FansPageState extends State<FansPage> {
List<FansItemModel> list = _fansController.fansList;
return Obx(
() => list.length == 1
? SizedBox()
? const SizedBox()
: ListView.builder(
controller: scrollController,
itemCount: list.length,
@ -74,7 +78,7 @@ class _FansPageState extends State<FansPage> {
}
} else {
// 骨架屏
return SizedBox();
return const SizedBox();
}
},
),