Skip to content

Commit

Permalink
Refactor ImgyState to use RepaintBoundary for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
carllosnc committed Jan 4, 2024
1 parent 3983c76 commit 82b8dd1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/imgy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,14 @@ class ImgyState extends State<Imgy> {
builder: (BuildContext context, StateSetter setState) {
return Stack(
children: [
ImgyFullScreen(widget: widget),
Positioned.fill(
child: RepaintBoundary(
key: globalKey,
child: ImgyFullScreen(
widget: widget,
),
),
),
ImgyHeader(
widget: widget,
status: imageStatus,
Expand Down

0 comments on commit 82b8dd1

Please sign in to comment.