搜尋套件、儲存庫與 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!

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。