All Projects → Fly-Mix → flr-vscode-extension

Fly-Mix / flr-vscode-extension

Licence: other
Flr(Flutter-R) Extension: A Flutter Resource Manager VSCode Extension

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to flr-vscode-extension

laravel-assets
Laravel Assets manager
Stars: ✭ 13 (-53.57%)
Mutual labels:  assets-management
Laravel Potion
laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.
Stars: ✭ 63 (+125%)
Mutual labels:  assets-management
Ocsinventory Ocsreports
Webconsole for OCS Inventory NG
Stars: ✭ 145 (+417.86%)
Mutual labels:  assets-management
assetter
Assets manager for PHP. Allow manage CSS and JS files in website and its dependencies. Also allows refresh cache in browsers by adding revisions of loaded files. Builtin plugins to compile SASS and/or LESS styles to CSS just-in-time.
Stars: ✭ 14 (-50%)
Mutual labels:  assets-management
Snipe It
A free open source IT asset/license management system
Stars: ✭ 5,606 (+19921.43%)
Mutual labels:  assets-management
Hr Payroll
HRM is a Modern and responsive Human Resource Management System. It is developed by PHP and Codeigniter framework. It is designed and developed for office management and company employee management.
Stars: ✭ 86 (+207.14%)
Mutual labels:  assets-management
ScriptableObjectCollection
A library to help improve the usability of Unity3D Scriptable Objects by grouping then into a collection and exposing then by code or nice inspectors!
Stars: ✭ 204 (+628.57%)
Mutual labels:  assets-management
Ocsinventory Server
Communication server of OCS Inventory
Stars: ✭ 214 (+664.29%)
Mutual labels:  assets-management
Machine Learning Asset Management
Machine Learning in Asset Management (by @firmai)
Stars: ✭ 1,060 (+3685.71%)
Mutual labels:  assets-management
Spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 145 (+417.86%)
Mutual labels:  assets-management
Assets
An ultra-simple-to-use assets management library for PHP
Stars: ✭ 292 (+942.86%)
Mutual labels:  assets-management
Collectfast
A faster collectstatic command.
Stars: ✭ 352 (+1157.14%)
Mutual labels:  assets-management
Toast
A modern JS/CSS asset loader, written in TypeScript.
Stars: ✭ 118 (+321.43%)
Mutual labels:  assets-management
OCSInventory-Docker-Image
Docker image for OCSInventory Server
Stars: ✭ 54 (+92.86%)
Mutual labels:  assets-management
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (+478.57%)
Mutual labels:  assets-management
assetic
Asset Management for PHP
Stars: ✭ 61 (+117.86%)
Mutual labels:  assets-management
Sqlalchemy Media
Another attachment extension for SqlAlchemy to manage assets which are associated with database models but you don't want to store them into the database
Stars: ✭ 69 (+146.43%)
Mutual labels:  assets-management
Asset Packagist
Asset Packagist
Stars: ✭ 235 (+739.29%)
Mutual labels:  assets-management
Glpi
GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
Stars: ✭ 2,278 (+8035.71%)
Mutual labels:  assets-management
Ralph
Ralph is the CMDB / Asset Management system for data center and back office hardware.
Stars: ✭ 1,701 (+5975%)
Mutual labels:  assets-management

Flr Extension

Flr (Flutter-R) Extension: A Flutter Resource Manager VSCode Extension, which can help flutter developer to auto specify assets in pubspec.yaml and generate r.g.dart file after he changes the flutter project assets. With r.g.dart, flutter developer can apply the asset in code by referencing it's asset ID function.

Feature

  • Support auto service that automatically specify assets in pubspec.yaml and generate r.g.dart file, which can be triggered manually or by monitoring asset changes
  • Support R.x (such as R.image.test(), R.svg.test(width: 100, height: 100), R.txt.test_json()) code struct
  • Support for processing image assets ( .png, .jpg, .jpeg, .gif, .webp, .icon, .bmp, .wbmp, .svg )
  • Support for processing text assets ( .txt, .json, .yaml, .xml )
  • Support for processing font assets ( .ttf, .otf, .ttc)
  • Support for processing image asset variants
  • Support for processing asset which’s filename is bad:
    • filename has illegal character (such as blank, ~, @, # ) which is outside the range of valid characters (0-9, A-Z, a-z, _, +, -, ., ·, !, @, &, $, )
    • filename begins with a number or character _ or character$
  • Support for processing assets with the same filename but different path
  • Support for processing multi projects (the main project and its sub projects in one workspace)
  • Support for auto merging old asset specifications when specifying new assets

Installation

  • search and install Flr in VSCode Extensions Marketplace
  • install vsix version from Release

Usage

If you open a folder in VSCode and with pubspec.yaml in root,

It'll show the FLR(ASSETS MANGER) session in EXPLORER window


Detail feature of Flr

+: Add flr config to pubspec.yaml

Refresh: regenerate r.g.dart according to config

Start/Stop Monitor: enable/disable resource folder monitor. if enabled, will auto refresh r.g.dart if resources changed.

Recommended Flutter Resource Structure

Flr the following flutter resource structure schemes:

  • scheme 1:

    flutter_project_root_dir
    ├── build
    │   ├── ..
    ├── lib
    │   ├── assets
    │   │   ├── images // image resource directory of all modules
    │   │   │   ├── #{module} // image resource directory of a module
    │   │   │   │   ├── #{main_image_asset}
    │   │   │   │   ├── #{variant-dir} // image resource directory of a variant
    │   │   │   │   │   ├── #{image_asset_variant}
    │   │   │   │
    │   │   │   ├── home // image resource directory of home module
    │   │   │   │   ├── home_badge.svg
    │   │   │   │   ├── home_icon.png
    │   │   │   │   ├── 3.0x // image resource directory of a 3.0x-ratio-variant
    │   │   │   │   │   ├── home_icon.png
    │   │   │   │		
    │   │   ├── texts // text resource directory
    │   │   │   │     // (you can also break it down further by module)
    │   │   │   └── test.json
    │   │   │   └── test.yaml
    │   │   │   │
    │   │   ├── fonts // font resource directory of all font-families
    │   │   │   ├── #{font-family} // font resource directory of a font-family
    │   │   │   │   ├── #{font-family}-#{font_weight_or_style}.ttf
    │   │   │   │
    │   │   │   ├── Amiri // font resource directory of Amiri font-family
    │   │   │   │   ├── Amiri-Regular.ttf
    │   │   │   │   ├── Amiri-Bold.ttf
    │   │   │   │   ├── Amiri-Italic.ttf
    │   │   │   │   ├── Amiri-BoldItalic.ttf
    │   ├── ..
    
    
  • scheme 2:

    flutter_project_root_dir
    ├── build
    │   ├── ..
    ├── lib
    │   ├── ..
    ├── assets
    │   ├── images // image resource directory of all modules
    │   │   ├── #{module} // image resource directory of a module
    │   │   │   ├── #{main_image_asset}
    │   │   │   ├── #{variant-dir} // image resource directory of a variant
    │   │   │   │   ├── #{image_asset_variant}
    │   │   │
    │   │   ├── home // image resource directory of home module
    │   │   │   ├── home_badge.svg
    │   │   │   ├── home_icon.png
    │   │   │   ├── 3.0x // image resource directory of a 3.0x-ratio-variant
    │   │   │   │   ├── home_icon.png
    │   │   │		
    │   ├── texts // text resource directory
    │   │   │     // (you can also break it down further by module)
    │   │   └── test.json
    │   │   └── test.yaml
    │   │   │
    │   ├── fonts // font resource directory of all font-families
    │   │   ├── #{font-family} // font resource directory of a font-family
    │   │   │   ├── #{font-family}-#{font_weight_or_style}.ttf
    │   │   │
    │   │   ├── Amiri // font resource directory of Amiri font-family
    │   │   │   ├── Amiri-Regular.ttf
    │   │   │   ├── Amiri-Bold.ttf
    │   │   │   ├── Amiri-Italic.ttf
    │   │   │   ├── Amiri-BoldItalic.ttf
    │   ├── ..
    
    

Big Attention, the resource structure in the root directory of the font resource MUST follow the structure described above: name the subdirectory with a font family name, and place the font resources of the font family in the subdirectory. Otherwise, Flr may not scan the font resource correctly.

Example

# pubspec.yaml
...
# flutter-resource-structure-scheme-1 example:
flr:
  core_version: 1.0.0
  # config the line length that is used to format r.g.dart
  dartfmt_line_length: 80
  # config the image and text resource directories that need to be scanned
  assets:
    - lib/assets/images
    - lib/assets/texts
  # config the font resource directories that need to be scanned
  fonts:
    - lib/assets/fonts

...

You can get more details from the following examples:

License

The extension is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].