glass 0.0.7
glass: ^0.0.7 copied to clipboard
Allows conversion of any widget to a "glass" or "frosted glass" version of itself
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:glass/glass.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
image: AssetImage('images/demo.png'),
),
),
child: Center(
child: Container(
child: Padding(
padding: EdgeInsets.all(30.0),
child: Text(
"Hello",
style: TextStyle(color: Colors.white),
),
),
).asGlass(),
),
),
),
);
}
}