confirmBanner method
- WidgetRef ref,
- BuildContext context
Asks the user if they want to continue without a banner.
Implementation
Future<bool> confirmBanner(
WidgetRef ref,
BuildContext context,
) async {
if (ref.read(createActivityProvider).bannerDownloadURL == null) {
final postWithoutBanner = await yesAbortDialog(
context: context,
title: t.banner.noBanner,
body: t.banner.check,
);
return postWithoutBanner == DialogAction.yes;
}
return true;
}