enviando cadastro cidadão individual
This commit is contained in:
@@ -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,)
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user