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

@@ -268,7 +268,11 @@ class _BottomBarState extends State<_BottomBar> {
color: ColorScheme.of(context).secondaryContainer,
child: GestureDetector(
onTap: () => context.to(() =>
UserInfoPage(widget.illust.author.id.toString())),
UserInfoPage(
widget.illust.author.id.toString(),
followCallback: (b) => setState(() {
widget.illust.author.isFollowed = b;
}),)),
child: AnimatedImage(
image: CachedImageProvider(widget.illust.author.avatar),
width: 40,