Skip to content

SnackBar action button is moved to next row despite having enough space #119809

@bambinoua

Description

@bambinoua

It looks like code of SnackBar was redesigned du to support Material 3 design. But now I have a problem when the action button is moved to another line whereas virtually there is a free space for it.

изображение

I investigated the code and found that there is a condition for action + close combined width should be less than 25% of total SnackBar width. I think it is bad idea to hard some values which can depends on some thing.

It would be good to make this parameter as class property. Also it would be good to set style for SnackBarAction.

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.found in release: 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8frameworkflutter/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 version

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions