friends_badge 0.1.3 copy "friends_badge: ^0.1.3" to clipboard
friends_badge: ^0.1.3 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 = BadgeImage(yourImage);

// Then, write the image to the badge using NFC and BLE.
await image.writeToBadge();

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

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 about how the protocol works, see the following files in the docs directory:

  • BLE Format
  • Data Format
  • End-to-End Example
  • Image Format
  • NFC Format
  • Notes
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