Provides an enhanced text field with confirm and cancel buttons, while indicating a field has changed from initial values. Assists in editing of forms and tracking and displaying changed fields.
This package is not yet available on pub.dev. To use this package, add the following to your pubspec.yaml file:
dependencies:
enhanced_text_field:
git:
url: https://github.com/cybex-dev/enhanced_text_field.git
ref: masterimport 'package:enhanced_text_field/enhanced_text_field.dart';This is a (mostly) drop-in replacement for the standard TextField widget. It provides (mostly) the same functionality, with additional features.
EnhancedTextField<String>(
initialValue: "Initial Value",
controller: TextEditingController(),
focusNode: FocusNode(),
valueMapper: ValueMapper.string,
);- Drop-in replacement for
TextFieldwidget. - Indicate field changes with
didChangeproperty - Accept/reject field changes with
Future<bool>callback