Introduction Slider 是一個 Flutter 套件,專為移動和 Web 應用程式設計,以建立互動式的引導或介紹滑塊。它提供流暢、可自訂的輪播體驗,支援多螢幕、動畫過渡以及直覺的導航。此套件非常適合引導新使用者認識應用程式功能、教學或歡迎畫面。內建的手勢與視覺反饋,能提升使用者在初次使用應用時的參與度。支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 與 Linux,確保跨裝置的一致性表現。
適用情境
引導新使用者
應用教程畫面
歡迎啟動畫面序列
功能亮點
使用者入門流程
主要特色
可自定義的簡報內容
動畫過渡
基於手勢的導航
跨平台相容性
內建進度指示器
與 Flutter 的輕鬆整合
適合對象
新應用開發者
以入門為重點的應用程式
多螢幕介紹
跨平台專案
使用者體驗增強
使用建議
需要基本的Flutter知識
動畫定時的自定義有限
可能需要額外的樣式來處理複雜的佈局
依賴外部依賴項以實現進階功能
未針對非常大的投影片數量進行優化
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Become a sponsor
Introduction Slider
An introduction slider has some screens that can use to describe your application. You can describe your application's title, description, logo, etc. It comes with several features.
Here is an example of how to implement IntroductionSlider in a Flutter application.
Typically this will be an AssetImage or a NetworkImage
fit:
BoxFit
Fill the target box by distorting the source's aspect ratio.
colorFilter:
ColorFilter
A color filter is a function that takes two colors, and outputs one color.
opacity:
double
Used to set the filterQuality of the image.
Scroll / Gesture control
A page can be scrolled horizontally or vertically. The default scroll direction is horizontal. You can change the scroll direction by setting the scrollDirection property.
You can also control the introduction slider by gestures. You can set the physics property to NeverScrollableScrollPhysics() to disable the gesture slide.
Done has some more properties which are used to redirect to the target page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.
Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve:
Curve
A collection of common animation easing curves.
animationDuration:
Duration
The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.
Next
Next has some more properties which are used to redirect to the next slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.
Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve:
Curve
A collection of common animation easing curves.
animationDuration:
Duration
The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.
Back
Back has some more properties which are used to redirect to the previous slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.