Flutter Can not focus on the TextField after navigation
The reason: The widget will rebuild when focus lost or in focus. If you declare request focus in new to hide the keyboard in widget build method, when you click on…
The reason: The widget will rebuild when focus lost or in focus. If you declare request focus in new to hide the keyboard in widget build method, when you click on…
After call rest api, you need to cache it on local for offline use. Deal with persist data: https://flutter.dev/docs/cookbook/persistence/sqlite Work with cached images: https://flutter.dev/docs/cookbook/images/cached-images State management with BLoC: https://www.nhancv.com/2019/10/flutter-state-management-with-bloc.html Let’s begin! About caching…
Error at boot: Fix
Snipcode
=> Container must be set to color to get a valid gesture tab. If the color does not set, the tap will not work. Just set to transparent
Android Update \android\app\src\main\res\drawable\launch_background.xml (remember using resource in drawable not in mipmap) Update \android\app\src\main\res\values\styles.xml Update android native MainActivity at src\main\… Kotlin Java IOS
Ref: https://medium.com/the-node-js-collection/making-your-node-js-work-everywhere-with-environment-variables-2da8cdf6e786 https://www.npmjs.com/package/dotenv Install Read env file
Ref: https://medium.com/@ysteven.chen2/how-to-deploy-your-react-app-on-heroku-and-create-your-environment-variables-8bc8e2ca7f78 Using cli heroku config:set TOKEN=token123 Using web ui: Go to project dashboard -> Settings: https://dashboard.heroku.com/apps/ntradebot/settings Config Vars -> Reveal Config Vars Add variables
Example layout Note for Android. Dont put <item name= “android:windowFullscreen”>true</item>in to main/src/res/values/sytles.xml LaunchTheme. Just keep origin version For full screen at splash use this approach: https://www.nhancv.com/2019/10/flutter-splash-screen.html