Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.
This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.
【01】– TextField text is vertically centered |
---|
[Flutter Tips 02] — Configure Flutter environment variables |
1, M1 execute POD error
Sudo arch-x86_64 gem install FFi
// Pod install is required for the first time
arch -x86_64 pod install
Check the terminal
1, pull_to_refresh Error: No named parameter with the name ‘keyboardDismissBehavior’
Solution: Import import plugins pull_to_refresh: ^1.6.4 error pull_to_refresh: 1.6.3 Otherwise you will still get the pull_to_refresh: ^1.6 version.
3, flutter Could not find the built application bundle at the build/ios/iphoneos/Runner. The app.
Solution: flutter Could not find the built application bundle at the build/ios/iphoneos/Runner. The app. This error was reported because the app package name was changed. Select Runner->Runner(Target)->Build Settings->Packaging-> “Product Name” change it to Runner.
If you want to change the name of your app, you can just change it on the info.plist Bundle display name side.
A. Try mobile phone Settings to reset the developer mode; b. Exit developer tool to open it again; c. Exit developer tool to delete lockfile. Turn it back on. Under flutterSDK, flutter->bin->cache->lockfile. The above three steps can basically solve the real machine does not display the problem.
Keep track of small problems so you don’t have to worry about them next time!