widget of type Widget is used to show counter to the top right corner of child. You can use GFBadge for compatibility.
final Widget counterChild;