패키지, 저장소 및 앱 카테고리 검색

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 통합
  • 단계를 위한 상태 관리
  • 경량이고 빠름

적합한 대상

  • 개발자들이 마법사 만들기
  • 양식 검증이 필요한 팀
  • 단계별 입력이 필요한 프로젝트
  • 온보딩 또는 체크아웃 흐름이 있는 앱
  • 간단한 스텝퍼 솔루션을 찾는 플러터 초보자

고려 사항

  • 수동적인 단계 상태 처리가 필요합니다
  • 제한된 스타일 사용자 지정
  • 내장 애니메이션 없음
  • 기본 스텝 로직에 가장 적합
  • 정확한 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.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.