Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flat_banners

pub package

a flutter package for offers, promo and invites banners. android support
android and web.

usage

to use this plugin, add flat_banners as a dependency in your pubspec.yaml file.

demo

example

import 'package:flutter/material.dart';
import 'package:flat_banners/flat_banners.dart';
import 'package:example/controller/data_controller.dart';

void main() {
  runapp(const myapp());
}

class myapp extends statelesswidget {
  const myapp({key? key}) : super(key: key);

  @override
  widget build(buildcontext context) {
    return materialapp(
      debugshowcheckedmodebanner: false,
      title: 'banners example',
      theme: themedata(
        primaryswatch: colors.blue,
      ),
      home: const home(),
    );
  }
}

class home extends statelesswidget {
  const home({key? key}) : super(key: key);
  @override
  widget build(buildcontext context) {
    return center(
      child: flatbanners(
        imagewidth: 50,
        gradientcolors: [
          const color(0xff6c59d4).withopacity(0.9),
          const color(0xff869dfb).withopacity(0.7),
        ],
        title: 'get 500 coins by referring',
        subtitle: 'games are fun with friends!',
        btntext: 'refer a friend',
        image: 'assets/icons/social-media.png',
        onpressed: () {},
      ),
    );
  }
}

see the example app for more complex examples.

screenshot

horizontal vertical view banners vertical view banners

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.