搜尋套件、儲存庫與 APP 分類

animated_neumorphic 封面
套件詳情v0.2.0

animated_neumorphic

一個包含擬物化主題容器的 Flutter 套件,可透過變更值隱式動畫。使用簡單,就像使用 Flutter 內建的 Animated 小工具一樣。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
100
喜歡數
23
Pub 分數
160

安裝套件

flutter pub add animated_neumorphic

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

AnimatedNeumorphic 是一個 Flutter 套件,提供具備內建隱式動畫的擬態容器。它讓開發者能夠建立柔軟、深度豐富的 UI 元素,能動態回應值的變更,模擬真實世界的觸覺反饋。設計簡單,可與 Flutter 的動畫系統無縫整合——就像標準的 Animated 組件一樣。適合現代、極簡介面,透過細微的視覺過渡提升使用者體驗,無需複雜程式碼。該套件支援所有主要平台,讓跨平台應用更具彈性。

適用情境

  • 建立具有深度效果的互動式按鈕
  • 設計具有平滑陰影過渡的動態卡片
  • 使用擬物化樣式構建響應式UI組件
  • 透過柔軟、現代的設計增強應用美學
  • 在表單元素中實現觸控反饋
  • 在 Android、iOS 和 Web 上開發一致的使用者介面

主要特色

  • 值變更時的隱式動畫
  • 擬物化主題容器設計
  • 類似於 Flutter 的 Animated 小部件的簡單 API
  • 跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 可自定的明暗陰影和深度
  • 與現有 Flutter 專案的輕鬆整合

適合對象

  • 尋求現代擬物效果的UI設計師
  • 開發視覺豐富的跨平台應用程式之開發者
  • 專注於精緻、觸感良好的使用者體驗
  • 初學者探索高級Flutter動畫
  • 需要微妙且吸引人的互動的應用程式

使用建議

  • 由於陰影渲染,可能會影響低階設備的效能
  • 需要仔細選擇顏色和對比度以確保可訪問性
  • 與完整客製塗裝相比,自訂選項有限
  • 最適合輕量級、非重型使用者介面
  • 不適合高性能量或遊戲應用

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

animated_neumorphic

A Flutter package that contains Neumorphismic theme Container.

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  animated_neumorphic: "^0.1.0"

In your library add the following import:

import 'package:animated_neumorphic/animated_neumorphic.dart';

For help getting started with Flutter, view the online documentation.

Usage

For simple button:

class NeumorphicButton extends StatefulWidget {
  final bool isActive;

  const NeumorphicButton({Key key, this.isActive}) : super(key: key);

  @override
  _NeumorphicButtonState createState() => _NeumorphicButtonState();
}

class _NeumorphicButtonState extends State<NeumorphicButton> {
  bool _isActive = false;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () {
        setState(() {
          _isActive = !_isActive;
        });
      },
      child: AnimatedNeumorphicContainer(
        depth: _isActive ? 0.0 : 1.0,
        color: Color(0xFFF2F2F2),
        width: 60,
        height: 60,
        radius: 16,
        child: Icon(Icons.access_time),
      ),
    );
  }
}

Changelog

Please see the Changelog page to know what's recently changed.

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。