Skip to content

Commit

Permalink
imp: update example app
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Feb 17, 2022
1 parent 95a8f8f commit d1545a6
Show file tree
Hide file tree
Showing 2 changed files with 209 additions and 206 deletions.
9 changes: 5 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ class _AnalyzeViewState extends State<AnalyzeView>
icon: ValueListenableBuilder(
valueListenable: controller.cameraFacingState,
builder: (context, state, child) {
if (state == CameraFacing.front) {
return const Icon(Icons.camera_front);
} else {
return const Icon(Icons.camera_rear);
switch (state as CameraFacing) {
case CameraFacing.front:
return const Icon(Icons.camera_front);
case CameraFacing.back:
return const Icon(Icons.camera_rear);
}
},
),
Expand Down
Loading

0 comments on commit d1545a6

Please sign in to comment.