v2.0.0+2glass
किसी भी विजेट को उसके "ग्लास" या "फ्रोस्टेड ग्लास" संस्करण में परिवर्तित करने की अनुमति देता है
एक फ्लटर पैकेज जो किसी भी विजेट को उसके ग्लास संस्करण में बदलने की अनुमति देता है
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Easily convert any Widget into a glass / frosted glass version of itself, following the glassmorphism / glassmorphic design trend.
Sample screenshot Sample screenshot 2
Add this to your package's pubspec.yaml file:
dependencies:
glass:
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.
Now in your Flutter code, you can use:
import 'package:glass/glass.dart';
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
Visit my LinkedIn at https://www.linkedin.com/in/zaca