Skip to content

Commit

Permalink
Fix layout jank when scrolling back up to post body (#1660)
Browse files Browse the repository at this point in the history
fix: fix layout jank when scrolling back up to post body
  • Loading branch information
hjiangsu authored Jan 24, 2025
1 parent 8d14cfb commit b60ae91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/post/widgets/post_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ class PostSubview extends StatefulWidget {
State<PostSubview> createState() => _PostSubviewState();
}

class _PostSubviewState extends State<PostSubview> with SingleTickerProviderStateMixin {
class _PostSubviewState extends State<PostSubview> with SingleTickerProviderStateMixin, AutomaticKeepAliveClientMixin {
@override
bool get wantKeepAlive => true;

final ExpandableController expandableController = ExpandableController(initialExpanded: true);
late PostViewMedia postViewMedia;
final FocusNode _selectableRegionFocusNode = FocusNode();
Expand Down

0 comments on commit b60ae91

Please sign in to comment.