1. 26 Jan, 2024 3 commits
    • Qun Cheng's avatar
      Fix `SegmentedButton` default size and default tappable size (#142243) · 7ff5f81a
      Qun Cheng authored
      fix https://github.com/flutter/flutter/issues/121493
      
      `SegmentedButton` uses `TextButton` for each segments. When we have `MaterialTapTargetSize.padded` for `TextButton`, we make sure the minimum tap target size is 48.0( this value can be adjusted by visual density), even tough the actual button size is smaller. When `SegmentedButton` paints segments by using `MultiChildRenderObjectWidget`, it also includes the tap target size so the button that it actually draws always has the same height as the height of the tap target size.
      
      To fix it, this PR firstly calculate the actual height of a text button in `SegmentedButton` class, then we can get the height delta if there is. Then the the value of (Segmented button render box height - the delta) would be the actual button size that we should see.
      
      For now, we are not able to customize the min, max, fixed size in [`SegmentedButton` style](https://api.flutter.dev/flutter/material/SegmentedButton/style.html). So the standard button height is always 40 and can only be customized by `style.visualDensity` and `style.tapTargetSize`; `SegmentedButton` only simulates the `TextButton` behavior when `TextButton`'s height is its default value.
      
      ![Screenshot 2024-01-25 at 11 45 42 AM](https://github.com/flutter/flutter/assets/36861262/7451fa96-6d45-4cd3-a894-ca71e776c8ef)
      
      https://github.com/flutter/flutter/assets/36861262/15ca6034-e6e0-4cc6-8fe3-808b4bd6a920
      7ff5f81a
    • godofredoc's avatar
      Update name for android_defines_test. (#142273) · a6c3ad23
      godofredoc authored
      This is to reuse the global emulator configurations and make it easier to identify this test is running on an emulator.
      a6c3ad23
    • Pierrick Bouvier's avatar
      Enable native compilation for windows-arm64 (#141930) · 37c3978b
      Pierrick Bouvier authored
      It's now possible to natively compile a flutter app for windows-arm64. Cross-compilation is not yet implemented.
      
      Uses arm64 artifacts now available for Dart/Flutter. Platform detection is based on Abi class, provided by Dart. Depending if Dart is an arm64 or x64 binary, the Abi is set accordingly. Initial bootstrap of dart artifacts (update_dart_sdk.ps1) is checking PROCESSOR_ARCHITECTURE environment variable, which is the way to detect host architecture on Windows.
      
      This is available only for master channel (on other channels, it fallbacks to windows-x64).
      
      On windows-x64, it produces an x64 app. On windows-arm64, it produces an arm64 app.
      37c3978b
  2. 25 Jan, 2024 30 commits
  3. 24 Jan, 2024 7 commits