Code structure

This commit is contained in:
Yegor Vialov
2018-10-27 14:27:41 +03:00
parent df56f6ceda
commit 9edfec7dff
39 changed files with 2535 additions and 2474 deletions

View File

@ -0,0 +1,16 @@
part of '../main.dart';
class TextEntity extends Entity {
TextEntity(Map rawData) : super(rawData);
int get valueMinLength => attributes["min"] ?? -1;
int get valueMaxLength => attributes["max"] ?? -1;
String get valuePattern => attributes["pattern"] ?? null;
bool get isTextField => attributes["mode"] == "text";
bool get isPasswordField => attributes["mode"] == "password";
@override
Widget _buildStatePart(BuildContext context) {
return TextInputStateWidget();
}
}