How could I get all hardcoded string in Flutter?
In Android I can get it by Lint Inspection but is there any similar to that in Flutter?
I opened an issue on Flutter Repo: https://github.com/flutter/flutter/issues/42227
If you're on IntelliJ, you can find all text matching a hardcoded String regex.
Cmd + Shift + F
(or Ctrl + Shift + F
)"(.*?)"
or '(.*?)'
depending on whether you use double-quotes or single-quotes for hardcoded strings. For both, use "(.*?)"|'(.*?)'
This should open a new Find window from the bottom with all results (3,144 in my case):
You can then expand the results directory and preview any hardcoded string in any file from the results:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With