Ian VanSchooten

Constrain torch unavailable example icon

@@ -167,14 +167,12 @@ class ToggleFlashlightButton extends StatelessWidget { @@ -167,14 +167,12 @@ 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(  
173 - child: Icon(  
174 - Icons.no_flash,  
175 - size: 32.0,  
176 - color: Colors.grey,  
177 - ), 170 + return const SizedBox.square(
  171 + dimension: 48.0,
  172 + child: Icon(
  173 + Icons.no_flash,
  174 + size: 32.0,
  175 + color: Colors.grey,
178 ), 176 ),
179 ); 177 );
180 } 178 }