follow in user info page

This commit is contained in:
wgh19
2024-05-13 20:33:51 +08:00
parent b4cff946aa
commit 10357ac9d0
4 changed files with 59 additions and 5 deletions

View File

@@ -70,7 +70,11 @@ class _UserPreviewWidgetState extends State<UserPreviewWidget> {
Row(
children: [
Button(
onPressed: () => context.to(() => UserInfoPage(widget.user.id.toString())),
onPressed: () => context.to(() => UserInfoPage(widget.user.id.toString(), followCallback: (v){
setState(() {
widget.user.isFollowed = v;
});
},)),
child: Text("View".tl,),
),
const SizedBox(width: 8,),