Skip to content

A Flutter package that allows you to convert any widget to a glass version of itself

License

Notifications You must be signed in to change notification settings

Zachariah-Abraham/glass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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() on the widget you want to convert to glass.

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

About

A Flutter package that allows you to convert any widget to a glass version of itself

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published