From 3e34b6904482e70f913a875ac8c3e00eeddecd8a Mon Sep 17 00:00:00 2001 From: CpedniyNikon <50595311+CpedniyNikon@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:45:13 +0300 Subject: [PATCH] fixed example error (#995) --- mobx_examples/lib/dice/dice_widgets.dart | 36 +++++++++++++----------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/mobx_examples/lib/dice/dice_widgets.dart b/mobx_examples/lib/dice/dice_widgets.dart index 4fc9c2a67..c0ff7ed0c 100644 --- a/mobx_examples/lib/dice/dice_widgets.dart +++ b/mobx_examples/lib/dice/dice_widgets.dart @@ -41,27 +41,29 @@ class DiceView extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Row( - children: [ - Expanded( - child: TextButton( - onPressed: diceCounter.roll, - child: Observer( - builder: (_) => - Image.asset('images/dice${diceCounter.left}.png'), + Expanded( + child: Row( + children: [ + Expanded( + child: TextButton( + onPressed: diceCounter.roll, + child: Observer( + builder: (_) => + Image.asset('images/dice${diceCounter.left}.png'), + ), ), ), - ), - Expanded( - child: TextButton( - onPressed: diceCounter.roll, - child: Observer( - builder: (_) => - Image.asset('images/dice${diceCounter.right}.png'), + Expanded( + child: TextButton( + onPressed: diceCounter.roll, + child: Observer( + builder: (_) => + Image.asset('images/dice${diceCounter.right}.png'), + ), ), ), - ), - ], + ], + ), ), Padding( padding: const EdgeInsets.all(16),