Repository: flutter
Issue: Text shadows do not scale properly when wrapped in Transform.scale
Labels: engine,a: typography,c: rendering,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-engine,triaged-engine

<!-- 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
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute the code sample given below

Issue persists on mobile and web. Here's a [dartpad link](https://dartpad.dev/?id=96f38f5eff85dcf7b8fa9fcd4ff03877) to see this issue in action.

This is the output on screen
![Output of the code](https://user-images.githubusercontent.com/13520364/228232938-9fdc79b2-14d8-4a59-a266-745f85b41b11.png)

**Expected results:** <!-- what did you want to see? -->
If we notice all the closed loops, of let's say 'O', it has considerable blank space when scale is 1
![image](https://user-images.githubusercontent.com/13520364/228233211-3494c1b5-e08c-417f-8e1f-a7d636490d7b.png)
So I would expect when scaled down, the same blank space is there inside 'O'.

**Actual results:** <!-- what did you see? -->
![image](https://user-images.githubusercontent.com/13520364/228233431-556bf679-a9ef-4a7a-9fdc-420917505103.png)
The loop of 'O' is visibly more filled, with practically no empty space.
<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.
-->

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyWidget(),
    );
  }
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.black,
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment:CrossAxisAlignment.center,
          children: [
            const Text(
              'Q-PROD',
              style: TextStyle(
                  color: Colors.red,
                  fontSize: 150,
                  shadows: [Shadow(color: Colors.white, blurRadius: 10)]),
            ),
            Transform.scale(
              scale: 0.5,
              child: const Text(
                'Q-PROD',
                style: TextStyle(
                    color: Colors.red,
                    fontSize: 150,
                    shadows: [Shadow(color: Colors.white, blurRadius: 10)]),
              ),
            ),
          ],
        ));
  }
}

```

</details>
<details>
All the other values here are same, `fontSize` and `blurRadius`. While font size is reduced proportionate to scale (0.5), the `blurRadius` is not. Multiplying the `blurRadius` with the scale factor inside `Transform.scale` makes it visually on par with unscaled widget. I assumed all values signifying dimension are multiplied with scale factor or something to that effect, that's how fontSize scales fine, but it isn't happening with shadow for some reason.


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

### Flutter doctor

```
[✓] Flutter (Channel stable, 3.7.6, on macOS 13.1 22C65 darwin-arm64, locale en-IN)
    • Flutter version 3.7.6 on channel stable at /Users/chinmaykabi/fvm/versions/3.0.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12cb4eb7a0 (4 weeks ago), 2023-03-01 10:29:26 -0800
    • Engine revision ada363ee93
    • Dart version 2.19.3
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/chinmaykabi/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • 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.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • 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-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.76.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (3 available)
    • Nokia 5 4 (mobile) • 192.168.29.117:5555 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)    • macos               • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)       • chrome              • web-javascript • Google Chrome 111.0.5563.110

[✓] 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.
-->