mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
@@ -119,7 +119,7 @@ class _FollowChildPageState extends State<FollowChildPage>
|
||||
item: item,
|
||||
isOwner: widget.controller?.isOwner,
|
||||
onSelect: widget.onSelect,
|
||||
callback: (attr) {
|
||||
afterMod: (attr) {
|
||||
item.attribute = attr == 0 ? -1 : 0;
|
||||
_followController.loadingState.refresh();
|
||||
},
|
||||
|
||||
@@ -9,13 +9,13 @@ import 'package:get/get.dart';
|
||||
class FollowItem extends StatelessWidget {
|
||||
final FollowItemModel item;
|
||||
final bool? isOwner;
|
||||
final ValueChanged? callback;
|
||||
final ValueChanged? afterMod;
|
||||
final ValueChanged<UserModel>? onSelect;
|
||||
|
||||
const FollowItem({
|
||||
super.key,
|
||||
required this.item,
|
||||
this.callback,
|
||||
this.afterMod,
|
||||
this.isOwner,
|
||||
this.onSelect,
|
||||
});
|
||||
@@ -85,7 +85,7 @@ class FollowItem extends StatelessWidget {
|
||||
context: context,
|
||||
mid: item.mid,
|
||||
isFollow: item.attribute != -1,
|
||||
callback: callback,
|
||||
afterMod: afterMod,
|
||||
),
|
||||
style: FilledButton.styleFrom(
|
||||
visualDensity: .compact,
|
||||
|
||||
Reference in New Issue
Block a user