yousifk / Flutter-Badge

A Flutter widget that help you to create badages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badge

pub package

A Flutter widget that help you to create badges easily.

badges

Getting Started

Add dependency to pubspec.yaml

[...]
dependencies:
  badge: any
[...]

Install the package using Terminal

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

import

import 'package:badge/badge.dart';

Example

new Badge.before(
  value: "Text", // value to show inside the badge
  child: new Text("button") // text to append (required)
)

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

About

A Flutter widget that help you to create badages

License:Apache License 2.0


Languages

Language:Dart 82.4%Language:Objective-C 13.6%Language:Java 4.0%