friends_badge 0.1.2 copy "friends_badge: ^0.1.2" to clipboard
friends_badge: ^0.1.2 copied to clipboard

Control the Flutter & Friends conference badge.

Friends Badge #

A Flutter package for writing images to e-paper badges.

With this package you can control what is displayed on the Flutter & Friends conference badge.

Features #

  • Write images to e-paper badges over NFC
  • Automatically detects the badge model and specifications
  • Supports different color palettes (B&W, BWR, BWYR)
  • Dithers images for optimal display on the e-paper screen
  • Crops and resizes images to fit the badge's aspect ratio

Usage #

To use this package, add friends_badge as a dependency in your pubspec.yaml file.

dependencies:
  friends_badge: ^0.1.0

Then, import the package in your Dart code:

import 'package:friends_badge/friends_badge.dart';

Now, you can use the FriendsBadge class to create a BadgeImage and write it to your badge:

// First, create a BadgeImage from an image.
final image = FriendsBadge.createBadgeImage(yourImage);

// Then, write the image to the badge over NFC.
await FriendsBadge.writeOverNfc(image);

// Optionally, you can show a loading indicator while writing the image.
await WaitingForNfcTap.showLoading(
  context: context,
  job: FriendsBadge.writeOverNfc(image),
);

The showLoading method will display a progress indicator while the image is being written to the badge.

Example #

For a complete example, see the example directory.

Documentation #

For detailed documentation, see the docs directory.

8
likes
0
points
27
downloads

Publisher

verified publisherflutterfriends.dev

Weekly Downloads

Control the Flutter & Friends conference badge.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_blue_plus, image, nfc_manager

More

Packages that depend on friends_badge