flutter_corner_banner

Pub Version (including pre-releases) GitHub Pub Likes

A widget that build a custom child with banner at the corner contain text or icons.

Features:

  • Supports any child widgets
  • Supports four corner banner positions
  • Support custom styles to achieve various animation effects
  • Support Text and custom widget(like icons)

Installation

i. Add the latest version of this package to your pubspec.yaml file, and run: 'dart pub get':

dependancies:
  flutter_corner_banner: ^1.0.1

ii. Import the package in your Flutter App and use it.

import 'package:flutter_corner_banner/flutter_corner_banner.dart';

Sample

 CornerBanner(
          bannerText: 'Banner text',
          bannerColor: Colors.blue,
          bannerPosition: BannerPosition.topRight,
          bannerSize: 70,
          child: CustomWidget()
        )

Author

happy-flutter

License

Flutter Banner is available under the MIT license. See the LICENSE file for more info.