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

circular 封面
插件详情v0.0.5

circular

Flutter 包,用于在圆形滑块中选择和显示数据,使处理特定范围内的值变得简单

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
93
喜欢数
29
Pub 分数
140

安装插件

flutter pub add circular

插件介绍

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

圆形包是一个Flutter库,旨在创建和管理圆形滑块,以便在指定范围内直观地选择值。它使开发者能够以视觉上引人入胜的圆形格式显示和选择数据,非常适合音量控制、角度选择器或百分比输入等场景。该包支持Android、iOS、Web、macOS、Windows和Linux等多个平台,确保在各种设备上行为一致。通过可自定义的外观和流畅的交互体验,它简化了将圆形输入机制集成到Flutter应用中的过程。

适合场景

  • 在360度范围内调整数值
  • 为亮度或音量等设置创建直观的用户界面
  • 设计交互式仪表板
  • 实现角度或百分比选择器
  • 使用视觉反馈构建自定义表单输入

主要特点

  • 带有平滑旋转的圆形滑块
  • 可配置的范围和步长值
  • 跨平台兼容性
  • 可自定义的样式和颜色
  • 内置的值变化回调
  • 响应式触摸和拖拽支持

适合对象

  • UI 设计师寻求视觉输入组件
  • 开发控制面板或设置界面的开发者
  • 需要非线性值选择的应用程序
  • 针对多个平台且具有一致用户体验的项目
  • 教育或互动应用程序

使用建议

  • 可能需要额外的逻辑来实现精确的值映射
  • 在低端设备上,复杂动画的性能可能会有所不同
  • 内置验证功能有限,仅限于范围约束
  • 未针对高频更新进行优化,且未启用节流

原始 README

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

Circular

Features

  • picking values in specific range
  • displaying values in a a circular slider

Getting started

add the package
flutter pub add circular
import the package
import 'package:circular/circular.dart';

Usage

Circular slider
CircularSlider(
decoration: BoxDecoration(
    borderRadius: BorderRadius.circular(200),
    boxShadow: const [
      BoxShadow(
          offset: Offset(-10, -10),
          color: Colors.white,
          blurRadius: 20,
          spreadRadius: 1),
      BoxShadow(
          offset: Offset(10, 10),
          color: Color.fromARGB(255, 158, 158, 158),
          blurRadius: 20,
          spreadRadius: 1)
    ]),
maxValue: 100,
radius:100, 
child: Text(
  value.toString(),
  style: TextStyle(fontSize: 30),
),
color: Color(0xffEEEEEE),
sliderColor: Color(0xff62CBDA),
unSelectedColor: Color(0xffD7DEE7),
onDrag: (value) {
  setState(() {
    this.value = value;
  });
},
),
Circular Viewer
CircularViewer(
  decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(200),
      boxShadow: const [
        BoxShadow(
            offset: Offset(-10, -10),
            color: Colors.white,
            blurRadius: 20,
            spreadRadius: 1),
        BoxShadow(
            offset: Offset(10, 10),
            color: Color.fromARGB(255, 158, 158, 158),
            blurRadius: 20,
            spreadRadius: 1)
      ]),
  value: 50,
  maxValue: 100,
  radius: 100,
  textStyle: TextStyle(fontSize: 30),
  color: Color(0xffEEEEEE),
  sliderColor: Color(0xff62CBDA),
  unSelectedColor: Color(0xffD7DEE7),
)

check out the full example

Additional information

story

after I made the the magic circle I decided to make it useful so I made this package

Contributing

Contributions are always welcome!

License

MIT LICENSE

所属分类

源码仓库

使用此插件的项目

暂无相关数据。