Conversation
The iOS card always drew a hairline separator, so an app that wants a card outlined in its accent colour had to wrap the card or fork the widget. Both parameters are optional and default to today's rendering. Setting borderColor without a width bumps the hairline to 1.0, so a deliberate colour is actually visible; Android is unchanged, where the border comes from shape.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The iOS card always draws a hairline separator around itself. An app that wants its cards outlined in the accent colour — a common way to make a card read as tappable or selected — has to wrap the card in another
Containeror fork the widget. We had forked it.Two optional parameters, both defaulting to today's rendering:
Setting
borderColorwithout a width bumps the hairline from 0.5 to 1.0 — at half a point a deliberate colour barely shows, which surprised us when we first tried it. PassingborderWidthexplicitly always wins.Android is untouched: there the border comes from
shape, as before.Demo
card_demo_pagegains a "Custom Border (iOS)" section with both cases, right above the existing "Custom Colors".Testing
flutter analyzeclean for package and example, built and run on an iPhone 17 Pro simulator (iOS 26.2) — screenshot of the new section available if useful.