bubble_lens 1.0.0+1 bubble_lens: ^1.0.0+1 copied to clipboard
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],
)
]
),
)
),
);
}
}