defaultCloseButtonBuilder static method
Implementation
static Widget defaultCloseButtonBuilder(BuildContext context, VoidCallback onTap) {
return Container(
margin: EdgeInsets.all(5),
child: ClipOval(
child: Material(
color: Theme.of(context).errorColor,
shape: CircleBorder(),
child: InkWell(
onTap: onTap,
child: Container(
padding: EdgeInsets.all(3),
child: Center(
child: Icon(
Icons.close,
size: 9.0,
color: Colors.white,
),
),
),
),
),
),
);
}