Skip to content

Commit

Permalink
Fix child sizing in blurred background images.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Jan 16, 2025
1 parent bea8a4f commit 4279019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/screens/blurred_player_screen_background.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ class RenderCachePaint extends RenderProxyBox {

static final Map<int, (List<RenderCachePaint>, ui.Image?)> _cache = {};

@override
void performLayout() {
child?.layout(BoxConstraints.tightFor(
width: _screenSize.width, height: _screenSize.height));
size = constraints.biggest;
return;
}

@override
bool get isRepaintBoundary => true;

Expand Down

0 comments on commit 4279019

Please sign in to comment.