Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahiche/flutter-badge

A Flutter widget that help you to create badages
https://github.com/rahiche/flutter-badge

Last synced: 2 months ago
JSON representation

A Flutter widget that help you to create badages

Awesome Lists containing this project

README

        

# badge

[![pub package](https://img.shields.io/pub/v/badge.svg)](https://pub.dartlang.org/packages/badge)

A Flutter widget that help you to create badges easily.


badges

## Getting Started

### Add dependency to pubspec.yaml

```yaml
[...]
dependencies:
badge: any
[...]
```

### Install the package using Terminal

```bash
$ flutter packages get
```

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

### import

```dart
import 'package:badge/badge.dart';
```

### Example

```dart
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](https://flutter.io/).

For help on editing package code, view the [documentation](https://flutter.io/developing-packages/).