glass_animated_button 1.0.0
glass_animated_button: ^1.0.0 copied to clipboard
A customizable animated glassmorphic button for Flutter.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:glass_animated_button/glass_animated_button.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.black,
body: Center(
child: GlassAnimatedButton(
text: "Click Me",
onPressed: () {
debugPrint("Tapped!");
},
blur: 8,
borderRadius: 20,
color: Colors.white.withOpacity(0.1),
),
),
),
);
}
}