gap
gap copied to clipboard
[Feature] Linter rule
I think it's possible to create custom linter rule in flutter.
Could be great to have a linter to avoid coding :
SizedBox(width:10) instead of Gap(10)
SizedBox(height:10) instead of Gap(10)
I suggest to do sth with use_design_system_item of https://pub.dev/packages/leancode_lint for a quick solution.
Here is a sample:
custom_lint:
rules:
- use_design_system_item:
Gap:
- instead_of: SizedBox
from_package: flutter
That will ban completely SizedBox which is not good. My proposal is more for SizedBox without any child.