一個 Flutter 套件,讓開發者能夠建立高度可自訂的啟動畫面,支援變更 logo 圖示、加入 logo 動畫以及設定背景顏色。此套件簡化了視覺上吸引人的引導畫面實作,無需撰寫複雜的自訂程式碼。該套件設計以易用為導向,並能順暢整合至 Flutter 應用程式中。支援動態樣式與平滑過渡,提升應用程式啟動時的使用者體驗。
適用情境
應用入門畫面
自訂載入體驗
以品牌為中心的啟動畫面
動畫徽標顯示
簡單而優雅的啟動視覺效果
主要特色
自訂徽標圖示取代
Logo 動畫支援
背景顏色自訂
與 Flutter 的輕鬆整合
輕量且快速的渲染
適合對象
初學者Flutter開發者
需要品牌化引導的應用程式
帶有動畫UI元素的專案
極簡設計偏好
快速啟動畫面實現
使用建議
有限的平台特定自訂
無內建的啟動畫面持續時間控制支援
需要手動處理濺水後的導航
未針對複雜動畫進行優化
依賴外部相依性以實現進階效果
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Custom Splash Screen
A Flutter package to custom splash screen: change logo icon, logo animation, and splash screen background color. (Custom from animated splash screen)
Execute a function in background and based on the value from that function navigate to different screen
type: CustomSplashType.BackgroundProcess
Create an object of Function that gets executed while splash screen is shown
Function duringSplash = () {
//Write your code here
...
return value;
};
Create routes according to your function return value
//setup the return value correctly for proper navigationMap<dynamic, Widget> returnValueAndHomeScreen = {1: Home(), 2: HomeSt()};
Inside your main function, use home as SplashScreen(_), the parameters are as follows:
imagePath: Path to your app-logo/image
home: Screen to be shown after splash
customFunction: the function you have written above
duration: duration of splash screen in milliseconds
type
output value of customFunction and home screen to navigate(Map function)