bubble_lens 1.0.3
bubble_lens: ^1.0.3 copied to clipboard

Flutter customizable reproduction of the Apple Watch UI animation

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:bubble_lens/bubble_lens.dart';

void main() {
	runApp(MyApp());
}

class MyApp extends StatelessWidget {
	@override
	Widget build(BuildContext context) {
		return MaterialApp(
			title: 'Bubble Lens',
			home: MyHomePage(),
		);
	}
}

class MyHomePage extends StatelessWidget {
	@override
	Widget build(BuildContext context) {
		return Scaffold(
			backgroundColor: Colors.white,
			body: Center(
				child: Container(
					color: Colors.black,
					child: BubbleLens(
						width: 300,
						height: 300,
						widgets: [
							for (var i = 0; i < 7; i++)
								Container(
									width: 100,
									height: 100,
									color: [Colors.red, Colors.green, Colors.blue][i % 3],
								)
						]
					),
				)
			),
		);
	}
}
10
likes
100
pub points
57%
popularity

Publisher

nicolas-bruckert.com

Flutter customizable reproduction of the Apple Watch UI animation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on bubble_lens