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

linear_step_indicator 封面
套件詳情v1.0.0+3

linear_step_indicator

一個用於在您的應用中新增美觀步驟指示器的 Flutter 套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2
喜歡數
53
Pub 分數
140

安裝套件

flutter pub add linear_step_indicator

套件介紹

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

一個 Flutter 套件,提供一種簡潔、可自訂的線性步驟指示器,用於引導使用者完成多步流程。它支援順暢的動畫與視覺反饋,非常適合用於引導流程、結帳流程或任何順序式介面。此指示器輕量級、易於整合,並可在所有主要平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上運作。透過彈性的樣式選項,開發者可將外觀調整為符合其應用程式設計語言。

適用情境

  • 引導流程
  • 結帳流程
  • 表單向導
  • 多步驟調查
  • 進度追蹤

主要特色

  • 可自訂的線條和點樣式
  • 平滑的動畫過渡
  • 跨平台相容性
  • 與 Flutter 的輕鬆整合
  • 對自定義顏色和大小的支援
  • 響應式設計

適合對象

  • 尋求簡潔進度指示器的應用開發者
  • 希望保持一致使用者體驗的設計師
  • 需要多步驟導航的項目
  • 建構使用者友善的工作流程
  • 具有順序數據輸入的應用程式

使用建議

  • 限於線性進展
  • 無內建驗證支援
  • 需要手動管理步驟的狀態
  • 不適用於非線性工作流程
  • 基本用法以外的文件最少

原始 README

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

linear_step_indicator

A Flutter package for adding beautiful step indicators in your apps.

Install

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

dependencies:
  linear_step_indicator: ^1.0.0+3

Import the package in your project:

import 'package:linear_step_indicator/linear_step_indicator.dart';

Getting Started

Examples:

FullLinearStepIndicator(
          steps: 5,
          lineHeight: 3.5,
          activeNodeColor: Colors.brown,
          inActiveNodeColor: const Color(0xffd1d5d8),
          activeLineColor: Colors.brown,
          inActiveLineColor: const Color(0xffd1d5d8),
          controller: pageController,
          labels: List<String>.generate(STEPS, (index) => "Step ${index + 1}"),
          complete: () {
            //typically, you'd want to put logic that returns true when all the steps
            //are completed here
            return Future.value(true);
          },
        )

Indicator

LinearStepIndicator(
          steps: 3,
          controller: _pageController,
          labels: List<String>.generate(3, (index) => "Step ${index + 1}"),
          complete: () {
            //typically, you'd want to put logic that returns true when all the steps
            //are completed here
            return Future.value(true);
          },
        )

Indicator

StepIndicatorPageView(
        steps: 3,
        indicatorPosition: IndicatorPosition.top,
        labels: List<String>.generate(3, (index) => "Step ${index + 1}"),
        controller: _pageController,
        complete: () {
          //typically, you'd want to put logic that returns true when all the steps
          //are completed here
          return Future.value(true);
        },
        children: List<Widget>.generate(
          3,
          (index) => Container(
            color: Color(0xffffffff),
            child: Center(
              child: Text(
                "Page ${index + 1}",
                style: TextStyle(
                  fontSize: 24,
                  fontWeight: FontWeight.w500,
                ),
              ),
            ),
          ),
        ),
      )

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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。