Showing
1 changed file
with
8 additions
and
4 deletions
| @@ -112,6 +112,7 @@ class SwitchCameraButton extends StatelessWidget { | @@ -112,6 +112,7 @@ class SwitchCameraButton extends StatelessWidget { | ||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | return IconButton( | 114 | return IconButton( |
| 115 | + color: Colors.white, | ||
| 115 | iconSize: 32.0, | 116 | iconSize: 32.0, |
| 116 | icon: icon, | 117 | icon: icon, |
| 117 | onPressed: () async { | 118 | onPressed: () async { |
| @@ -166,10 +167,13 @@ class ToggleFlashlightButton extends StatelessWidget { | @@ -166,10 +167,13 @@ class ToggleFlashlightButton extends StatelessWidget { | ||
| 166 | }, | 167 | }, |
| 167 | ); | 168 | ); |
| 168 | case TorchState.unavailable: | 169 | case TorchState.unavailable: |
| 169 | - return const Icon( | ||
| 170 | - Icons.no_flash, | ||
| 171 | - color: Colors.grey, | ||
| 172 | - ); | 170 | + return const SizedBox( |
| 171 | + width: 48.0, | ||
| 172 | + child: Icon( | ||
| 173 | + Icons.no_flash, | ||
| 174 | + size: 32.0, | ||
| 175 | + color: Colors.grey, | ||
| 176 | + )); | ||
| 173 | } | 177 | } |
| 174 | }, | 178 | }, |
| 175 | ); | 179 | ); |
-
Please register or login to post a comment