Skip to content

3.16.2: Chip side: BordeSide.none does not work via ChipThemeData #139572

@jimmyff

Description

@jimmyff

Is there an existing issue for this?

Steps to reproduce

Create a chip and try to remove the border using BorderSide.none or setting width to 0.0, it does not work. You must also specify the color as transparent.

Expected results

Chip with no border

Actual results

Chip with border

Code sample

Does not work sample
chipTheme: ChipThemeData(
                shape: StadiumBorder(
                    side: BorderSide.none)),
Does not work sample
chipTheme: ChipThemeData(
                shape: StadiumBorder(
                    side: BorderSide(
                        width: 0.0,
                        style: BorderStyle.none))),
Working sample
chipTheme: ChipThemeData(
                shape: StadiumBorder(
                    side: BorderSide(
                        width: 0.0,
                        color: Colors.transparent,
                        style: BorderStyle.none))),

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1.1 23B81
    darwin-arm64, locale en-GB)
    • Flutter version 3.16.2 on channel stable at
      /Users/jimmyff/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (5 days ago), 2023-11-30
      11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK
    version 33.0.0)
    • Android SDK at /Users/jimmyff/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at
      /Users/jimmyff/Downloads/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.14.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google
      Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.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
      17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (3 available)
    • Pixel 5 (mobile) • 09021FDD40027X • android-arm64  •
      Android 14 (API 34)
    • macOS (desktop)  • macos          • darwin-arm64   • macOS
      14.1.1 23B81 darwin-arm64
    • Chrome (web)     • chrome         • web-javascript • Google
      Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: material designflutter/packages/flutter/material repository.found in release: 3.16Found to occur in 3.16found in release: 3.18Found to occur in 3.18frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions