Project structure change in progress
This commit is contained in:
16
lib/entities/text/text_entity.class.dart
Normal file
16
lib/entities/text/text_entity.class.dart
Normal file
@ -0,0 +1,16 @@
|
||||
part of '../../main.dart';
|
||||
|
||||
class TextEntity extends Entity {
|
||||
TextEntity(Map rawData, String webHost) : super(rawData, webHost);
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user