enviando cadastro cidadão individual

This commit is contained in:
Reginaldo
2023-04-27 23:34:27 -03:00
parent 15419365dc
commit 0ba2af9e2c
16 changed files with 925 additions and 404 deletions

View File

@@ -28,13 +28,13 @@ class DropDownButtonDefault extends StatelessWidget {
return Column(
children: [
Container(
width: width,
width: width*0.95,
margin: ConstVariable().marginHightInput,
color: ColorPalette.white,
child: DropdownButtonHideUnderline(
child: DropdownButton(
hint: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
padding: const EdgeInsets.symmetric(horizontal: 0.0),
child: TextDefault(text: title,fontSize: ConstVariable().fontSizeInput,textAlign: TextAlign.end,color: Colors.black,),
),
value: select,
@@ -43,7 +43,7 @@ class DropDownButtonDefault extends StatelessWidget {
child: Container(
width: widthContainer,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0),
padding: EdgeInsets.symmetric(horizontal: 0.0),
child: TextDefault(
text: value,
maxLines: 2,

View File

@@ -11,6 +11,8 @@ class DropdownWithSubtitle extends StatelessWidget {
double widthContainerDropdown;
List<String> list;
var onChanged;
var onTapDelete;
bool showDelete;
Color colorBorder;
DropdownWithSubtitle({
@@ -22,7 +24,9 @@ class DropdownWithSubtitle extends StatelessWidget {
required this.hintDropdown,
required this.onChanged,
required this.list,
this.colorBorder = ColorPalette.black54,
this.colorBorder = ColorPalette.white,
this.onTapDelete = null,
this.showDelete = false
});
@override
@@ -50,14 +54,23 @@ class DropdownWithSubtitle extends StatelessWidget {
),
margin: EdgeInsets.symmetric(horizontal: 5),
padding: EdgeInsets.symmetric(horizontal: 2),
child: DropDownButtonDefault(
title: hintDropdown,
fontSize: 14,
width: widthDropdown,
widthContainer: widthContainerDropdown,
select: select,
list: list,
onChanged: onChanged,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
DropDownButtonDefault(
title: hintDropdown,
fontSize: 14,
width: widthDropdown,
widthContainer: widthContainerDropdown,
select: select,
list: list,
onChanged: onChanged,
),
select!=null &&showDelete?GestureDetector(
onTap: onTapDelete,
child: Icon(Icons.delete,color: ColorPalette.appBar,)
):Container(width: 23,)
],
),
),
],

View File

@@ -33,7 +33,7 @@ class InputWithSubtitle extends StatelessWidget {
this.mandatory = true,
this.textInputType = TextInputType.text,
this.maxLines = 1,
this.colorBorder = ColorPalette.black54,
this.colorBorder = ColorPalette.white,
required this.onChanged,
this.widthError = 0.7
});