feito o cadastro do cidadão
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import '../utils/color_palette.dart';
|
||||
import 'error_default.dart';
|
||||
import 'input_text.dart';
|
||||
|
||||
class InputWithSubtitle extends StatelessWidget {
|
||||
@@ -10,8 +11,11 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
String labelInput;
|
||||
double widthSubtitle;
|
||||
double widthInput;
|
||||
double widthError;
|
||||
var controller;
|
||||
var onChanged;
|
||||
bool enable;
|
||||
bool mandatory;
|
||||
TextInputType textInputType;
|
||||
int maxLines;
|
||||
Color colorBorder;
|
||||
@@ -25,9 +29,12 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
required this.widthInput,
|
||||
required this.controller,
|
||||
this.enable = true,
|
||||
this.mandatory = true,
|
||||
this.textInputType = TextInputType.text,
|
||||
this.maxLines = 1,
|
||||
this.colorBorder = ColorPalette.black54
|
||||
this.colorBorder = ColorPalette.black54,
|
||||
required this.onChanged,
|
||||
this.widthError = 0.7
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -49,13 +56,14 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
controller: controller,
|
||||
width: widthInput,
|
||||
hint: hintInput,
|
||||
error: errorInput,
|
||||
label: labelInput,
|
||||
enable: enable,
|
||||
textInputType: textInputType,
|
||||
maxLines:maxLines,
|
||||
colorBorder: colorBorder,
|
||||
onChanged: onChanged,
|
||||
),
|
||||
controller.text=='' &&(enable&&mandatory)?ErrorDefault(widthDefault: widthError,):Container(),
|
||||
Divider(color: ColorPalette.black54,height: 5,endIndent: 10,)
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user