パッケージ、リポジトリ、アプリカテゴリを検索

glossy のカバー
パッケージ詳細v0.0.5

glossy

Glossy:洗練されたガラスモーフィックUIエフェクトを作成するためのFlutterパッケージで、現代的なアプリデザインやスタイリッシュなユーザーインターフェースに最適です。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2790
いいね数
115
Pub ポイント
140

パッケージをインストール

flutter pub add glossy

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Glossy は、開発者が洗練されたガラスモーフィックUIエフェクトを簡単に実装できるFlutterパッケージです。現代的なアプリデザインに最適なカスタマイズ可能な半透明で曇ったガラスのようなコンポーネントを提供します。Android、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしており、奥行きと視覚的魅力をもってユーザーインターフェースを強化します。軽量で、単純なpub addコマンドで既存のFlutterプロジェクトにスムーズに統合できます。スタイリッシュなオーバーレイ、カード、浮遊要素を現代的な美学で作成するのに最適です。

用途

  • モダンなアプリインターフェースの作成
  • 浮遊UIカードのデザイン
  • フロストガラスオーバーレイの実装
  • 透明度を活用したアプリの美しさの向上
  • 洗練されたナビゲーションバーの構築
  • UIコンポーネントに奥行きを加える

主な機能

  • pub を通じた簡単な統合
  • クロスプラットフォーム互換性
  • カスタマイズ可能なぼかしと不透明度
  • 影とボーダーをサポートしています
  • 軽量で高性能
  • 事前に定義されたガラスモルフィックウィジェット

適している対象

  • モダンな見た目を求めるUIデザイナー
  • スタイリッシュなアプリを開発する開発者
  • 透過効果を必要とするプロジェクト
  • Flutterの初心者が高度なUIを探索する
  • プレミアムユーザー体験をターゲットにしたアプリ

注意事項

  • 低スペックデバイスへのパフォーマンスへの影響
  • ぼかしと色以外のカスタマイズは限られている
  • 異なる画面密度でのテストが必要になる場合があります
  • 高コントラストアクセシビリティの要件には適していません
  • 繊細なデザイン要素と併用するのが最適です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Screenshots

App Screenshot

Overview

This Flutter package allows you to easily create glass morphism effects in your Flutter applications. Glass morphism is a design trend that involves using blurred, semi-transparent elements to create a frosted glass-like effect.

Installation

To use this package, add glossy as a dependency in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  glossy: ^0.0.5

OR

Open your termilar in the project level and run this command.

flutter pub add glossy

Usage

You can use the GlossyContainer widget provided by this package to create glass morphism effects. Here's a basic example:

import 'package:flutter/material.dart';
import 'package:glossy/glossy.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        appBar: AppBar(
          title: const Text('Glass Morphism Example'),
        ),
        body: Center(
          child: SizedBox(
            width: 300,
            height: 300,
            child: Stack(
              children: [
                Container(
                  height: 140,
                  width: 140,
                  decoration: (BoxDecoration(
                      color: Colors.purple,
                      borderRadius: BorderRadius.circular(70))),
                ),
                Align(
                  alignment: Alignment.bottomRight,
                  child: Container(
                    height: 140,
                    width: 140,
                    decoration: (BoxDecoration(
                        color: Colors.purple,
                        borderRadius: BorderRadius.circular(70))),
                  ),
                ),
                Align(
                  alignment: Alignment.center,
                  child: GlossyContainer(
                    width: 200,
                    height: 200,
                    borderRadius: BorderRadius.circular(12),
                    child: const Center(
                      child: Text(
                        'Glass Morphism',
                        style: TextStyle(
                          fontSize: 20,
                          fontWeight: FontWeight.bold,
                          color: Colors.white,
                        ),
                      ),
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

Parameters

  • width: The width of the container required.
  • height: The height of the container required.
  • borderRadius: The border radius of the container.
  • blur: The amount of blur to apply to the container.
  • child: The widget placed inside the glass container.
  • color: Background color of the container.
  • opacity: Opacity of the container.
  • strengthX: Strength of blur in the horizontal direction.
  • strengthY: Strength of blur in the vertical direction.
  • border: Border of the container.
  • blendMode: Blend mode for applying filter.
  • gradient: Gradient of the container.
  • boxShadow: Box shadows for the container.
  • image: Background image of the container.
  • imageOpacity: Opacity of the background image.

Support

If you find this project helpful and would like to support its development, you can connect with me on social media:

Your support and feedback are greatly appreciated and will help in further improving this project.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト