v2.0.0+2glass
允許將任何小部件轉換為其「玻璃」或「磨砂玻璃」版本
135喜歡 47近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個 Flutter 套件,可將任何組件轉換為其玻璃版本
{"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