Project

General

Profile

Actions

dev #1436

open

Add Ad Container at the bottom of all screen with Cross Button to Hide Ads

Added by Ayat Rahman over 1 year ago. Updated over 1 year ago.

Status:
Complete
Priority:
High
Assignee:
Target version:
Start date:
12/11/2024
Due date:
12/11/2024 (about 16 months late)
% Done:

100%

Estimated time:
7:00 h
Spent time:

Description

Objective:
Implement an ad container at the bottom of the screen that can be shown/hidden based on user interaction. The ad container should have a floating cross button on the top-right corner to close the ad.

Requirements:

  1. Ad Placement:

    • The ad container should be placed at the bottom of the screen.
    • Initially, the ad container should be hidden, and it will appear dynamically when triggered.
    • The ad container should have a background color that is transparent or customizable.
    • The container should use a SizedBox or similar widget to ensure it adapts to dynamic content or visibility.
  2. Cross Button for Hiding Ads:

    • Add a cross button at the top-right corner of the ad container.
    • When the cross button is pressed, the ad container should hide smoothly, and the UI should be readjusted accordingly.
  3. Ad Loading:

    • The container should load ads using the Google Mobile Ads SDK (BannerAd).
    • Ensure that the ad container reacts to loading events, such as successfully loaded or failed to load, by using the onAdLoaded and onAdFailedToLoad listeners.
    • Update the state (adStatusProvider) when an ad is successfully loaded or fails to load.

Actions

Also available in: Atom PDF