Repository: flutter
Issue: Unwanted straight line on the one-sided BorderRadius shadow - mobile device using Web
Labels: engine,platform-web,c: rendering,e: web_html,has reproducible steps,P2,browser: safari-ios,browser: chrome-android,team-web,triaged-web,found in release: 3.13,found in release: 3.14

### 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. Run the sample code on an iPhone in Google Chrome.
2. Observe the shadow looking like the image in the actual results.

### Expected results

We want the shadow to look like this even if we remove only the left radius:

![IMG_2323](https://github.com/flutter/flutter/assets/26356162/e2657b41-047d-42d7-97de-46990ff5e769)


### Actual results

The shadow displays a straight line on the right of the button:
![IMG_2324](https://github.com/flutter/flutter/assets/26356162/584e4210-a396-400a-baae-4ba9bb6aacce)

### Related.

I have another button on the side that is displaying the same strange behaviour in a different fashion:

![IMG_2325](https://github.com/flutter/flutter/assets/26356162/ebfe327a-f675-4959-b41a-5f7387f5ad93)

It looks like this in chrome on desktop:

<img width="108" alt="Screenshot 2023-09-03 at 7 42 16 PM" src="https://github.com/flutter/flutter/assets/26356162/946bb6de-6aed-4dcd-8262-c80e9f5e123b">



### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter/material.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends ConsumerWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(title),
      ),
      body:  Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ElevatedButton(
        style: ButtonStyle(
          elevation: MaterialStateProperty.all(5),
          shape: MaterialStateProperty.all(
            const RoundedRectangleBorder(
                    borderRadius: BorderRadius.horizontal(
                            left: Radius.zero,
                            right: Radius.circular(25),
                          ),),
                  ),
          padding: MaterialStateProperty.all(
            EdgeInsets.zero,
          ),
          minimumSize: MaterialStateProperty.all(
            const Size(
              73,
              25,
            ),
          ),
          tapTargetSize: MaterialTapTargetSize.shrinkWrap,
          overlayColor: MaterialStateProperty.all(
            Colors.transparent,
          ),
        ),
        onPressed: (){},
        child: const Padding(
          padding: EdgeInsets.only(left: 30),
          child: Icon(Icons.add),
        ),
      )
          ],
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

![IMG_2323](https://github.com/flutter/flutter/assets/26356162/151e0de1-5c73-4302-9cdc-f8296b8884d6)
![IMG_2324](https://github.com/flutter/flutter/assets/26356162/a26b7fe8-d282-4172-a618-37576fc511d7)


</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-arm64, locale en-GB)
    • Flutter version 3.10.6 on channel stable at /Users/benjaminfarquhar/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (7 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/benjaminfarquhar/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • 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.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • 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.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (4 available)
    • iPhone 14 (mobile)                           • 71E5AF8A-2773-4755-9075-76FAF35E49A9 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • iPad Pro (11-inch) (4th generation) (mobile) • 943DEA4F-33A9-43AC-A240-B25E5C6A82BA • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)                              • macos                                • darwin-arm64   • macOS 13.4.1 22F770820d darwin-arm64
    • Chrome (web)                                 • chrome                               • web-javascript • Google Chrome 116.0.5845.140

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>