패키지, 저장소 및 앱 카테고리 검색

glass_kit 표지
패키지 상세v4.0.2

glass_kit

Flutter 앱에서 글래스 모르피즘을 구현하기 위한 위젯을 포함하는 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.3만
좋아요
535
Pub 점수
160

패키지 설치

flutter pub add glass_kit

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Glass Kit는 애플리케이션에서 글래스 모르포시즘 효과를 구현하기 위해 사용할 수 있는 즉시 사용 가능한 위젯을 제공하는 Flutter 패키지입니다. 현대 디자인 트렌드에서 흔히 볼 수 있는 블러 및 투명 효과를 갖춘 시각적으로 매력적인 반투명 UI 컴포넌트를 개발자가 쉽게 만들 수 있게 해줍니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하며, 다양한 기기 간에 일관된 글래스모르포시즘 스타일링을 보장합니다. pub add를 통해 간단하게 통합할 수 있어, 복잡한 커스텀 코딩 없이도 고급 UI 요소를 추가하는 과정을 간편하게 만듭니다.

사용 사례

  • 현대적인 앱 인터페이스 만들기
  • 반투명 오버레이 디자인
  • 대시보드 배경 만들기
  • 블러 효과가 있는 플로팅 카드 구현
  • 시각적 깊이를 통한 사용자 경험 향상

주요 기능

  • 사전 구축된 글래스 모르피즘 위젯
  • 블러 효과 지원
  • 투명도 및 그라디언트 사용자 정의
  • 크로스 플랫폼 호환성
  • Flutter와의 간편한 통합
  • 반응형 디자인 지원

적합한 대상

  • 현대적인 미학을 추구하는 UI 디자이너
  • 세련된 모바일 또는 웹 앱을 개발하는 개발자
  • 몰입형 시각 효과가 필요한 프로젝트
  • 사려 깊은 사용자 인터페이스에 집중하는 팀
  • 현대 디자인 트렌드를 타겟으로 하는 앱

고려 사항

  • 강한 블러 효과로 인한 성능 영향
  • 저사양 기기에서 최적화가 필요할 수 있습니다
  • 기본적인 유리 스타일을 넘어서는 사용자 정의가 제한되어 있음
  • 빛나는 테마 디자인에 가장 적합
  • 고대비 또는 다크 모드 중심 앱에는 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Glass Kit

A package containing widgets to implement glass morphism in flutter apps


Platform Pub Package CI Codecov Coverage License: MIT Donate


Table of contents

About

GlassMorphism, is a new UI trend with a huge popularity among designers. Glass Kit provides you with widgets and other elements to implement this style in your flutter apps easily and efficiently.

Gallery:



ios-themed-glassmorphism         glassmorphism-in-card

Source code for the above can be found in the example directory here


Getting Started

You should add the following to the pubspec.yaml file:

dependencies:
  glass_kit: ^4.0.2

You should then run flutter packages get in your terminal so as to get the package.

Now import the package in the dart file:

import 'package:glass_kit/glass_kit.dart';

Usage

To create a basic clear glass container you can use the clearGlass constructor. If needed, just provide the height and width and you are good to go. The clearGlass and frostedGlass constructors assign default values to the properties if not provided.

GlassContainer.clearGlass(child: Child());

To create a frosted glass container use the frostedGlass constructor.

GlassContainer.frostedGlass(width: 300, child: Child());

Depending on your requirements you can tweak with the properties and create awesome glass widgets. You can also use the GlassContainer constructor to create fully customizable glass widgets.

Note : GlassContainer comes with properties as in a regular Container but with some exceptions and additions. Checkout the docs for the list of properties and their default values.

Here's a fully customized GlassContainer with shape as circle:

GlassContainer(
      height: 300,
      width: 400,
      gradient: LinearGradient(
        colors: [Colors.white.withOpacity(0.40), Colors.white.withOpacity(0.10)],
        begin: Alignment.topLeft,
        end: Alignment.bottomRight,
      ),
      borderGradient: LinearGradient(
        colors: [Colors.white.withOpacity(0.60), Colors.white.withOpacity(0.10), Colors.lightBlueAccent.withOpacity(0.05), Colors.lightBlueAccent.withOpacity(0.6)],
        begin: Alignment.topLeft,
        end: Alignment.bottomRight,
        stops: [0.0, 0.39, 0.40, 1.0],
      ),
      blur: 15.0,
      borderWidth: 1.5,
      elevation: 3.0,
      isFrostedGlass: true,
      shadowColor: Colors.black.withOpacity(0.20),
      alignment: Alignment.center,
      frostedOpacity: 0.12,
      margin: EdgeInsets.all(8.0),
      padding: EdgeInsets.all(8.0),
    );

Note : You can also provide borderRadius but when the shape is BoxShape.rectangle.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull requests are also welcome.

See Contributing.md.

Contributors

Thanks goes to these wonderful people (emoji key):

Kabilan VS
Kabilan VS

🐛 💻
Martin Klüpfel
Martin Klüpfel

🚧 💻
Vladimir E. Koltunov
Vladimir E. Koltunov

🐛 💻

This project follows the all-contributors specification. Contributions of any kind are welcome! See Contributing.md.

License

glass_kit is licensed under MIT License

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트