Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>flutter-img-syncNew to Visual Studio Code? Get it now.
flutter-img-sync

flutter-img-sync

Lihaha

|
12,445 installs
| (2) | Free
an extension for flutter images synchronization
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Show-How

效果演示

How to Use

step1.create you images store directory

create you images store directory just like: ./assets/img

step2.modify pubspec.yaml

define assets dir.example:

  assets:
    # assets-generator-begin
    # assets/img/*
    # assets-generator-end

step3.execute command: FlutterImgSync

  • after execution, img will be placed into assets of pubspec.yaml file
  • ./lib/r.dart will be created
  • now,you can use your img in code just like: R.assetsImgAvatar after import r.dart
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft