From the course: Flutter Essential Training: Build for Multiple Platforms
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Getting inputs from the user - Flutter Tutorial
From the course: Flutter Essential Training: Build for Multiple Platforms
Getting inputs from the user
- [Instructor] User interactions are incomplete without user inputs. A lot of the time, we need users to either fill up a form and add their details for maybe a survey or to record your delivery address for package deliveries or just a simple login page very similar to the one that we are building in our application. So in Flutter, we have a widget called TextField. And if we simply run this, here you will see then now it can take some user input. Now, by default, the styling has an underline but we can change that. Let's add a property called decoration. And give it an InputDecoration. If you're wondering what should be the widget associated in the right-hand side of this property, you can just go to the documentation here and see what is the type. And here you can see that it says that by default, it draws a horizontal line under the text field. So this styling is by default. But now let's add a different…
Contents
-
-
-
-
-
-
What is state?1m 55s
-
(Locked)
Writing your first stateful widget7m 17s
-
(Locked)
Widget variables vs. state variables3m 26s
-
(Locked)
When to use stateless or stateful?1m 51s
-
(Locked)
Lifecycle of a stateful widget3m 44s
-
(Locked)
Stateful hot reload3m 22s
-
(Locked)
Learning about buttons6m 50s
-
(Locked)
Taps and gesture detection3m 47s
-
(Locked)
Getting inputs from the user7m 40s
-
(Locked)
Validating user inputs7m 55s
-
(Locked)
Creating multiline text fields6m 46s
-
(Locked)
Navigating from one screen to another5m 41s
-
(Locked)
Passing data with navigation2m 7s
-
(Locked)
Navigating via named routes4m 8s
-
(Locked)
Replacing routes using Navigator5m 16s
-
-
-
-
-