Repository: flutter
Issue: [mobile web][iOS][Android] TextButton with a given size inside TextSpan is rendered incorrectly
Labels: platform-android,framework,a: typography,platform-web,e: web_html,has reproducible steps,P2,browser: safari-ios,found in release: 3.7,found in release: 3.11,team-framework,triaged-framework

### 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. Clone repository https://github.com/mshurkaeu-public/flutter-bugs-I-found-or-reported.git
2. Navigate to folder 04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser
3. Run command `flutter build web --web-renderer canvaskit` providing your environment additional parameters if required
4. Open the generated web app in Android Chrome browser. (Chrome on desktop works fine)

I think this is Flutter bug because I think this is some kind of error in layout algorithm. Looks like the algorithm uses default minimalSize of TextButton class instead of the minimalSize, defined on particular TextButton instance.

### Expected results

TextButton with 16x16 icon and minimal size 1x1 is rendered in 16x16 area

### Actual results

TextButton with 16x16 icon and minimal size 1x1 is rendered in 64x36 area.

### Code sample

Full code of the app is available in repository https://github.com/mshurkaeu-public/flutter-bugs-I-found-or-reported.git, folder 04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser.

<details><summary>Major piece of code</summary>

```dart
  @override
  Widget build(BuildContext context) {
    String fontFamily = DefaultTextStyle.of(context).style.fontFamily ?? 'null';

    Size testTextSize;
    TextPainter textPainter = TextPainter(
      text: const TextSpan(text: 'Test text'),
      maxLines: 1,
      textDirection: TextDirection.ltr,
    );
    try {
      textPainter.layout();
      testTextSize = textPainter.size;
    } finally {
      textPainter.dispose();
    }

    double iconSize = testTextSize.height;
    
    ButtonStyle buttonStyle = TextButton.styleFrom(
      padding: EdgeInsets.zero,
      // by default the minimumSize is Size(64, 36)
      // check documentation of the method
      // ButtonStyle defaultStyleOf(BuildContext context)
      // in
      // ~snap/flutter/common/flutter/packages/flutter/lib/src/material/text_button.dart
      minimumSize: const Size(1, 1),
    );

    return Column(
      mainAxisAlignment: MainAxisAlignment.start,
      children: [
        Text.rich(
          TextSpan(
            text: 'Default font family is $fontFamily\n\n',
            children: [
              const TextSpan(
                text: 'This is the bug manifistation:\n',
              ),
              TextSpan(
                text: 'Line above a TextButton, which is $iconSize×$iconSize\n',
              ),
              const TextSpan(
                text: 'text before the button →',
              ),
              WidgetSpan(
                child: TextButton(
                  style: buttonStyle,
                  onPressed: () {},
                  child: Icon(
                    Icons.copy,
                    size: iconSize,
                  ),
                ),
              ),
              const TextSpan(
                text: '← text after the button\n',
              ),
              const TextSpan(
                text: 'line below the button (bla-bla-bla, bla-bla-bla)\n',
              ),
              const TextSpan(
                text: '\n\n',
              ),


              const TextSpan(
                text: 'This is my workaround:\n',
              ),
              TextSpan(
                text: 'Line above a SizedBox, which is $iconSize×$iconSize\n',
              ),
              const TextSpan(
                text: 'text before the sized box →',
              ),
              WidgetSpan(
                child: SizedBox(
                  height: iconSize,
                  width: iconSize,
                  child: TextButton(
                  style: buttonStyle,
                  onPressed: () {},
                  child: Icon(
                    Icons.copy,
                    size: iconSize,
                  ),
                ),
                ),
              ),
              const TextSpan(
                text: '← text after the sized box\n',
              ),
              const TextSpan(
                text: 'line below the sized box (bla-bla-bla, bla-bla-bla)\n',
              ),
              const TextSpan(
                text: '\n\n',
              ),

              const TextSpan(
                text: 'For a reference:\n',
              ),
              const TextSpan(
                text: 'Line above a TextButton, which is 64×36\n',
              ),
              const TextSpan(
                text: 'text before the button →',
              ),
              WidgetSpan(
                child: TextButton(
                  onPressed: () {},
                  child: Icon(
                    Icons.copy,
                    size: iconSize,
                  ),
                ),
              ),
              const TextSpan(
                text: '← text after the button\n',
              ),
              const TextSpan(
                text: 'line below the button (bla-bla-bla, bla-bla-bla)\n',
              ),
              const TextSpan(
                text: '\n\n',
              ),
            ],
          ),
        ),
      ],
    );
  }
```

</details>


### Screenshots or Video

Demo is published at https://mshurkaeu-public.github.io/flutter-bugs-I-found-or-reported/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/

<details>
<summary>A screenshot</summary>

![The bug](https://user-images.githubusercontent.com/113517149/235341392-20159ed6-c2b2-455a-8e21-28a8fb54f6a0.jpg)

</details>


### Logs

<details><summary>Logs</summary>

```console
flutter build --verbose web --release --web-renderer canvaskit --base-href "/flutter-bugs-I-found-or-reported/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/"
[  +13 ms] executing: uname -m
[   +5 ms] Exit code 0 from: uname -m
[        ] x86_64
[        ] executing: [/home/vboxuser/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
[        ] executing: [/home/vboxuser/snap/flutter/common/flutter/] git tag --points-at 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
[  +10 ms] Exit code 0 from: git tag --points-at 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
[        ] 3.7.12
[   +6 ms] executing: [/home/vboxuser/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/stable
[        ] executing: [/home/vboxuser/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +11 ms] executing: [/home/vboxuser/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[   +2 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +9 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +25 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +49 ms] Running "flutter pub get" in 04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser...
[   +2 ms] executing: [/home/vboxuser/flutter-bugs-I-found-or-reported.git/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/]
/home/vboxuser/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --color --verbose --directory . get --example
FINE: Pub 2.19.6
MSG : Resolving dependencies...
SLVR: fact: bug_when_open_in_android_browser is 1.0.0+1
SLVR: derived: bug_when_open_in_android_browser
SLVR: fact: bug_when_open_in_android_browser depends on flutter from sdk
SLVR: fact: bug_when_open_in_android_browser depends on flutter_test from sdk
SLVR: fact: bug_when_open_in_android_browser depends on flutter_lints ^2.0.0
SLVR:   selecting bug_when_open_in_android_browser
SLVR:   derived: flutter_lints ^2.0.0
SLVR:   derived: flutter_test from sdk
SLVR:   derived: flutter from sdk
SLVR:   fact: flutter_lints 2.0.1 depends on lints ^2.0.0
SLVR:     selecting flutter_lints 2.0.1
SLVR:     derived: lints ^2.0.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on flutter from sdk
SLVR:     fact: flutter_test 0.0.0 from sdk depends on test_api 0.4.16
SLVR:     fact: flutter_test 0.0.0 from sdk depends on path 1.8.2
SLVR:     fact: flutter_test 0.0.0 from sdk depends on fake_async 1.3.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on clock 1.1.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.11.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on vector_math 2.1.4
SLVR:     fact: flutter_test 0.0.0 from sdk depends on async 2.10.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on boolean_selector 2.1.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on characters 1.2.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on collection 1.17.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on js 0.6.5
SLVR:     fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.13
SLVR:     fact: flutter_test 0.0.0 from sdk depends on material_color_utilities 0.2.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on meta 1.8.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on source_span 1.9.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.1.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.2.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.2.1
SLVR:       selecting flutter_test 0.0.0 from sdk
SLVR:       derived: term_glyph 1.2.1
SLVR:       derived: string_scanner 1.2.0
SLVR:       derived: stream_channel 2.1.1
SLVR:       derived: source_span 1.9.1
SLVR:       derived: meta 1.8.0
SLVR:       derived: material_color_utilities 0.2.0
SLVR:       derived: matcher 0.12.13
SLVR:       derived: js 0.6.5
SLVR:       derived: collection 1.17.0
SLVR:       derived: characters 1.2.1
SLVR:       derived: boolean_selector 2.1.1
SLVR:       derived: async 2.10.0
SLVR:       derived: vector_math 2.1.4
SLVR:       derived: stack_trace 1.11.0
SLVR:       derived: clock 1.1.1
SLVR:       derived: fake_async 1.3.1
SLVR:       derived: path 1.8.2
SLVR:       derived: test_api 0.4.16
SLVR:       fact: flutter 0.0.0 from sdk depends on characters 1.2.1
SLVR:       fact: flutter 0.0.0 from sdk depends on collection 1.17.0
SLVR:       fact: flutter 0.0.0 from sdk depends on js 0.6.5
SLVR:       fact: flutter 0.0.0 from sdk depends on material_color_utilities 0.2.0
SLVR:       fact: flutter 0.0.0 from sdk depends on meta 1.8.0
SLVR:       fact: flutter 0.0.0 from sdk depends on vector_math 2.1.4
SLVR:       fact: flutter 0.0.0 from sdk depends on sky_engine from sdk
SLVR:         selecting flutter 0.0.0 from sdk
SLVR:         derived: sky_engine from sdk
SLVR:           selecting lints 2.0.1
SLVR:             selecting term_glyph 1.2.1
SLVR:             fact: string_scanner 1.2.0 depends on source_span ^1.8.0
SLVR:               selecting string_scanner 1.2.0
SLVR:               fact: stream_channel 2.1.1 depends on async ^2.5.0
SLVR:                 selecting stream_channel 2.1.1
SLVR:                 fact: source_span 1.9.1 depends on collection ^1.15.0
SLVR:                 fact: source_span 1.9.1 depends on path ^1.8.0
SLVR:                 fact: source_span 1.9.1 depends on term_glyph ^1.2.0
SLVR:                   selecting source_span 1.9.1
SLVR:                     selecting meta 1.8.0
SLVR:                       selecting material_color_utilities 0.2.0
SLVR:                       fact: matcher 0.12.13 depends on meta ^1.8.0
SLVR:                       fact: matcher 0.12.13 depends on stack_trace ^1.10.0
SLVR:                         selecting matcher 0.12.13
SLVR:                         fact: js 0.6.5 depends on meta ^1.7.0
SLVR:                           selecting js 0.6.5
SLVR:                             selecting collection 1.17.0
SLVR:                               selecting characters 1.2.1
SLVR:                               fact: boolean_selector 2.1.1 depends on source_span ^1.8.0
SLVR:                               fact: boolean_selector 2.1.1 depends on string_scanner ^1.1.0
SLVR:                                 selecting boolean_selector 2.1.1
SLVR:                                 fact: async 2.10.0 depends on collection ^1.15.0
SLVR:                                 fact: async 2.10.0 depends on meta ^1.1.7
SLVR:                                   selecting async 2.10.0
SLVR:                                     selecting vector_math 2.1.4
SLVR:                                     fact: stack_trace 1.11.0 depends on path ^1.8.0
SLVR:                                       selecting stack_trace 1.11.0
SLVR:                                         selecting clock 1.1.1
SLVR:                                         fact: fake_async 1.3.1 depends on clock ^1.1.0
SLVR:                                         fact: fake_async 1.3.1 depends on collection ^1.15.0
SLVR:                                           selecting fake_async 1.3.1
SLVR:                                             selecting path 1.8.2
SLVR:                                             fact: test_api 0.4.16 depends on async ^2.5.0
SLVR:                                             fact: test_api 0.4.16 depends on boolean_selector ^2.1.0
SLVR:                                             fact: test_api 0.4.16 depends on collection ^1.15.0
SLVR:                                             fact: test_api 0.4.16 depends on meta ^1.3.0
SLVR:                                             fact: test_api 0.4.16 depends on source_span ^1.8.0
SLVR:                                             fact: test_api 0.4.16 depends on stack_trace ^1.10.0
SLVR:                                             fact: test_api 0.4.16 depends on stream_channel ^2.1.0
SLVR:                                             fact: test_api 0.4.16 depends on string_scanner ^1.1.0
SLVR:                                             fact: test_api 0.4.16 depends on term_glyph ^1.2.0
SLVR:                                             fact: test_api 0.4.16 depends on matcher >=0.12.11 <0.12.14
SLVR:                                               selecting test_api 0.4.16
SLVR:                                                 selecting sky_engine 0.0.99 from sdk
SLVR: Version solving took 0:00:00.158656 seconds.
    | Tried 1 solutions.
FINE: Resolving dependencies finished (0.198s).
MSG :   async 2.10.0 (2.11.0 available)
    |   characters 1.2.1 (1.3.0 available)
    |   collection 1.17.0 (1.17.1 available)
    |   js 0.6.5 (0.6.7 available)
    |   lints 2.0.1 (2.1.0 available)
    |   matcher 0.12.13 (0.12.15 available)
    |   material_color_utilities 0.2.0 (0.3.0 available)
    |   meta 1.8.0 (1.9.1 available)
    |   path 1.8.2 (1.8.3 available)
    |   source_span 1.9.1 (1.10.0 available)
    |   test_api 0.4.16 (0.5.2 available)
MSG : Got dependencies!
IO  : Writing 5020 characters to text file pubspec.lock.
FINE: Contents:
    | # Generated by pub
    | # See https://dart.dev/tools/pub/glossary#lockfile
    | packages:
    |   async:
    |     dependency: transitive
    |     description:
    |       name: async
    |       sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.10.0"
    |   boolean_selector:
    |     dependency: transitive
    |     description:
    |       name: boolean_selector
    |       sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.1"
    |   characters:
    |     dependency: transitive
    |     description:
    |       name: characters
    |       sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.2.1"
    |   clock:
    |     dependency: transitive
    |     description:
    |       name: clock
    |       sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.1.1"
    |   collection:
    |     dependency: transitive
    |     description:
    |       name: collection
    |       sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.17.0"
    |   fake_async:
    |     dependency: transitive
    |     description:
    |       name: fake_async
    |       sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.3.1"
    |   flutter:
    |     dependency: "direct main"
    |     description: flutter
    |     source: sdk
    |     version: "0.0.0"
    |   flutter_lints:
    |     dependency: "direct dev"
    |     description:
    |       name: flutter_lints
    |       sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.0.1"
    |   flutter_test:
    |     dependency: "direct dev"
    |     description: flutter
    |     source: sdk
    |     version: "0.0.0"
    |   js:
    |     dependency: transitive
    |     description:
    |       name: js
    |       sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.6.5"
    |   lints:
    |     dependency: transitive
    |     description:
    |       name: lints
    |       sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.0.1"
    |   matcher:
    |     dependency: transitive
    |     description:
    |       name: matcher
    |       sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.12.13"
    |   material_color_utilities:
    |     dependency: transitive
    |     description:
    |       name: material_color_utilities
    |       sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.2.0"
    |   meta:
    |     dependency: transitive
    |     description:
    |       name: meta
    |       sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.8.0"
    |   path:
    |     dependency: transitive
    |     description:
    |       name: path
    |       sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.8.2"
    |   sky_engine:
    |     dependency: transitive
    |     description: flutter
    |     source: sdk
    |     version: "0.0.99"
    |   source_span:
    |     dependency: transitive
    |     description:
    |       name: source_span
    |       sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.9.1"
    |   stack_trace:
    |     dependency: transitive
    |     description:
    |       name: stack_trace
    |       sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.11.0"
    |   stream_channel:
    |     dependency: transitive
    |     description:
    |       name: stream_channel
    |       sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.1"
    |   string_scanner:
    |     dependency: transitive
    |     description:
    |       name: string_scanner
    |       sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.2.0"
    |   term_glyph:
    |     dependency: transitive
    |     description:
    |       name: term_glyph
    |       sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.2.1"
    |   test_api:
    |     dependency: transitive
    |     description:
    |       name: test_api
    |       sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.4.16"
    |   vector_math:
    |     dependency: transitive
    |     description:
    |       name: vector_math
    |       sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.4"
    | sdks:
    |   dart: ">=2.19.6 <3.0.0"
IO  : Writing 4582 characters to text file .dart_tool/package_config.json.
FINE: Contents:
    | {
    |   "configVersion": 2,
    |   "packages": [
    |     {
    |       "name": "async",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/async-2.10.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "boolean_selector",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "characters",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/characters-1.2.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "clock",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/clock-1.1.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "collection",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/collection-1.17.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "fake_async",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "flutter",
    |       "rootUri": "file:///home/vboxuser/snap/flutter/common/flutter/packages/flutter",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "flutter_lints",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/flutter_lints-2.0.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "flutter_test",
    |       "rootUri": "file:///home/vboxuser/snap/flutter/common/flutter/packages/flutter_test",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "js",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/js-0.6.5",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.16"
    |     },
    |     {
    |       "name": "lints",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/lints-2.0.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "matcher",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/matcher-0.12.13",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "material_color_utilities",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/material_color_utilities-0.2.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.13"
    |     },
    |     {
    |       "name": "meta",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/meta-1.8.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "path",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/path-1.8.2",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "sky_engine",
    |       "rootUri": "file:///home/vboxuser/snap/flutter/common/flutter/bin/cache/pkg/sky_engine",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "source_span",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/source_span-1.9.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.14"
    |     },
    |     {
    |       "name": "stack_trace",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/stack_trace-1.11.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "stream_channel",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/stream_channel-2.1.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.14"
    |     },
    |     {
    |       "name": "string_scanner",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "term_glyph",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "test_api",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/test_api-0.4.16",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "vector_math",
    |       "rootUri": "file:///home/vboxuser/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.14"
    |     },
    |     {
    |       "name": "bug_when_open_in_android_browser",
    |       "rootUri": "../",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.19"
    |     }
    |   ],
    |   "generated": "2023-04-30T06:50:50.635922Z",
    |   "generator": "pub",
    |   "generatorVersion": "2.19.6"
    | }
IO  : Writing 29062 characters to text file /home/vboxuser/.pub-cache/log/pub_log.txt.
MSG : Logs written to /home/vboxuser/.pub-cache/log/pub_log.txt.
[ +504 ms] Generating
/home/vboxuser/flutter-bugs-I-found-or-reported.git/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +29 ms] 💪 Building with sound null safety 💪
[  +22 ms] generated_plugin_registrant.dart not found. Skipping.
[   +1 ms] Compiling lib/main.dart for the Web...
[   +2 ms] Initializing file store
[  +24 ms] web_entrypoint: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
/home/vboxuser/snap/flutter/common/flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart}
[   +1 ms] Skipping target: gen_localizations
[   +3 ms] web_static_assets: Starting due to {}
[  +65 ms] web_static_assets: Complete
[        ] web_entrypoint: Complete
[        ] dart2js: Starting due to {}
[   +3 ms] compiling dart code to kernel with command "/home/vboxuser/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/vboxuser/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot --libraries-spec=/home/vboxuser/snap/flutter/common/flutter/bin/cache/flutter_web_sdk/libraries.json
--native-null-assertions -Ddart.vm.product=true -DFLUTTER_WEB_AUTO_DETECT=false -DFLUTTER_WEB_USE_SKIA=true --no-source-maps -o
/home/vboxuser/flutter-bugs-I-found-or-reported.git/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/.dart_tool/flutter_build/47dde90d5c3ba980242791d82985aebe/app.dill
--packages=.dart_tool/package_config.json --cfe-only
/home/vboxuser/flutter-bugs-I-found-or-reported.git/04-TextButton-with-a-given-size-inside-TextSpan-in-Android-browser/.dart_tool/flutter_build/47dde90d5c3ba980242791d82985aebe/main.dart"
[+16460 ms] dart2js: Complete
[ +179 ms] web_release_bundle: Starting due to {}
[  +58 ms] web_release_bundle: Complete
[ +190 ms] web_service_worker: Starting due to {}
[ +166 ms] web_service_worker: Complete
[  +90 ms] Persisting file store
[   +4 ms] Done persisting file store
[   +7 ms] Compiling lib/main.dart for the Web... (completed in 17.3s)
[        ] "flutter web" took 17,912ms.
[        ] Running 0 shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.7.12, on Ubuntu 22.10 5.19.0-41-generic, locale en_US.UTF-8)
    • Flutter version 3.7.12 on channel stable at /home/vboxuser/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (12 days ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /home/vboxuser/Android/Sdk
    • Platform android-33-ext4, build-tools 33.0.2
    • Java binary at: /snap/android-studio/125/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2021.3)
    • Android Studio at /snap/android-studio/125/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.13+0-b1751.21-8125866)

[✓] VS Code (version 1.77.3)
    • VS Code at /usr/share/code
    • Flutter extension version 3.62.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.10 5.19.0-41-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 112.0.5615.165

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>