Column(
children: [
GameWidget(game: SpaceShooterGame()),
I got following message The following assertion was thrown during performLayout(): RenderConstrainedBox object was given an infinite size during layout.
How to do ?
I try may widget around GameWidget (row ,column ..) none is working
You can use Expanded
widget inside Column
.
Column(
children: [
Expanded(
child: GameWidget(
game: SpaceShooterGame(),
),
),
],
)