パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.2

custom_splash

ロゴアイコンの変更、ロゴアニメーション、スプラッシュスクリーンの背景色など、スプラッシュスクリーンをカスタマイズするためのFlutterパッケージ。

30日間ダウンロード
81
いいね数
86
Pub ポイント
30

パッケージをインストール

flutter pub add custom_splash

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

開発者がロゴアイコンの変更、ロゴアニメーションの追加、背景色の設定が可能な、高度にカスタマイズ可能なスプラッシュ画面を作成できるFlutterパッケージです。複雑なカスタムコードを必要とせずに、視覚的に魅力的なオンボーディング画面の実装を簡素化します。使いやすさを重視し、Flutterアプリケーションにスムーズに統合できます。動的スタイルとスムーズな遷移をサポートしており、アプリ起動時のユーザー体験を向上させます。

用途

  • アプリオンボーディング画面
  • カスタマイズされた読み込み体験
  • ブランディングを重視したスプラッシュ画面
  • アニメーションロゴが表示されます
  • シンプルながら洗練された起動ビジュアル

主な機能

  • カスタムロゴアイコンの置き換え
  • ロゴアニメーションのサポート
  • 背景色のカスタマイズ
  • 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)

ProgressDialog Demo
Using the package

Get the library

Things to do
  1. Get a logo for your app
  2. Prepare what to execute while the splash screen is shown (initializing your db, shared preferences, firebase...etc)
  3. Screen to be shown after splash screen and background process
  4. Duration of Splash Screen

Import the package

import 'package:custom_splash/custom_splash.dart';

Show splash screen for some duration

  type: CustomSplashType.StaticDuration

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image

backGroundColor(not require - default: white): background's color (Colors.deepOrange or Color(0xfffc6042))

animationEffect(not require - default: 'fade-in'): change animation of logo. There are: 'fade-in', 'zoom-in', 'zoom-out', 'top-down'.

ProgressDialog Demo

logoSize(not require - default: 250): custom size of logo

home: Screen to be shown after splash

duration: duration of splash screen in milliseconds

type

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.StaticDuration,
        outputAndHome: op,
    ),
));

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 navigation
  Map<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)

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.BackgroundProcess,
        outputAndHome: op,
    ),
));

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。