Skip to content

[Request] Scallop / Sunflower / Star Material 3 Shape #107442

@bernaferrari

Description

@bernaferrari

I think it would be nice for Flutter to adopt the Clover / Scallop / Sunflower shape from Android 12 / M3.

It could be a custom OutlinedBorder with custom math like this: https://stackoverflow.com/a/25840319
You probably have access to the Android 12 source code, so that could also be helpful.

Figma uses three pieces of information:

  • pointCount (number of spikes, 5 for a star)
  • innerRadius (%, if it should grow inside or outside)
  • cornerRadius

This is a widget that feels heavy to use, but when you need it is really nice to have. I would love to see in the framework.

image

Frame 4

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions