パッケージ、リポジトリ、アプリカテゴリを検索

stepper_a のカバー
パッケージ詳細v1.4.0

stepper_a

StepperA は、FormKey の検証を可能にし、独自のボタン押下制御に簡単にアクセスできる、シンプルで信頼性の高い Flutter パッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
78
いいね数
39
Pub ポイント
160

パッケージをインストール

flutter pub add stepper_a

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

StepperA は、ステップバイステップのワークフローでのフォームナビゲーションを簡素化するための軽量なFlutterパッケージです。FormKey検証とのシームレスな統合を可能にし、ボタン押下に対する直接的な制御を提供することで、開発者がステップ間の遷移を効率的に管理できるようにします。信頼性を重視して設計されており、Android、iOS、Web、macOS、Windows、Linuxをすべてサポートしています。複数ステップのプロセスにおける予測可能な状態管理により、ユーザー体験を向上させます。

用途

  • マルチステップフォームの作成
  • 順次ステップでのフォーム検証
  • ウィザード内のカスタムボタンコントロール
  • クロスプラットフォームステッパーインターフェース
  • ユーザーのオンボーディングフロー
  • 動的フォーム進行

主な機能

  • 組み込み FormKey 検証
  • 直接ボタン押下制御
  • クロスプラットフォーム互換性
  • シンプルな API インテグレーション
  • ステップ用の状態管理
  • 軽量で高速

適している対象

  • 開発者がウィザードを構築しています
  • フォーム検証が必要なチーム
  • ステップバイステップの入力が必要なプロジェクト
  • オンボーディングまたはチェックアウトフローを持つアプリ
  • シンプルなステッパーの解決策を探しているFlutter初心者

注意事項

  • 手動でのステップ状態の処理が必要です
  • 制限されたスタイルカスタマイズ
  • 組み込みのアニメーションなし
  • 基本的なステッパー論理に最適
  • FormKeyの適切な使用に依存する
  • 複雑なUIの遷移には適していない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flutter StepperA

Key Features

Stepper A can easily build Stepper facility of you any flutter app.

  • Form Validation with FormKey [GlobalKey()]
  • Support Horizontal and Vertical Stepper
  • Customized Stepper step Shape [Rectangle, Circle,Diamond,Triangle]
  • Customized Stepper step border [Dash, Straight]
  • Customized Stepper line [Dash, Straight]
  • Smooth sliding with Animation
  • Number step text style provision added.
  • Stepper page swipe
  • Easily Customize Step [Image, IconData, or a fully custom widget builder]
  • Forward and previous button custom style .
  • Material 3 theming support via StepA.fromTheme(context)
  • Screen-reader friendly (Semantics labels on every step)
  • Jump directly to any step with StepperAController.jumpToStep()
  • Listen to step changes with the onStepChanged callback

package.yaml

stepper_a: <latest version>

Import

import 'package:stepper_a/stepper_a.dart';

Simple Example

 StepperA(
        stepperSize: const Size(300, 90),
        borderShape: BorderShape.rRect,
        borderType: BorderType.straight,
        stepperAxis: Axis.horizontal,
        lineType: LineType.dotted,
        stepperBackgroundColor: Colors.transparent,
        stepperAController: controller,
        stepHeight: 40,
        stepWidth: 40,
        stepBorder: true,
        pageSwipe: false,
        formValidation: true,
        previousButton: (int index) => StepperAButton(
            width: 90,
            height: 40,
            onTap: (int currentIndex){
            
            },
            buttonWidget: const Icon(
            Icons.arrow_back,
            color: Colors.white,
           ),
        ),
        forwardButton: (index) => StepperAButton(
            width: index == 0 ? 200 : 90,
            height: 40,
            onTap: (int currentIndex){
            
            },
            onComplete: (){
              debugPrint("Forward Button click complete step call back!");
            },
            buttonWidget: index == 3
            ? const Text('Complete', style: TextStyle(fontSize: 14, color: Colors.white))
                : const Text('Next', style: TextStyle(fontSize: 14, color: Colors.white)),
        ),
        customSteps: [
            const CustomSteps(stepsIcon: Icons.login, title: "LogIn"),
            const CustomSteps(stepsIcon: Icons.home, title: "Home"),
            const CustomSteps(stepsIcon: Icons.account_circle, title: "Account"),
            CustomSteps(image: Image.asset("assets/pic/pay.png",color: Colors.white,), title: "Payment"),
        ],
        step: const StepA(
            currentStepColor: Colors.green,
            completeStepColor: Colors.indigo,
            inactiveStepColor: Colors.black45,
            // loadingWidget: CircularProgressIndicator(color: Colors.green,),
            margin: EdgeInsets.all(5)
      ),
      stepperBodyWidget: [
            StepOne(controller: controller),
            StepTwo(controller: controller),
            StepThree(controller: controller),
            StepFour(controller: controller),
      ]
)

New in 1.4.0

Material 3 theming

Let the stepper pick up your app's ColorScheme automatically:

step: StepA.fromTheme(context),

Any color you still pass explicitly (e.g. StepA.fromTheme(context, currentStepColor: Colors.green)) overrides the theme default.

Jump to a step
controller.jumpToStep(
    index: 2,
    onTap: (currentIndex) {
      // currentIndex is now 2
    },
);
Listen for step changes
StepperA(
  // ...
  onStepChanged: (currentIndex) {
    debugPrint('Now on step $currentIndex');
  },
)
Fully custom step widget
CustomSteps(
  title: "Payment",
  builder: (context, index, isCompleted, isCurrent) => Icon(
    isCompleted ? Icons.check : Icons.payment,
    color: Colors.white,
  ),
)

ScreenShot

FormKey validation

Horizontal rectangle

Screenshot_20230602_233154

Custom Steps

vertical circle

Others

vertical circle

Horizontal circle

Horizontal rectangle

Support

If this package was useful to you, helped you to easily deliver your app, saved you a lot of time, or you just want to support the project, I would be grateful if you give us a rating.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。