Skip to content

[file_selector] Make treatment of extensions given with with '.' consistent #73959

@stuartmorgan-g

Description

@stuartmorgan-g

Currently, on some platforms providing XTypeGroup extensions with the . will work, and on others it won't; see flutter/devtools#2506 (comment) for an example of confusion caused by that.

We should strongly consider normalizing the extensions in the Dart side of the plugin (or maybe in XTypeGroup itself) to the non-. form (since that's what an extension list should have; the extension of foo.txt is txt, not .txt), so that we don't end up with different behavior on different platforms when people pass the wrong version.

/cc @tugorez, @ditman

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectp: file_selectorThe file_selector pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions