Repository: flutter
Issue: BoxDecoration backgroundBlendMode Bug on Android Devices
Labels: platform-android,framework,has reproducible steps,P2,found in release: 3.10,found in release: 3.12,team-android,triaged-android

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Create a new Flutter project.
2. Copy/Paste Code Sample.
3. Remove/Add Widgets I mentioned.

### Expected results

The `backgroundBlendMode: BlendMode.overlay` should be rendered correctly no matter what platform the app is running on or which combination of Widgets I use.

### Actual results

If I use a specific combination of widgets the `backgroundBlendMode: BlendMode.overlay` doesn't render correctly on Android devices.

If I remove one of the 4 widgets in my code sample, the error goes away:

Line 21:
`AppCard(child: SvgPicture.asset('asset/flutter_logo.svg'))` -> `AppCard(child: Container())`

Line 25:
Remove the ListView and just use `const CircularProgressIndicator(strokeWidth: 3.0)`

Line 26:
`const CircularProgressIndicator(strokeWidth: 3.0)` -> `Container()`

Line 50:
Remove the `Opacity` widget.

What I want to mention as well: If you wrap the `Column` inside a `SingleChildScrollView` and adding `shrinkWrap: true, primary: false` to the ListView, the `backgroundBlendMode: BlendMode.overlay` is rendered correctly while scrolling. (you need to add more widget to be able to scroll the content)

I tested on both, real device and emulator. (same result)

### Code sample

<details><summary>Complete App to reproduce</summary>

Link to the used flutter_logo.svg:
https://raw.githubusercontent.com/dnfield/flutter_svg/7d374d7107561cbd906d7c0ca26fef02cc01e7c8/example/assets/flutter_logo.svg

With Pub:
flutter_svg: ^2.0.6

```dart
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            AppCard(child: Container()),
            const SizedBox(height: 10),
            AppCard(child: SvgPicture.asset('assets/flutter_logo.svg')),
            const SizedBox(height: 10),
            SizedBox(
              height: 300,
              child: ListView.separated(
                itemBuilder: (context, index) => const CircularProgressIndicator(strokeWidth: 3.0),
                separatorBuilder: (context, index) => const SizedBox(height: 10),
                itemCount: 1,
              ),
            ),
          ],
        ),
      ),
    );
  }
}

class AppCard extends StatelessWidget {
  const AppCard({super.key, required this.child});

  final Widget child;

  @override
  Widget build(BuildContext context) {
    return Card(
      child: SizedBox(
        height: 200,
        child: Stack(
          children: [
            Opacity(
              opacity: 0.9,
              child: Container(
                height: 200,
                width: double.infinity,
                color: Colors.amber,
              ),
            ),
            Positioned.fill(
              child: Container(
                decoration: const BoxDecoration(
                  color: Colors.black,
                  backgroundBlendMode: BlendMode.overlay,
                ),
              ),
            ),
            child,
          ],
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Result on iOS/Android</summary>

<img width="730" alt="Bildschirmfoto 2023-06-09 um 18 14 30" src="https://github.com/flutter/flutter/assets/26045175/496f3316-bdf0-4aa7-9a8f-b5ca49340254">

</details>


### Logs

_No response_

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
flutter doctor -v
[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3.1 22E772610a darwin-arm64, locale de-DE)
    • Flutter version 3.10.2 on channel stable at /Users/.../Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (2 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/.../Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 13 (API 33) (emulator)
    • LQ7FJTW5VJ (mobile)         • 00008110-001408C01183401E            • ios            • iOS 16.5 20F66
    • iPhone 14 (mobile)          • 5DD566B4-10F5-4B28-A4B8-97E431EBDD15 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 13.3.1 22E772610a darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 114.0.5735.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

```

</details>