1. Run AS

1.1. Upgrade the Flutter

  • flutter upgrade
    Copy the code

1.2. Strong withdrawal of AS

  • If AS is forced to exit, the system will generate a lock cache file, which is used to lock the current running environmentDelete the lock file before running it
    • cd flutter/bin/cache
    • deletelockfilefile

2. Summarize the content

2.1,Incremental rendering

  • The reason why a Flutter is efficient is that a Flutter forms'Tree' structure, will only modify the changenode

2.2. Keywords are case sensitive

2.3. Set the textDirection property for the Text Widget; otherwise, an error will be reported

2.4. Widgets are divided into two states:

  • Stateful (stateful): The underlying nature is stateless, but the internal widgets can be changed by custom implementation
  • Stateless (stateless): cannot change, want to change can only create a new, replace the current

2.5. Build quick input

  • control + enter –> implement Methods
//extends StatelessWidget
@override
Widget build(BuildContext context) {
  
}
Copy the code

2.6 Data objects (state, value, etc.) try to keep and interface objects replace rendering

2.7. Basic code construction

2.8. Private variables

  • Parameter if you want to make it private, prefix it with “_”

2.9 shell,Linux hidden files

  • In Linux, there is one before the file name. Indicates that the file is hidden
    • Base Early configuration file ~/.bash_profile
    • ZSH configuration file ~/.zshrc

3. Configure environment variables

Home directory –>.zshrc –> Configure PATH

  • Define FLUTTER variables for later change
  • Load files from bash_profile (some computers upgrade from bash to ZSH and need to dump content from bash)
  • Used between multiple paths:The connection,$Used for variable expansion