Skip to content

Commit

Permalink
Merge pull request #1186 from IanVS/example-buttons
Browse files Browse the repository at this point in the history
fix: clean up example button widgets
  • Loading branch information
navaronbracke authored Sep 23, 2024
2 parents c3271f0 + aaa3cf1 commit 58dfefe
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions example/lib/scanner_button_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class SwitchCameraButton extends StatelessWidget {
}

return IconButton(
color: Colors.white,
iconSize: 32.0,
icon: icon,
onPressed: () async {
Expand Down Expand Up @@ -166,9 +167,15 @@ class ToggleFlashlightButton extends StatelessWidget {
},
);
case TorchState.unavailable:
return const Icon(
Icons.no_flash,
color: Colors.grey,
return const SizedBox(
width: 48.0,
child: Center(
child: Icon(
Icons.no_flash,
size: 32.0,
color: Colors.grey,
),
),
);
}
},
Expand Down

0 comments on commit 58dfefe

Please sign in to comment.