Repository: flutter
Issue: blurStyle property of BoxShadow widget looks weird when used with offset property
Labels: framework,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-framework,triaged-framework

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

Recently added blurStyle property of the BoxShadow widget causes weird looking shadows when used with Offset.


**Expected results:** <!-- what did you want to see? -->
Without setting the blurStyle property, there is no problem:
```
              BoxShadow(
                color: Colors.black54,
                offset: Offset(6.0, 6.0),
                blurRadius: 12.0,
              ),
```
![without_blurStyle](https://user-images.githubusercontent.com/48109156/156194327-398b9542-931b-451a-a530-51dc4eeb1859.png)

**Actual results:** <!-- what did you see? -->
Setting blurStyle property to BlurStyle.outer WITH offset, it looks like this:
```
              BoxShadow(
                color: Colors.black54,
                offset: Offset(6.0, 6.0),
                blurRadius: 12.0,
                blurStyle: BlurStyle.outer,
              ),
```
![blurStyle_with_offset](https://user-images.githubusercontent.com/48109156/156194318-34fdbf8b-c561-4036-8ff4-b9c265bb68c5.png)

Setting blurStyle property to BlurStyle.outer WITHOUT offset, it looks normal:
```
              BoxShadow(
                color: Colors.black54,
                blurRadius: 12.0,
                blurStyle: BlurStyle.outer,
              ),
```
![blurStyle_without_offset](https://user-images.githubusercontent.com/48109156/156194321-3891f754-66fb-4528-ab0b-d204c85ecb6b.png)

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```
import 'package:flutter/material.dart';

class Issue extends StatelessWidget {
  const Issue({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey.shade800,
      body: Center(
        child: Container(
          width: 192.0,
          height: 192.0,
          decoration: const ShapeDecoration(
            color: Color(0xFFE0E0E0),
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.all(
                Radius.circular(20.0),
              ),
            ),
            shadows: <BoxShadow>[
              BoxShadow(
                color: Colors.black54,
                offset: Offset(6.0, 6.0),
                blurRadius: 12.0,
                blurStyle: BlurStyle.outer,
              ),
            ],
          ),
        ),
      ),
    );
  }
}
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
[  +51 ms] Skipping pub get: version match.
[  +14 ms] Found plugin audio_session at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.6+1\
[  +11 ms] Found plugin just_audio at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.9.20\
[   +4 ms] Found plugin just_audio_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.4.4\
[   +6 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.9\
[   +2 ms] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.11\
[   +1 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.7\
[   +2 ms] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.5\
[   +2 ms] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.5\
[   +2 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.5\
[   +4 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-2.0.12\
[   +1 ms] Found plugin shared_preferences_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_android-2.0.10\
[   +1 ms] Found plugin shared_preferences_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_ios-2.0.9\
[   +2 ms] Found plugin shared_preferences_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_linux-2.0.4\
[   +3 ms] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.2\
[   +2 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-2.0.3\
[   +1 ms] Found plugin shared_preferences_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_windows-2.0.4\
[  +30 ms] Found plugin audio_session at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.6+1\
[   +6 ms] Found plugin just_audio at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.9.20\
[   +2 ms] Found plugin just_audio_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.4.4\
[   +3 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.9\
[   +1 ms] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.11\
[   +1 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.7\
[   +1 ms] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.5\
[   +1 ms] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.5\
[   +1 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.5\
[   +3 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-2.0.12\
[   +1 ms] Found plugin shared_preferences_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_android-2.0.10\
[   +1 ms] Found plugin shared_preferences_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_ios-2.0.9\
[   +1 ms] Found plugin shared_preferences_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_linux-2.0.4\
[   +1 ms] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.2\
[   +1 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-2.0.3\
[   +1 ms] Found plugin shared_preferences_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_windows-2.0.4\
[  +10 ms] Generating C:\src\Flutter Projects\local_hero_deneme\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +95 ms] Launching lib\main.dart on Chrome in debug mode...
[ +117 ms] Updating assets
[ +101 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[   +5 ms] Waiting for connection from debug service on Chrome...
[   +5 ms] Found plugin audio_session at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.6+1\
[   +2 ms] Found plugin just_audio at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.9.20\
[   +1 ms] Found plugin just_audio_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.4.4\
[   +2 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.9\
[        ] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.11\
[        ] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.7\
[        ] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.5\
[        ] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.5\
[   +1 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.5\
[   +2 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-2.0.12\
[   +1 ms] Found plugin shared_preferences_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_android-2.0.10\
[        ] Found plugin shared_preferences_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_ios-2.0.9\
[        ] Found plugin shared_preferences_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_linux-2.0.4\
[        ] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.2\
[   +1 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-2.0.3\
[        ] Found plugin shared_preferences_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_windows-2.0.4\
[   +6 ms] Found plugin audio_session at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.6+1\
[   +4 ms] Found plugin just_audio at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.9.20\
[   +1 ms] Found plugin just_audio_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.4.4\
[   +2 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.9\
[        ] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.11\
[   +1 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.7\
[        ] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.5\
[        ] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.5\
[   +1 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.5\
[   +1 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-2.0.12\
[        ] Found plugin shared_preferences_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_android-2.0.10\
[   +1 ms] Found plugin shared_preferences_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_ios-2.0.9\
[   +1 ms] Found plugin shared_preferences_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_linux-2.0.4\
[        ] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.2\
[   +1 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-2.0.3\
[        ] Found plugin shared_preferences_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_windows-2.0.4\

```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 10.0.19044.1526], locale en-US)
    • Flutter version 2.10.2 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (11 days ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Ercan\AppData\Local\Android\Sdk
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Ercan\AppData\Local\Android\Sdk
    • ANDROID_SDK_ROOT = C:\Users\Ercan\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.7.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
    • Visual Studio Enterprise 2019 version 16.7.30503.244
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 11.0.11+9-b60-7590822)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\Ercan\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.34.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1526]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 98.0.4758.102
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 98.0.1108.62

[√] 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.
-->