criado widgets dropdown_with_subtitle.dart, input_with_subtitle.dart, onbackbutton.dart, switch_with_subtitle.dart
criada as telas main_register_citizen_screen.dart e main_procedures_screen.dart
This commit is contained in:
@@ -10,6 +10,9 @@ class InputText extends StatelessWidget {
|
||||
double width;
|
||||
String label;
|
||||
String error;
|
||||
bool enable;
|
||||
TextInputType textInputType;
|
||||
int maxLines;
|
||||
|
||||
InputText({
|
||||
required this.controller,
|
||||
@@ -19,6 +22,9 @@ class InputText extends StatelessWidget {
|
||||
this.hint = '',
|
||||
this.label = '',
|
||||
this.error = '',
|
||||
this.enable = true,
|
||||
this.textInputType = TextInputType.text,
|
||||
this.maxLines = 1,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -28,6 +34,8 @@ class InputText extends StatelessWidget {
|
||||
margin: ConstVariable().marginHightInput,
|
||||
width: width,
|
||||
child: TextFormField(
|
||||
keyboardType: textInputType,
|
||||
maxLines: maxLines,
|
||||
validator: (value) {
|
||||
if (value!=null && value!.length==0) {
|
||||
return error;
|
||||
@@ -45,6 +53,7 @@ class InputText extends StatelessWidget {
|
||||
labelText: label,
|
||||
border: OutlineInputBorder(),
|
||||
hintText: this.hint,
|
||||
enabled: enable,
|
||||
hintStyle: TextStyle(
|
||||
color: ColorPalette.gray,
|
||||
fontSize: this.fontSize,
|
||||
|
||||
Reference in New Issue
Block a user