Skip to content

Commit

Permalink
remove IntrinsicHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-anders committed Nov 1, 2024
1 parent 04aac3b commit 65783ee
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions lib/src/view/game/game_list_detail_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,20 @@ class GameListDetailTile extends StatelessWidget {
),
child: LayoutBuilder(
builder: (context, constraints) {
return IntrinsicHeight(
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
if (game.lastFen != null)
BoardThumbnail(
size: constraints.maxWidth / 3,
fen: game.lastFen!,
orientation: mySide,
lastMove: game.lastMove,
),
Expanded(
final boardSize = constraints.maxWidth / 3;
return Row(
mainAxisSize: MainAxisSize.max,
children: [
if (game.lastFen != null)
BoardThumbnail(
size: boardSize,
fen: game.lastFen!,
orientation: mySide,
lastMove: game.lastMove,
),
Expanded(
child: SizedBox(
height: boardSize,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
Expand Down Expand Up @@ -137,8 +139,8 @@ class GameListDetailTile extends StatelessWidget {
),
),
),
],
),
),
],
);
},
),
Expand Down

0 comments on commit 65783ee

Please sign in to comment.