mobile

How to Use Textwatcher in Android

The Android framework provides the EditText interface element to allow the entry and editing of text. There are some use cases where one might need to detect text changes as they are typed in the EditText and react accordingly. One use case could be showing auto suggest values. The TextWatcher interface can be used for listening in for changes in text in an EditText. This interface has three abstract methods -  afterTextChanged(Editable s) beforeTextChanged(CharSequence s, int start, int count, int after) onTextChanged(CharSequence s, int start, int before, int count) Wiring the TextWatcher to the EditText If you take a look at EditText’s documentation, you won’t see any obvious way to wire the TextWatcher to it.

How to Use Datepicker in Flutter

Its not too tough, really. We are going to create a very simple project to demonstrate the use of the datepicker, in particular the material datepicker. Suggested readings Flutter for Beginners: An introductory guide to building cross-platform mobile applications with Flutter and Dart 2 Beginning App Development with Flutter: Create Cross-Platform Mobile Apps Lets see how its going to look. It just consists of a text and an icon button.

Creating an OTP Screen in Flutter

Nowadays, one time password (OTP) is used a lot as an authentication mechanism. Sometimes the OTP is sent using SMS and sometimes its sent through email. A screen for users to input the OTP has to be created. In this article we will talk about creating a simple screen in flutter to allow users to enter the OTP. Suggested readings Flutter for Beginners: An introductory guide to building cross-platform mobile applications with Flutter and Dart 2

Login Flow in Flutter

In this article, I will be showing a simple flutter app that will demonstrate a typical mobile login flow. This article is not an introductory tutorial on flutter or programming. I am assuming that the reader knows programming and has basic understanding of how flutter works. You can find more from flutter.io. Suggested readings Flutter for Beginners: An introductory guide to building cross-platform mobile applications with Flutter and Dart 2