testpackage_banner 1.0.0 copy "testpackage_banner: ^1.0.0" to clipboard
testpackage_banner: ^1.0.0 copied to clipboard

Create a simple overlay banner.

Create a simple overlay banner using an image link.

Features #

You can create a simple overlay banner at the bottom of the screen.

Getting started #

Import the package from pub.dev

Usage #

Create a variable with the banner url and then call the showBannerOverlay method with the parameters context and the banner Url.

import 'package:flutter/material.dart';

final String bannerUrl =
      'https://www.firstsouth.com/files/firstsou19/1/image/Website%20Header%20Images/051823_FS_WebHeaderImage-CDIRA.jpg.webp';

@override
  void initState() {
    WidgetsBinding.instance
        .addPostFrameCallback((_) => showBannerOverlay(context, bannerUrl));
  }
1
likes
115
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Create a simple overlay banner.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSL-1.0 (license)

Dependencies

flutter

More

Packages that depend on testpackage_banner