bubble_lens 2.0.0 copy "bubble_lens: ^2.0.0" to clipboard
bubble_lens: ^2.0.0 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: MediaQuery.of(context).size.width,
						height: MediaQuery.of(context).size.height,
						widgets: [
							for (var i = 0; i < 100; i++)
								Container(
									width: 100,
									height: 100,
									color: [Colors.red, Colors.green, Colors.blue][i % 3],
								)
						]
					),
				)
			),
		);
	}
}
81
likes
130
pub points
77%
popularity

Publisher

verified publishernicolas-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