mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 02:00:13 +08:00
@@ -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)),
|
||||
),
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user