Skip to content

Commit

Permalink
fixed example error (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
CpedniyNikon committed Apr 29, 2024
1 parent 468e490 commit 3e34b69
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions mobx_examples/lib/dice/dice_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,29 @@ class DiceView extends StatelessWidget {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
children: <Widget>[
Expanded(
child: TextButton(
onPressed: diceCounter.roll,
child: Observer(
builder: (_) =>
Image.asset('images/dice${diceCounter.left}.png'),
Expanded(
child: Row(
children: <Widget>[
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),
Expand Down

0 comments on commit 3e34b69

Please sign in to comment.