fam 1.0.5
fam: ^1.0.5 copied to clipboard
Fam is a scripting service for flutter project asset management.
![]()
Language: 🇺🇸 English | 🇨🇳 Chinese
-
Special Note
The upgrade method of the Fam version is as follows:- Users whose Fam version is less than 1.0.5 use
flutter pub global activate famto update. - Users whose Fam version is greater than or equal to 1.0.5 can use
fam --updateorfam --update x.x.xto update.
- Users whose Fam version is less than 1.0.5 use
-
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 famIf 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.window users:

Follow the above prompts to configure. -
Fam Command
-
famorfam --helporfam -hThis 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 runExecute 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 unusedFilter 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 use fam filter unused delete. -
fam fixFix problems with projects that have been managed by Fam. For example: fam.dart file is deleted by mistake; .fam file is deleted. -
fam renameRename the project asset management file or rename the asset management class. There are two commandsfam rename file xxandfam rename class xx. -
fam deleteDelete the project's resource files. There are two commandsfam delete file xxandfam delete mfile xx.delete fileis to delete a single resource file;delete mfileis to delete multiple resource files.
Note: The following commands can only be used if the Fam version is greater than or equal to 1.0.5
fam --version
Get the currently installed Fam version.fam --releases
Get all installable versions of Fam.fam --update&fam --update x.x.x
Upgrade to the latest version of Fam, you can also specify a version upgrade.
-
-
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.