buildCancelItem method
Implementation
Widget buildCancelItem(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: Style.actionSheetCancelPaddingTop,
color: Style.actionSheetCancelPaddingColor),
DecoratedBox(
decoration: BoxDecoration(
color: Style.actionSheetItemBackground,
),
child: Material(
type: MaterialType.transparency,
child: InkWell(
child: Container(
alignment: AlignmentDirectional.center,
height: Style.actionSheetItemHeight,
child: Text(actionSheet.cancelText!,
style: TextStyle(
fontSize: Style.actionSheetItemFontSize,
color: Style.actionSheetItemTextColor)),
),
onTap: () {
if (actionSheet.onCancel != null) actionSheet.onCancel!();
close(context);
},
),
),
),
NDivider(hairline: true)
],
);
}