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

animated_splash_screen 封面
套件詳情v1.3.0

animated_splash_screen

以完全可自定義的方式建立您的動畫啟動畫面的最簡單方法。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.1萬
喜歡數
777
Pub 分數
150

安裝套件

flutter pub add animated_splash_screen

套件介紹

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

一個 Flutter 套件,可簡化動畫啟動畫面的建立並提供完整自訂功能。它允許開發者使用動畫、過渡效果和自訂組件設計引人入勝的引導體驗。該套件支援 Android、iOS、Web、macOS、Windows 和 Linux 等多個平台,確保在各種裝置上行為一致。設定簡單,配置直覺,非常適合需要精緻第一印象的應用程式。原始碼開源且持續維護。

適用情境

  • 應用入門畫面
  • 品牌介紹
  • 加載狀態可視化
  • 自定動畫過渡
  • 跨平台啟動畫面

主要特色

  • 完全可自定義的動畫
  • 對多個平台的支援
  • 與 Flutter 的輕鬆整合
  • 可設定的持續時間和延遲
  • 內建過渡效果
  • 開源且文件完整

適合對象

  • 初學者Flutter開發者
  • 需要品牌啟動畫面的應用程式
  • 具有跨平台需求的項目
  • 想要快速設定的開發者
  • 面向使用者介面的應用程式啟動

使用建議

  • 需要了解基本的Flutter動畫
  • 可能會稍微增加初始建構大小
  • 動畫複雜度應與效能目標相符
  • 不適用於靜態啟動畫面
  • 最佳搭配輕量內容使用

原始 README

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

Animated Splash Screen

Check it out at Pub.Dev

Do it your way

Assets image

ezgif com-video-to-gif (1)

Custom Widget

ezgif com-video-to-gif (4)

Url image

ezgif com-video-to-gif (3)

IconData

ezgif com-video-to-gif (2)

Or just change PageTransition and/or SplashTransition

ezgif com-video-to-gif (5)

Help Maintenance

I've been maintaining quite many repos these days and burning out slowly. If you could help me cheer up, buying me a cup of coffee will make my life really happy and get much energy out of it.

Buy Me A Coffee

Getting Started

To use is simple, just do this:

@override
  Widget build(BuildContext context) {
    return AnimatedSplashScreen(
      splash: 'images/splash.png',
      nextScreen: MainScreen(),
      splashTransition: SplashTransition.rotationTransition,
      pageTransitionType: PageTransitionType.scale,
    );
  }
Splash Parameter

Here, you can pass:

  • String with assets route;
  • String with your url Image, don't forget of pass tag like this "[n]www.my-url.com/my-image.png";
  • IconData;
  • Widget;
SplashTransition
enum SplashTransition {
  slideTransition,
  scaleTransition,
  rotationTransition,
  sizeTransition,
  fadeTransition,
  decoratedBoxTransition
}
PageTransitionType
enum PageTransitionType {
  fade,
  rightToLeft,
  leftToRight,
  upToDown,
  downToUp,
  scale,
  rotate,
  size,
  rightToLeftWithFade,
  leftToRightWithFade,
}
Others:
AnimatedSplashScreen({
    Curve curve = Curves.easeInCirc,
    Future Function() function, // Here you can make something before change of screen
    int duration = 2500,
    @required dynamic splash,
    @required Widget nextScreen,
    Color backgroundColor = Colors.white,
    Animatable customTween,
    bool centered = true,
    SplashTransition splashTransition = SplashTransition.fadeTransition,
    PageTransitionType pageTransitionType = PageTransitionType.downToUp,
 })

With Future Screen

Here you can do something that will return your next screen, ex:

AnimatedSplashScreen.withScreenFunction(
  splash: 'images/splash.png',
  screenFunction: () async{
    return MainScreen();
  },
  splashTransition: SplashTransition.rotationTransition,
  pageTransitionType: PageTransitionType.scale,
)

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案