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:
Reginaldo
2023-03-24 22:54:42 -03:00
parent 9677a9ce71
commit 13e9eb4b24
13 changed files with 1550 additions and 40 deletions

View File

@@ -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,