From c090e9878eb8493fa78aab86a57ea06775506f9b Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 16 Oct 2019 20:26:48 -0400 Subject: [PATCH] Field comments --- lib/angel_validate.dart | 1 + lib/src/common_fields.dart | 50 ++++++++++++++++++++++++++++++++++++++ lib/src/field.dart | 24 +++++++++++++++++- lib/src/form_renderer.dart | 7 ++++++ 4 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 lib/src/common_fields.dart diff --git a/lib/angel_validate.dart b/lib/angel_validate.dart index 70a535c6..8a054d9c 100644 --- a/lib/angel_validate.dart +++ b/lib/angel_validate.dart @@ -1,3 +1,4 @@ +export 'src/common_fields.dart'; export 'src/field.dart'; export 'src/form.dart'; export 'src/form_renderer.dart'; diff --git a/lib/src/common_fields.dart b/lib/src/common_fields.dart new file mode 100644 index 00000000..867466bf --- /dev/null +++ b/lib/src/common_fields.dart @@ -0,0 +1,50 @@ +import 'dart:async'; +import 'package:angel_framework/angel_framework.dart'; +import 'field.dart'; +import 'form_renderer.dart'; + +/// A [Field] that accepts plain text. +class TextField extends Field { + /// If `true`, then renderers will produce a `