Repository: flutter
Issue: [camera] [android] Front camera not flashing screen when flash is turned on.
Labels: platform-android,p: camera,package,has reproducible steps,P3,found in release: 3.3,found in release: 3.5,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Description

Using the front camera on iOS with flash works as expected - the screen flashes white color.
The same approach on android with the package just takes a photo without flashing the screen. At the same time using the device's camera flashes the screen as on iOS.


## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->
I noticed this in a private project, but it is easy to replicate in the [camera example](https://github.com/flutter/plugins/tree/main/packages/camera/camera/example).

Setup:

- Flutter 3.3.3
- camera: 0.10.0+1

1. Select front camera
2. Turn the flash to always on
3. Take a picture

**Expected results:** <!-- what did you want to see? -->
The screen should flash white

**Actual results:** <!-- what did you see? -->
No screen flash

Tested on iPhone 8(iOS 15.4), Google Pixel 5 (android 13), Samsung Galaxy S9+ (android 10)

<details>
  <summary>Logs</summary>


<!-- Finally, paste the output of running `flutter doctor -v` here. -->
```
flutter doctor -v                      14:29:14
[✓] Flutter (Channel stable, 3.3.3, on macOS 12.6
    21G115 darwin-x64, locale uk-UA)
    • Flutter version 3.3.3 on channel stable at
      /Users/zaliskyi/flutter
    • Upstream repository
      https://github.com/flutter/flutter.git
    • Framework revision 18a827f393 (7 days ago),
      2022-09-28 10:03:14 -0700
    • Engine revision 5c984c26eb
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android
    devices (Android SDK version 33.0.0-rc3)
    • Android SDK at
      /Users/zaliskyi/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/ja
      va
    • Java version OpenJDK Runtime Environment
      (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode
    14.0.1)
    • Xcode at
      /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google
      Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨
      https://plugins.jetbrains.com/plugin/9212-fl
      utter
    • Dart plugin can be installed from:
      🔨
      https://plugins.jetbrains.com/plugin/6351-da
      rt
    • Java version OpenJDK Runtime Environment
      (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.71.2)
    • VS Code at /Applications/Visual Studio
      Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (5 available)
    • Pixel 5 (mobile)  • 0A201FDD4005N1
      • android-arm64  • Android 13 (API 33)
    • ART L29 (mobile)  • DUJNW20526002155
      • android-arm64  • Android 10 (API 29)
    • iPhone 8 (mobile) •
      44CA9E5A-AF87-439E-8065-865706CAA84B • ios
      •
      com.apple.CoreSimulator.SimRuntime.iOS-16-0
      (simulator)
    • macOS (desktop)   • macos
      • darwin-x64     • macOS 12.6 21G115
      darwin-x64
    • Chrome (web)      • chrome
      • web-javascript • Google Chrome
      106.0.5249.91
    ! Error: iPad Oleksandr is busy: Waiting to
      connect and unlock the device. Xcode will
      continue when iPad Oleksandr is finished.
      (code -10)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->