fam 1.0.3 fam: ^1.0.3 copied to clipboard
Fam is a scripting service for flutter project asset management.
Language: 🇺🇸 English | 🇨🇳 Chinese
-
Fam Introduction
Fam is a scripting service designed for flutter project asset management.The service has the characteristics of complete functions, convenient operation, support for multiple platforms, beautiful interface, and strong customization.
-
Fam Configuration
Fam is hosted on pub.dev, you can run the following command to configure it, the command is as follows:
flutter pub global activate fam
If you have never configured the .pub-cache path, the configuration prompt will be output after the above command is executed, as follows:
macOS users:
Follow the above prompts to configure.
-
Fam Command
-
fam
orfam --help
orfam -h
This command provides a quick look at the level one commands and introductions Fam has to offer.The command output is as follows: -
fam init
Fam script service initialization configuration for project Asset file management.Running this command in a terminal will let you enter the asset management filename and class name, like this:
Note:- The name of the file is composed of lowercase letters, for example: fam; the fam.dart file will be generated later.
- The class name of the file is composed of letters, and the first letter must be capitalized, such as Fam ; the class name will be generated later abstract class Fam {}.
-
fam run
Execute the service of project asset management Fam, after execution, you can use the class name to quickly access the asset file,The output of this command is as follows:
-
fam filter size
Filter whether there are files in the project asset file that exceed the specified size, the default size is 200KB. If there is, it will be output in the form of clicking:
You can also customize the unit of the search size, for example:fam filter size -b 200 // 200 b fam filter size -k 200 // 200 kb fam filter size -m 200 // 200 mb fam filter size -g 200 // 200 gb
-
fam filter unused
Filter project asset files for files that are not used in the project. If there is, click the form to output, and do not delete unused files. As follows:
If you want to delete directly after filtering, you can usefam filter unused delete
. -
fam fix
Fix problems with projects that have been managed by Fam. For example: fam.dart file is deleted by mistake; .fam file is deleted. -
fam rename
Rename the project asset management file or rename the asset management class. There are two commandsfam rename file xx
andfam rename class xx
. -
fam delete
Delete the project's resource files. There are two commandsfam delete file xx
andfam delete mfile xx
.delete file
is to delete a single resource file;delete mfile
is to delete multiple resource files.
-
-
Fam Advantage Compared with other plugins, Fam has the following advantages.
- Fam is managed by pub.dev.
- Fam supports multiple platforms.
- Fam does not distinguish between project development tools, as long as there is a terminal.
- Fam provides some common resource management functions.
- Fam's asset reference has a short file name and can be fully prompted.
- Fam clearly classifies project assets.