Flutter setState()
What happens when Flutter startup and when we call setState(). Just an example to easy understand Layout summary First, run Press the button 1st Press the button 2nd Press the…
What happens when Flutter startup and when we call setState(). Just an example to easy understand Layout summary First, run Press the button 1st Press the button 2nd Press the…
Library use for connecting to a printer https://pub.dev/packages/esc_pos_printer To open cashier https://www.beaglehardware.com/howtoprogramcashdrawer.html Connect cashier to the printer via a phone cable Cable datasheet Controlling the cash drawer ESC POS Control…
This article presents how to implement BLoC in Flutter. The context on example: Give an edit text to get data input Handle changing the text to get final search text Deal…
Original answer: https://stackoverflow.com/questions/44991968/how-can-i-dismiss-the-on-screen-keyboard Using with BLoC In BLoC, create FocusNode, and set unfocus at any time you need to hide the keyboard In Widget, get focusNode directly via BLoC, or for…
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…
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
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