bubble_lens 2.0.0 bubble_lens: ^2.0.0 copied to clipboard
Flutter customizable reproduction of the Apple Watch UI animation
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],
)
]
),
)
),
);
}
}