workfire library

Workfire - A beautiful, performant, and customizable firework widget for Flutter

This library provides widgets for creating stunning firework animations with realistic physics and comprehensive customization options.

Features

  • Customizable rocket and explosion effects
  • Realistic physics with gravity
  • Sequential firework shows
  • Click-through design
  • Performance optimized

Usage

import 'package:workfire/workfire.dart';

Firework(
  startingPosition: Offset(100, 500),
  endingPosition: Offset(200, 200),
  particleColors: [Colors.red, Colors.orange, Colors.yellow],
  onComplete: () => print('Firework completed!'),
)

Classes

Firework
A customizable firework widget that creates beautiful firework animations.
FireworkConfig
Configuration for a single firework in a show.
FireworkShow
A widget that manages multiple fireworks and makes them easy to sequence.

Extensions

OffsetExtension on Offset
Extension to normalize an Offset vector.