搜索插件、代码仓与 APP 分类

nice_buttons 封面
插件详情v0.0.3

nice_buttons

一个美观、动画流畅且可自定义的3D按钮,适用于您的Flutter项目,内置进度指示器和出色的按下动画。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
90
喜欢数
64
Pub 分数
155

安装插件

flutter pub add nice_buttons

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Nice Buttons 是一个 Flutter 包,提供视觉上吸引人、带有平滑按压动画和集成进度指示器的动画 3D 按钮。专为现代应用程序界面设计,通过动态反馈和可自定义的样式增强用户交互体验。该按钮支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台,非常适合跨平台项目。通过直观的自定义选项,开发者可以轻松调整颜色、阴影和动画行为,以匹配其应用的设计语言。

适合场景

  • 通过交互式3D按钮增强用户界面
  • 使用内置进度显示加载状态
  • 创建引人入胜的行动号召元素
  • 改进表单和操作中的用户反馈
  • 为移动和网络应用增添精致细节

主要特点

  • 3D 动画按钮效果
  • 内置进度指示器
  • 可自定义的外观和行为
  • 平滑的按压动画
  • 跨平台兼容性
  • 通过 pub.dev 实现轻松集成

适合对象

  • 寻求吸引人用户界面组件的Flutter开发者
  • 在交互过程中需要视觉反馈的项目
  • 追求现代、精致设计的应用程序
  • 专注于用户体验提升的开发者
  • 构建多平台应用的团队

使用建议

  • 在低端设备上可能需要性能调优
  • 自定义选项可能会略微增加包大小
  • 动画复杂度如果使用过度,可能会影响响应速度
  • 最适合具有明确单一操作的按钮
  • 不推荐用于无需动画的简单静态按钮

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

nice_buttons

nice_buttons a beautiful, animated, and customizable 3D button for your flutter project.

Platform Support
Android iOS Web MacOS Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

Sample Image

Installation

Add it as a dependency in their pubspec.yaml:

dependencies:
  nice_buttons: ^0.0.3
Customizations
Attribute Type Default Description
startColor Color 0xFF2ec8ff The gradient start color
endColor Color 0xFF529fff The gradient end color
borderColor Color 0xFF3489e9 The color of the 3D border.
progressColor Color white The color of circular progress indicator, defaults to white
progressSize Double 20 The size of progress indicator circle, defaults to 20
gradientOrientation GradientOrientation Horizontal Orientation of the gradient defaults to Horizontal
borderThickness Double 5 The thickness of the 3D border, defaults to 5
height Double 60 Height of the button, defaults to 60
width Double 200 Width of the button defaults to 200, its useless if the stretch property is set to true
stretch bool true Whether to occupy the full available space in the parent, defaults to true
borderRadius Double 20 The border radius of the button, defaults to 20
progress bool false Whether the progress indicator is required or not, defaults to false
disabled bool false Disables the button, defaults to false
onTap Function(void Function() finish) Button tap handler with finish callback to reset the state of progress and animation when called, required*
child Widget Inner content for the button, required*
Usage
...
import 'package:nice_buttons/nice_buttons.dart';
...
NiceButtons(
  stretch: true,
  gradientOrientation: GradientOrientation.Horizontal,
  onTap: (finish) {
    print('On tap called');
  },
  child: Text(
    'Full Width',
    style: TextStyle(color: Colors.white, fontSize: 18),
  ),
);

Check example folder for more examples.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。