Sign in

Hello! there, So you want to create Birthday app and want to throw some confetti on the user then Confetti widget is made for you.

Let’s set you up

Let’s add the package in your pubspec.yaml file

Dependencies

confetti: ^0.5.5

Run flutter pub get

Import The Package in Confetti.dart

import 'package:confetti/confetti.dart';

Implementation

First of all let’s add some ConfettiControllers in the file Confetti.dart

import 'package:confetti/confetti.dart';
import 'package:flutter/material.dart';
class Confetti extends StatefulWidget {
@override
_ConfettiState createState() => _ConfettiState();
}
class _ConfettiState extends State<Confetti> {
ConfettiController _controllerCenterRight;
ConfettiController _controllerCenterLeft;
@override
Widget build(BuildContext context) {
return Container();
}
}

To throw the confetti…

Gautam goyal

A flutter app developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store