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

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