leancodepl / leancode_forms

Apache License 2.0
4 stars 1 forks source link

Detect whether a field was modified #10

Open n-bernat opened 5 months ago

n-bernat commented 5 months ago

The current implementation doesn't provide an easy way to check whether the field was modified or not.

It's a useful feature if we want to disable the submit button if there are no changes.

michalina-majewska commented 3 months ago

Do you mean a modification comparing to the initial value or to the last value?

shilangyu commented 3 months ago

Field or form? It already exists on form level https://github.com/leancodepl/leancode_forms/blob/9b6855fed648ac605303e84a47fc23b6efa0f1df/lib/src/form_group_cubit/form_group_cubit.dart#L333