Skip to content

Banner ad dispose not handling automatically #45

@ghost

Description

There is might be issue with BannerWidget

Issue:

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
BannerWidgetStateImpl.dispose failed to call super.dispose.
dispose() implementations must always call their superclass dispose() method, to ensure that all the resources used by the widget are fully released.

Approch I have tried:

class PreviewBannerAds extends StatelessWidget {
  const PreviewBannerAds({super.key});


  @override
  Widget build(BuildContext context) {
    return const BannerWidget(
      casId: CasAiAds.casId,
      size: AdSize.banner,
      isAutoloadEnabled: true,
      refreshInterval: 30,
    );
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions