Showing
1 changed file
with
2 additions
and
4 deletions
| @@ -167,15 +167,13 @@ class ToggleFlashlightButton extends StatelessWidget { | @@ -167,15 +167,13 @@ class ToggleFlashlightButton extends StatelessWidget { | ||
| 167 | }, | 167 | }, |
| 168 | ); | 168 | ); |
| 169 | case TorchState.unavailable: | 169 | case TorchState.unavailable: |
| 170 | - return const SizedBox( | ||
| 171 | - width: 48.0, | ||
| 172 | - child: Center( | 170 | + return const SizedBox.square( |
| 171 | + dimension: 48.0, | ||
| 173 | child: Icon( | 172 | child: Icon( |
| 174 | Icons.no_flash, | 173 | Icons.no_flash, |
| 175 | size: 32.0, | 174 | size: 32.0, |
| 176 | color: Colors.grey, | 175 | color: Colors.grey, |
| 177 | ), | 176 | ), |
| 178 | - ), | ||
| 179 | ); | 177 | ); |
| 180 | } | 178 | } |
| 181 | }, | 179 | }, |
-
Please register or login to post a comment