glass 1.0.1+1 icon indicating copy to clipboard operation
glass: ^1.0.1+1 copied to clipboard

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

Pub Version License Codemagic build status

Glass #

Easily convert any Widget into a glass / frosted glass version of itself, following the glassmorphism / glassmorphic design trend.

Sample screenshot Sample screenshot 2

Installation #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
    glass:

2. Install it #

You can install packages from the command line:

$ pub get
..

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it #

Now in your Flutter code, you can use:

import 'package:glass/glass.dart';

Usage #

Simply call .asGlass()

For example:

Container(
    child: someChild,
).asGlass()

A full example can be found in the example directory

About me #

Visit my LinkedIn at https://www.linkedin.com/in/zaca

37
likes
130
pub points
93%
popularity

Publisher

shield icon for verified publisherszac.ac

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on glass