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

neumorphic_button のカバー
パッケージ詳細v0.0.1+2

neumorphic_button

Flutterアプリ全体で使用できる、カスタマイズ可能な機能を多数備えたニューモルフィックボタンを作成します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
3
いいね数
50
Pub ポイント
150

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

flutter pub add neumorphic_button

パッケージ概要

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

開発者が洗練された現代的なニューモルフィックボタンを広範なカスタマイズオプションで作成できるFlutterパッケージです。これらのボタンはソフトな影と繊細な奥行き効果を備えており、複数のプラットフォームでのアプリの視覚的魅力を高めます。色、影の強さ、角の丸み、エレベーションなどのさまざまなスタイル属性をサポートしており、アプリ全体で一貫したUIデザインを実現できます。ミニマリスティックでありながら魅力的なインターフェースを求めるデザイナーに最適で、既存のFlutterプロジェクトにスムーズに統合できます。

用途

  • 視覚的に魅力的なアプリインターフェースの作成
  • インタラクティブな要素に奥行きを加える
  • 現代的な美学を備えたモバイルおよびウェブアプリケーションの設計
  • 複数プラットフォーム間で一貫したボタンスタイルを実装する
  • タッチフィードバックによるユーザーエクスペリエンスの向上

主な機能

  • カスタマイズ可能な影と奥行き効果
  • 複数プラットフォームレンダリングのサポート
  • ボタンサイズとコーナー半径の調整可能
  • カスタマイズ可能なカラースキーム
  • 組み込みアニメーションサポート
  • Flutterウィジェットとの簡単な統合

適している対象

  • Flutterを使用するUI/UXデザイナー
  • 現代のモバイルまたはウェブアプリを開発する開発者
  • ミニマリストデザイン言語を必要とするプロジェクト
  • 視覚的一貫性に注目するチーム
  • iOS および Android 向けのアプリで、統一されたスタイルを使用

注意事項

  • 低性能デバイスではパフォーマンスの最適化が必要になる場合があります
  • 標準ボタンと比べてアクセシビリティ機能が限られている
  • 視覚的な混雑を引き起こす可能性のある過剰な使用
  • 高コントラストやダークモード中心のテーマには向いていません
  • 完全な機能を実現するには、外部の依存関係に依存しています

元の README

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

Neumorphic Button

This package lets you create Neumorphic Button with a number of customizable features that can be used throughout your Flutter app.You can create a minimal visual design style that uses monochromatic colors, subtle shadows and low contrasts to showcase buttons and cards, creating a really soft look.

Installation

  1. Add the latest version of package to your pubspec.yaml
dependencies:
  neumorphic_button: ^0.0.1+2
  1. Import the package and use it in your Flutter App.
import 'package:neumorphic_button/neumorphic_button.dart';

Features

There are a number of properties that you can specify for your neumorphic button :

  • height
  • width
  • border-radius
  • box-shape
  • shadow-color
  • spread-radius
  • blur-radius
  • onTap function

Example

Light mode neumorphic button
class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade300,
      body: Center(
          child: NeumorphicButton(
        onTap: () {},
        child: Image.asset(
          'assets/apple.png',
          height: 80,
          color: Colors.grey[700],
        ),
        BorderRadius: 12,
        bottomRightShadowBlurRadius: 15,
        bottomRightShadowSpreadRadius: 1,
        borderWidth: 5,
        backgroundColor: Colors.grey.shade300,
        topLeftShadowBlurRadius: 15,
        topLeftShadowSpreadRadius: 1,
        topLeftShadowColor: Colors.white,
        bottomRightShadowColor: Colors.grey.shade500,
        height: size.width * 0.5,
        width: size.width * 0.5,
        padding: EdgeInsets.all(50),
        bottomRightOffset: Offset(4, 4),
        topLeftOffset: Offset(-4, -4),
      )),
    );
  }
}
Dark mode neumorphic button
class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade900,
      body: Center(
          child: NeumorphicButton(
        onTap: () {},
        child: Image.asset(
          'assets/apple.png',
          height: 80,
          color: Colors.grey[700],
        ),
        BorderRadius: 12,
        bottomRightShadowBlurRadius: 15,
        bottomRightShadowSpreadRadius: 1,
        borderWidth: 5,
        backgroundColor: Colors.grey.shade900,
        topLeftShadowBlurRadius: 15,
        topLeftShadowSpreadRadius: 1,
        topLeftShadowColor: Colors.grey.shade800,
        bottomRightShadowColor: Colors.black,
        height: size.width * 0.5,
        width: size.width * 0.5,
        padding: EdgeInsets.all(50),
        bottomRightOffset: Offset(5, 5),
        topLeftOffset: Offset(-5, -5),
      )),
    );
  }
}

カテゴリー

ソースリポジトリ

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

データはまだありません。