Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>string_extractor_flutterNew to Visual Studio Code? Get it now.
string_extractor_flutter

string_extractor_flutter

Pixel person

|
103 installs
| (0) | Free
easily extract string to a single file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

string-extractor-flutter

This extension is still under development, errors may occur and welcome your contributions

it's vs code extension "strings-extract-flutter". help you to extract static string in widget flutter to constant string file or getx localization file

How its Work

Extract Constant String

press quick fix command when the cursor is in any string that will show you option to extract string click it will prompt you to write custom variable name and after clicking enter it will replace your string with variable name

please change the filename and folder name from settings

default filename : app_strings

default foldername : core/resources

extract any string in widgets flutter to constant class Strings in lib\resource\strings.dart for example

       Text( "My Account"   ,
                  style: TextStyle(
                    fontSize: 25,
                  ),),

to

       Text(AppStrings.MyAccount   ,
                  style: TextStyle(
                    fontSize: 25,
                  ),),

Extract to getx localization

extract any string in widgets flutter to map enUS lib\localization\lang\en_us.dart for example

       Text( "My Account"   ,
                  style: TextStyle(
                    fontSize: 25,
                  ),),

to

       Text("MyAccount".tr   ,
                  style: TextStyle(
                    fontSize: 25,
                  ),),

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft