Problems encountered in flutter practice:
1.Waiting for another flutter command to release the startup lock
Solutions:
1. Open the installation directory of Flutter, /bin/cache/
2. Delete lockfile
3. Restart AndroidStudio
2. Component overflow after the soft keyboard springs up
Solutions:
A layer of SingleChildScrollView is nested to avoid this. When the soft keyboard pops up, the components below will be automatically jacked up by the soft keyboard.
3.SafeArea
Solutions:
It is best to nest a layer of SafeArea components on the outermost layer, so that the UI components are in a “safe zone” without causing adaptation problems.
Material(
color: AppTheme.surfaceColor,
child: SafeArea(
child: Container(),
),
)
Copy the code