Skip to content

lib-exports on flutter skeleton app #17

@nzoschke

Description

@nzoschke

A flutter skeleton creates public MyApp class that consumes a public SampleItemListView class. These aren't exported and I'm not sure it makes sense to do so for a flutter app.

Should the lib-exports script handle this different? Should I start exporting my Flutter app components? Should I just not use the lib-exports script for flutter? Perhaps documenting this is the solution.

dart run dart_pre_commit -l debug
...
🔎 Running lib-exports...
    lib/src/app.dart:10:1 - File has package-public declaration
    lib/src/sample_feature/sample_item_list_view.dart:7:1 - File has package-public declaration
    lib/src/app.dart - Source file is not exported anywhere
    lib/src/sample_feature/sample_item_list_view.dart - Source file is not exported anywhere
❌ Completed lib-exports, found problems

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions