Repository: flutter
Issue: Text clipping issue on Android devices
Labels: platform-android,framework,a: typography,has reproducible steps,P3,needs repro info,team-framework,triaged-framework,found in release: 3.22,found in release: 3.23

### Steps to reproduce

1. Create a new Flutter project.
2. Replace the main.dart file with the provided code below.
3. Run the application on an Android device (or emulator).
4. Observe the "EXAMPLE 000" text at the top of the screen.

### Expected results

The "EXAMPLE 000" text should be fully visible, without any part of the text being clipped or cut off.

### Actual results

The top few pixels of the "EXAMPLE 000" text are clipped, making the text partially cut off and not fully visible. This issue is observed both on a Pixel 7 emulator with API 34 and a physical Pixel 6a with VanillaIceCream.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'dart:ui';

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(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage>
    with SingleTickerProviderStateMixin {
  late final AnimationController _animationController;

  @override
  void initState() {
    super.initState();
    _animationController = AnimationController(
      duration: const Duration(milliseconds: 2000),
      vsync: this,
    );
    _animationController.forward();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        top: false,
        child: Column(
          children: [
            Column(
              children: [
                SizedBox(
                  height: 200,
                  child: Stack(
                    fit: StackFit.expand,
                    children: [
                      ClipRect(
                        child: Align(
                          alignment: Alignment.topCenter,
                          child: Opacity(
                            opacity: 0.25,
                            child: ImageFiltered(
                              imageFilter: ImageFilter.blur(
                                sigmaX: 40,
                                sigmaY: 40,
                              ),
                              child: Container(),
                            ),
                          ),
                        ),
                      ),
                      const SafeArea(
                        child: Text(
                          'EXAMPLE 000',
                          style: TextStyle(
                            fontSize: 8,
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {},
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshot</summary>

![Screenshot_20240606_115512](https://github.com/flutter/flutter/assets/8516470/7c534e3b-e818-4b86-a824-36ad8a5986b0)

</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.22621.3672], locale en-GB)
    • Flutter version 3.22.1 on channel stable at E:\fvm\versions\3.22.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a14f74ff3a (2 weeks ago), 2024-05-22 11:08:21 -0500
    • Engine revision 55eae6864b
    • Dart version 3.4.1
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\User\AppData\Local\Android\sdk
    • Platform android-VanillaIceCream, build-tools 34.0.0
    • Java binary at: C:\Users\User\AppData\Local\Programs\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
    • All Android licenses accepted.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.25)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.33423.256
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2023.3)
    • Android Studio at C:\Users\User\AppData\Local\Programs\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 17.0.10+0--11572160)

[√] IntelliJ IDEA Ultimate Edition (version 2024.1)
    • IntelliJ at C:\Users\User\AppData\Local\Programs\IntelliJ IDEA Ultimate
    • 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

[√] Connected device (3 available)
    • Pixel 6a (mobile)            • 192.168.31.71:46367 • android-arm64 • Android 14 (API 34)
    • sdk gphone64 x86 64 (mobile) • emulator-5554       • android-x64   • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows             • windows-x64   • Microsoft Windows [Version 10.0.22621.3672]

[√] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>