Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rahiche/flutter-badge
- Owner: Rahiche
- License: apache-2.0
- Created: 2018-05-07T00:15:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T09:12:38.000Z (over 5 years ago)
- Last Synced: 2024-07-24T00:14:14.406Z (5 months ago)
- Language: Dart
- Size: 70.3 KB
- Stars: 86
- Watchers: 4
- Forks: 37
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.
## 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/).