glass 0.0.2 copy "glass: ^0.0.2" to clipboard
glass: ^0.0.2 copied to clipboard

outdated

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(),
          ),
        ),
      ),
    );
  }
}
123
likes
0
points
46
downloads

Publisher

verified publisherzac.ac

Weekly Downloads

Allows conversion of any widget to a "glass" or "frosted glass" version of itself

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on glass