glass 2.0.0+2 copy "glass: ^2.0.0+2" to clipboard
glass: ^2.0.0+2 copied to clipboard

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

Pub Version License

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:
copied to clipboard

2. Install it #

You can install packages from the command line:

$ pub get
..
copied to clipboard

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';
copied to clipboard

Usage #

Simply call .asGlass()

For example:

Container(
    child: someChild,
).asGlass()
copied to clipboard

A full example can be found in the example directory

About me #

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

118
likes
150
points
32
downloads

Publisher

verified publisherzac.ac

Weekly Downloads

2024.07.20 - 2025.02.01

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

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on glass