Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -45,14 +45,12 @@ class _FollowChildPageState extends State<FollowChildPage>
backgroundColor: Colors.transparent,
body: _child,
floatingActionButton: FloatingActionButton.extended(
onPressed: () {
_followController
..orderType.value =
_followController.orderType.value == FollowOrderType.def
? FollowOrderType.attention
: FollowOrderType.def
..onReload();
},
onPressed: () => _followController
..orderType.value =
_followController.orderType.value == FollowOrderType.def
? FollowOrderType.attention
: FollowOrderType.def
..onReload(),
icon: const Icon(Icons.format_list_bulleted, size: 20),
label: Obx(() => Text(_followController.orderType.value.title)),
),

View File

@@ -97,9 +97,7 @@ class _FollowPageState extends State<FollowPage> {
int? count = item.count;
if (_isCustomTag(item.tagid)) {
return GestureDetector(
onLongPress: () {
_onHandleTag(index, item);
},
onLongPress: () => _onHandleTag(index, item),
child: Tab(
child: Row(
children: [
@@ -200,9 +198,7 @@ class _FollowPageState extends State<FollowPage> {
context: context,
title: '删除分组',
content: '删除后,该分组下的用户依旧保留?',
onConfirm: () {
_followController.onDelTag(item.tagid);
},
onConfirm: () => _followController.onDelTag(item.tagid),
);
},
dense: true,
@@ -232,9 +228,7 @@ class _FollowPageState extends State<FollowPage> {
],
decoration: const InputDecoration(border: OutlineInputBorder()),
),
onConfirm: () {
_followController.onCreateTag(tagName);
},
onConfirm: () => _followController.onCreateTag(tagName),
);
}
}

View File

@@ -91,14 +91,12 @@ class FollowItem extends StatelessWidget {
? SizedBox(
height: 34,
child: FilledButton.tonal(
onPressed: () {
RequestUtils.actionRelationMod(
context: context,
mid: item.mid,
isFollow: item.attribute != -1,
callback: callback,
);
},
onPressed: () => RequestUtils.actionRelationMod(
context: context,
mid: item.mid,
isFollow: item.attribute != -1,
callback: callback,
),
style: FilledButton.styleFrom(
padding: const EdgeInsets.fromLTRB(15, 0, 15, 0),
foregroundColor: