v2.0.0+2glass
모든 위젯을 '글래스' 또는 '프로스트 글래스' 버전으로 변환할 수 있게 합니다
135좋아요 4730일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
모든 위젯을 유리 버전으로 변환할 수 있는 플러터 패키지
{"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