Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Flutter for Beginners

You're reading from   Flutter for Beginners An introductory guide to building cross-platform mobile applications with Flutter and Dart 2

Arrow left icon
Product type Paperback
Published in Sep 2019
Publisher Packt
ISBN-13 9781788996082
Length 512 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alessandro Biessek Alessandro Biessek
Author Profile Icon Alessandro Biessek
Alessandro Biessek
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Introduction to Dart
2. An Introduction to Dart FREE CHAPTER 3. Intermediate Dart Programming 4. An Introduction to Flutter 5. Section 2: The Flutter User Interface - Everything is a Widget
6. Widgets: Building Layouts in Flutter 7. Handling User Input and Gestures 8. Theming and Styling 9. Routing: Navigating between Screens 10. Section 3: Developing Fully Featured Apps
11. Firebase Plugins 12. Developing Your Own Flutter Plugin 13. Accessing Device Features from the Flutter App 14. Platform Views and Map Integration 15. Section 4: Advanced Flutter - Resources to Complex Apps
16. Testing, Debugging, and Deployment 17. Improving User Experience 18. Widget Graphic Manipulations 19. Animations 20. Other Books You May Enjoy

Custom input and FormField

We have seen how the Form and FormField widgets help with input manipulation and validation. Also, we know that Flutter comes with a series of input widgets that are FormField variants, and so, contains helper functions to access and validate data, for example.

The extensibility and flexibility of Flutter is everywhere in the framework. So, creating custom fields is logically possible, where we can add our own input method, expose validation through validator callback, and also use the save() and reset() methods.

Creating custom inputs

Creating a custom input in Flutter is as simple as creating a normal widget, with the additional methods described earlier. We normally do this by extending the FormField...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime