bubble_lens 1.0.3 copy "bubble_lens: ^1.0.3" to clipboard
bubble_lens: ^1.0.3 copied to clipboard

outdated

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],
								)
						]
					),
				)
			),
		);
	}
}
82
likes
40
pub points
78%
popularity

Publisher

verified publishernicolas-bruckert.com

Flutter customizable reproduction of the Apple Watch UI animation

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on bubble_lens