Skip to content

Commit aaa3cf1

Browse files
committed
Wrap icon in Center widget
1 parent efa6f17 commit aaa3cf1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example/lib/scanner_button_widgets.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,15 @@ class ToggleFlashlightButton extends StatelessWidget {
168168
);
169169
case TorchState.unavailable:
170170
return const SizedBox(
171-
width: 48.0,
171+
width: 48.0,
172+
child: Center(
172173
child: Icon(
173174
Icons.no_flash,
174175
size: 32.0,
175176
color: Colors.grey,
176-
));
177+
),
178+
),
179+
);
177180
}
178181
},
179182
);

0 commit comments

Comments
 (0)