flutter
4 notes.
Flutter: the Android keyboard won’t open on a field with an iOS-only TextInputAction
A TextField with TextInputAction.join works on iOS. In a debug build on Android, tapping it gives the field focus and nothing else: no keyboard, no cursor, and nothing in logcat. The release build of the same code is fine. It looks like a broken emulator keyboard and it is one line of Dart.
Test fingerprint login in the Android emulator from the command line
The Android emulator's fingerprint sensor is a console command: adb emu finger touch 1. Getting to the point where that command does anything takes a PIN, a trip through the enrollment wizard and a wait for the sensor to start listening. All of it can be scripted, including a screenshot of a prompt that adb screencap returns as a black frame.
Flutter: Check Internet Connection with connectivity_plus
To check the internet connection in a Flutter app, use the connectivity_plus package. It tells you whether the phone is on Wi-Fi, mobile data or no network at all, and when that changes. It can't tell you the internet actually works, so your requests still need to handle failure.
Flutter Login and Signup Screen tutorial: iOS + Android + PHP 8 + Biometrics
A Flutter app for iOS and Android with signup, login, logout and Face ID or fingerprint unlock, talking to a PHP 8 API. The session token goes in the Keychain or the Android Keystore, and the forms work with password AutoFill on both platforms.