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

steps_indicator 封面
插件详情v1.3.0

steps_indicator

用于显示简单步骤指示线小部件的 Flutter 插件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1270
喜欢数
59
Pub 分数
150

安装插件

flutter pub add steps_indicator

插件介绍

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

一个 Flutter 插件,提供了一个简单且可自定义的步骤指示线小部件,用于以视觉方式表示在一系列步骤中的进度。它支持对指示器、线条和标签的各种样式选项,非常适合用于引导流程、结账过程或任何多步骤用户旅程。该包轻量级,并兼容所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

适合场景

  • 入门向导
  • 结账流程跟踪
  • 多步骤表单导航
  • 应用程序中的进度可视化
  • 教程演练

主要特点

  • 可自定义的步骤指示器
  • 可配置的线条样式
  • 对标签和图标的支持
  • 跨平台兼容性
  • 简单的 API 集成

适合对象

  • 开发人员构建引导式用户流程
  • 需要视觉进度跟踪的应用程序
  • 具有多步骤界面的项目
  • 寻求极简风格进度指示器的设计人员
  • 跨平台应用程序

使用建议

  • 限制为线性步骤进展
  • 无内置动画支持
  • 需要手动处理步骤状态的变化
  • 不适合复杂的分支工作流
  • 基础样式选项与高级UI库的对比

原始 README

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

steps_indicator

pub package

A simple steps indicator widget

Installation

Add steps_indicator: ^1.3.0 in your pubspec.yaml dependencies. And import it:

import 'package:steps_indicator/steps_indicator.dart';

How to use

Simply create a StepsIndicator widget and pass the required params:

StepsIndicator(
  selectedStep: 1,
  nbSteps: 4
)

Do not forget to check that the selectedStep is not lower than 0 and is not higher than the total number of steps (nbSteps).

Params

Animations are disabled by default if you want to enable them remember to pass properties to true.

StepsIndicator(
  selectedStep: 1,
  nbSteps: 4,
  selectedStepColorOut: Colors.blue,
  selectedStepColorIn: Colors.white,
  doneStepColor: Colors.blue,
  doneLineColor: Colors.blue,
  undoneLineColor: Colors.red,
  isHorizontal: true,
  lineLength: 40,
  doneStepSize: 10,
  unselectedStepSize: 10,
  selectedStepSize: 14,
  selectedStepBorderSize: 1,
  doneStepWidget: Container(), // Custom Widget 
  unselectedStepWidget: Container(), // Custom Widget 
  selectedStepWidget: Container(), // Custom Widget 
  lineLengthCustomStep: [
    StepsIndicatorCustomLine(nbStep: 3, length: 80)
  ],
  enableLineAnimation: true,
  enableStepAnimation: true,
)

For a more detail example please take a look at the example folder.

Example

Steps indicator:

-

If something is missing, feel free to open a ticket or contribute!

所属分类

源码仓库

使用此插件的项目

暂无相关数据。