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

stepper_counter_swipe 封面
套件詳情v2.0.1

stepper_counter_swipe

一個用於提升使用者體驗的 Flutter 步進器小部件。有一個快速計數的點擊區域。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
364
喜歡數
129
Pub 分數
150

安裝套件

flutter pub add stepper_counter_swipe

套件介紹

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

stepper_counter_swipe 套件透過滑動手勢介面增強了 Flutter 步進器小工具,實現更快、更直覺的值調整。它引入了點擊區域以快速增加或減少數值,提升觸控裝置上的使用者體驗。此套件專為跨平台流暢互動設計,支援 Android、iOS、Web、macOS、Windows 及 Linux。此套件非常適合需要高效導航的數值輸入表單。

適用情境

  • 數值輸入框
  • 電子商務產品數量選擇
  • 具有可調參數的設定
  • 以行動裝置為優先的資料輸入介面
  • 具有快速輸入的互動式 UI 組件

主要特色

  • 基於滑動的值調整
  • 快速計數的點擊區域
  • 跨平台相容性
  • 增強的使用者體驗
  • 與現有表單的簡單整合

適合對象

  • 尋求直覺式數值輸入的開發者
  • 優先考慮行動裝置可用性的應用
  • 專注於手勢驅動互動的設計師
  • 需要快速表單調整的專案
  • Flutter 應用針對多個平台

使用建議

  • 需要觸控輸入以獲得最佳使用效果
  • 可能需要自定樣式以保持視覺一致性
  • 限制為數值遞增/遞減
  • 不適用於非觸控設備
  • 在速度比精確度更重要的情境中使用效果最佳

原始 README

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

stepper_counter_swipe

Awesome Flutter

This concept of the widget is inspired by Nikolay Kuchkarov. Designers asked his what if a user swipes left and will hold such type of button. Could this stepper count faster? I released this version with more functionality in this subject.

gif

Created

Usage example

import 'package:stepper_counter_swipe/stepper_counter_swipe.dart';
...
Container(
  padding: const EdgeInsets.all(8.0),
  child: StepperSwipe(
    initialValue:0,
    speedTransitionLimitCount: 3, //Trigger count for fast counting
    onChanged: (int value) => print('new value $value'),
    firstIncrementDuration: Duration(milliseconds: 250), //Unit time before fast counting
    secondIncrementDuration: Duration(milliseconds: 100), //Unit time during fast counting
    direction: Axis.horizontal,
    dragButtonColor: Colors.blueAccent,
	maxValue: 50,
	minValue: -10,
  ),
),
...

Getting Started

For help getting started with Flutter, view our online documentation.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。