一款受 Apple Music 滑塊介面啟發的 Cupertino 風格互動式連續滑塊元件。它提供流暢、視覺上吸引人的滑動體驗,支援跨多個平台的觸控與拖曳互動。專為媒體播放控制或任何需要直觀使用者輸入連續值的應用程式而設計。該元件支援響應式設計,並能無縫整合至針對 iOS 與跨平台環境的 Flutter 應用中。
適用情境
媒體播放音量控制
調整播放速度
可自訂的範圍輸入
使用者偏好設定
互動式表單元素
主要特色
Cupertino 設計語言
連續值追蹤
跨平台相容性
觸控和拖曳互動
流暢的動畫
響應式佈局
適合對象
iOS 風格的應用程式介面
音樂和媒體應用
需要滑塊的表單輸入
跨平台 Flutter 項目
注重設計的UI組件
使用建議
需要 Flutter SDK 3.0 或更高版本
超出主題之外的自訂功能有限
在非 Cupertino 環境中可能需要額外的樣式
未針對高頻率更新進行優化
最適合單值連續輸入
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
A continuous or segmented slider widget inspired by the volume slider in the Apple Music app. This widget can
be used with little to no setup but is still fully customizable!
Features
Use the stock slider or customize:
Built in padding for convenience
Adjustable size transition
Use any widget for a start/end icon and center label
Use any transition duration and curve
Provide any shape border for the progress bar
Use the normalized progress value or easily provide a min/max to be automatically transformed
Animate start and end icons using slider progress
Color the slider's porgress with a gradient
Create any number of discrete segments to slide through