mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 21:07:24 +00:00
follow in user info page
This commit is contained in:
@@ -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,),
|
||||
|
Reference in New Issue
Block a user