Repository: flutter
Issue: Text Selection height doesn't match `Text` widget's height.
Labels: c: regression,framework,has reproducible steps,P2,f: selection,team-framework,triaged-framework,found in release: 3.13

### 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
2. Start selecting text and see that the selection rect is smaller than the text box.

### Expected results

The selection rect should match the text rect .

### Actual results


Selection rect is smaller than the text rect.

![Screenshot from 2023-07-18 08-19-38](https://github.com/flutter/flutter/assets/73116038/b9e608a6-3ce3-4811-a891-d27f29ae2947)

I also tried setting the height property from `TextStyle` to 1.0 but this leads to text overflowing from the bottom and the selection rect being bigger than the text box.

![Screenshot from 2023-07-18 08-21-10](https://github.com/flutter/flutter/assets/73116038/9c019624-275f-4970-a30d-27d0f0850bd1)


### Code sample

<details><summary>Code sample</summary>

```
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  late Offset itemPosition = const Offset(0, 0);

  late ScrollController _controller;

  List<double> positions = [];

  @override
  void initState() {
    _controller = ScrollController(); // Initializing ScrollController
    _controller.addListener(() {
      _scrollListener();
    });
    super.initState();
  }

  _scrollListener() {
    positions.clear();
    setState(() {});
  }

  @override
  Widget build(BuildContext context) {
    return const SelectionArea(
      child: Scaffold(
        body: Center(
          child: Text(
            "!12£%^&*(),./;'#[]{}:@~<>?",
            style: TextStyle(
                backgroundColor: Colors.black26, height: null, fontSize: 60),
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```
[✓] Flutter (Channel master, 3.13.0-5.0.pre.21, on LMDE 5 (elsie) 5.10.0-23-amd64, locale en_GB.UTF-8)
    • Flutter version 3.13.0-5.0.pre.21 on channel master at /home/henryr/Dev/SDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0df4496cdb (13 hours ago), 2023-07-17 11:24:49 -0700
    • Engine revision 09fe990ebf
    • Dart version 3.1.0 (build 3.1.0-317.0.dev)
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /home/henryr/Android/Sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /home/henryr/Dev/SDK/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Debian clang version 11.0.1-2
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2022.1)
    • Android Studio at /home/henryr/Dev/SDK/android-studio
    • Flutter plugin version 73.0.1
    • Dart plugin version 221.6103.1
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at /home/henryr/Dev/SDK/idea-IC-231.9161.38
    • Flutter plugin version 74.0.4
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • LMDE 5 (elsie) 5.10.0-23-amd64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

• No issues found!

```

</details>