Flutter Web and Streams | Form validation in Flutter streams | Using Streams in Flutter

Опубликовано: 10 Октябрь 2024
на канале: aseem wangoo
894
10

This video shows how to use streams in Flutter Web. (Form validation with stream) Input fields are validated (streams) using StreamTransformers.

*Flutter Web and Streams | Form validation in Flutter streams *
We will cover briefly about
1. Streams inside Forms
2. Using Flutter Hooks

Streams inside Forms
The parent widget is a HookWidget.
Inside this widget, we have created a form having 3 fields

The first field accepts anything except a blank
The second field accepts any valid integer
The third field accepts any valid double

Using Flutter Hooks
We use the useStreamController from the Flutter Hooks for our stream.
Notes:
Creates an [StreamController] automatically disposed of.
By default, the stream is a broadcast stream

URL: https://fir-signin-4477d.firebaseapp.com

Website: https://flatteredwithflutter.com/flut...

DevTo: https://dev.to/aseemwangoo/flutter-we...

Medium:   / flutter-web-and-streams  

Source Code: https://github.com/AseemWangoo/experi...

In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo

#Streams and #flutterWithMe #flatteredwithflutter