feito o cadastro do cidadão
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import '../controllers/format_txt.dart';
|
||||
import '../utils/const_variable.dart';
|
||||
|
||||
class InputText extends StatelessWidget {
|
||||
@@ -9,7 +10,6 @@ class InputText extends StatelessWidget {
|
||||
String hint;
|
||||
double width;
|
||||
String label;
|
||||
String error;
|
||||
bool enable;
|
||||
TextInputType textInputType;
|
||||
int maxLines;
|
||||
@@ -23,7 +23,6 @@ class InputText extends StatelessWidget {
|
||||
this.fontSize = 15.0,
|
||||
this.hint = '',
|
||||
this.label = '',
|
||||
this.error = '',
|
||||
this.enable = true,
|
||||
this.textInputType = TextInputType.text,
|
||||
this.maxLines = 1,
|
||||
@@ -35,18 +34,15 @@ class InputText extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
color: ColorPalette.white,
|
||||
margin: ConstVariable().marginHightInput,
|
||||
margin: EdgeInsets.only(top: 5),
|
||||
width: width,
|
||||
child: TextFormField(
|
||||
keyboardType: textInputType,
|
||||
maxLines: maxLines,
|
||||
onChanged: onChanged,
|
||||
validator: (value) {
|
||||
if (value!=null && value!.length==0) {
|
||||
return error;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
inputFormatters: [
|
||||
FormatText()
|
||||
],
|
||||
obscureText: this.obscure,
|
||||
controller: this.controller,
|
||||
style: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user