dart-string-refactor
Extension is under development, errors may occur
it's vs code extension "dart-string-refactor". help you to extract static string in widget flutter to constant string file
How it Works
extract any string in widgets flutter to constant class AppStrings
in lib\constants\app_strings.dart
for example
Text( 'Congratulations,
style: TextStyle(
fontSize: 25,
),),
to
Text(AppStrings.congratulation,
style: TextStyle(
fontSize: 25,
),),
![how_to_use](https://user-images.githubusercontent.com/42508399/288728406-65f64eae-8e79-482d-9d5e-b3bb423dca47.png)
You can customize the file name and folder path in the extension tab on the workspace setting, or you can simply search it with the keyword Dart String Refactor
![settings](https://user-images.githubusercontent.com/42508399/289433615-6f00f4aa-1ed1-4867-84fe-960f14165b8d.png)
Happy Coding!