streaming_forms 0.1.0-alpha.1 copy "streaming_forms: ^0.1.0-alpha.1" to clipboard
streaming_forms: ^0.1.0-alpha.1 copied to clipboard

outdated

A form package providing Dart streams.

Streaming Forms #

style: very good analysis License: Apache License 2.0

A form package providing Dart streams.

Check out this demo to see it in action.

Rationale #

The most popular and stable form package for Flutter is definitely flutter_form_builder. However, it's design is event-driven. It solves the issue with mainly onChanged and similar callbacks.

This design has an inherent issue: It doesn't incorporate with modern stream-driven approach.

Since it doesn't get along well with streams, it will especially lead to various issues when you want to especially use a state management solution (mainly Bloc). That's because modern state management is mainly built upon streams.

I opened up this issue to explain that the library needs to incorporate with streams because I mainly wanted to integrate flutter_form_builder with bloc at that time as I was working on a project.

Not only that, I've also tried to implement it myself. Then I have realized that the whole package needed to be refactored from the very beginning, which is a heavy take on an existing and considerably-large project such as flutter_form_builder.

At the same time, I was looking for a 3rd-party solution that works well with streams, but there wasn't any good existing solution out there. For example, there's flutter_form_bloc, but it messes with raw material design that Flutter provides, which breaks visual consistency.

That's why I have created streaming_forms. A Flutter form package that specifically plays well with streams, so that you can listen to events asynchronously.

Where It is and Where It's Heading #

Currently, the package isn't even published to pub.dev. It's even before its infancy. There will be some design decisions on the API. The current goals are these:

  • Work with asynchronous events provided by streams instead of event handler callbacks so that the devs can use it with their state management solution
  • Add upon, but not change, the built-in form solutions of Flutter so that the users familiar with it can migrate easily or create forms without extra required knowledge

Installation 💻 #

❗ In order to start using Streaming you must have the Flutter SDK installed on your machine.

Add streaming_forms to your pubspec.yaml:

dependencies:
  streaming_forms:

Install it:

flutter packages get
1
likes
0
points
13
downloads

Publisher

verified publishererayerdin.com

Weekly Downloads

A form package providing Dart streams.

Repository (GitHub)
View/report issues

Topics

#widget #ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on streaming_forms