bubble_chart 0.1.1 bubble_chart: ^0.1.1 copied to clipboard
A simple Dart implementation of bubble chart. It creates bubbles in random points and collide its all to container center. Can be implemented with any features.
Bubble chart #
A simple Dart implementation of bubble chart.
Usage #
Add bubble_chart to your pubspec:
dependencies:
bubble_chart: any # or the latest version on Pub
Add in you project.
final bubbles = [
Bubble(
color: Colors.blue,
radius: 40,
builder: (context) {
return Text("ciao");
},
onTap: () {
print("tap1");
},
),
];
Widget build(BuildContext context) {
return Scaffold(
body: BubbleChart(
bubbles: bubbles,
),
);
}
Run the example #
See the example/
folder for a working example app.