mod: lint

mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-04 11:37:13 +08:00
parent 2cfad80214
commit caa58e9d7d
313 changed files with 2751 additions and 2789 deletions

View File

@@ -82,7 +82,7 @@ class _FollowChildPageState extends State<FollowChildPage>
Loading() => SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) {
return MsgFeedTopSkeleton();
return const MsgFeedTopSkeleton();
},
),
Success() => loadingState.response?.isNotEmpty == true

View File

@@ -33,9 +33,10 @@ class FollowController extends GetxController with GetTickerProviderStateMixin {
Future queryFollowUpTags() async {
var res = await MemberHttp.followUpTags();
if (res['status']) {
tabs.clear();
tabs.addAll(res['data']);
tabs.insert(0, MemberTagItemModel(name: '全部关注'));
tabs
..clear()
..addAll(res['data'])
..insert(0, MemberTagItemModel(name: '全部关注'));
int initialIndex = 0;
if (tabController != null) {
initialIndex = tabController!.index.clamp(0, tabs.length - 1);

View File

@@ -8,7 +8,7 @@ import 'package:PiliPlus/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'controller.dart';
import 'package:PiliPlus/pages/follow/controller.dart';
class FollowPage extends StatefulWidget {
const FollowPage({super.key});
@@ -106,7 +106,7 @@ class _FollowPageState extends State<FollowPage> {
Text(
'${item.name}${count != null ? '($count)' : ''} ',
),
Icon(Icons.menu, size: 18),
const Icon(Icons.menu, size: 18),
],
),
),

View File

@@ -58,7 +58,7 @@ class FollowItem extends StatelessWidget {
Positioned(
bottom: 0,
right: 0,
child: Container(
child: DecoratedBox(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: theme.colorScheme.surface,
@@ -108,7 +108,7 @@ class FollowItem extends StatelessWidget {
),
child: Text(
'${item.attribute == -1 ? '' : ''}关注',
style: TextStyle(fontSize: 12),
style: const TextStyle(fontSize: 12),
),
),
)