getSelectAndClearList method
Widget
getSelectAndClearList(
)
Implementation
Widget getSelectAndClearList() {
return Padding(
padding: const EdgeInsets.only(
right: 10
),
child: Material(
color: UFUColor.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(25),
onTap: isDisabled ? null : (){
selectAndClearAll!();
},
child: Padding(
padding: const EdgeInsets.fromLTRB(0, 4, 5, 4),
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(left: 10),
child: UFUText(
text: getText(),
textColor: AppTheme.themeColors.secondaryText,
textSize: UFUTextSize.heading4,
),
),
const SizedBox(
width: 10,
),
Opacity(
opacity: isDisabled ? 0.4 : 1,
child: Container(
height: 17,
width: 17,
decoration: BoxDecoration(
color: getColor(),
borderRadius: BorderRadius.circular(5),
border: Border.all(
color: AppTheme.themeColors.primary,
width: 1.0,
)),
child: getIcon(),
),
)
],
),
),
),
),
);
}