Navaron Bracke
Committed by GitHub

Merge pull request #1186 from IanVS/example-buttons

fix: clean up example button widgets
@@ -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,9 +167,15 @@ class ToggleFlashlightButton extends StatelessWidget { @@ -166,9 +167,15 @@ 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, 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 + ),
  178 + ),
172 ); 179 );
173 } 180 }
174 }, 181 },