패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.4

easy_splash_screen

귀하의 플러터 앱을 위한 쉬운 스플래시 스크린 플러그인입니다. 이 플러그인을 쉽게 구현하여 스플래시 화면을 표시하고 시간을 절약할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.1천
좋아요
72
Pub 점수
150

패키지 설치

flutter pub add easy_splash_screen

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Easy Splash Screen은 여러 플랫폼에서 스플래시 화면을 구현하는 것을 간편하게 만들어주는 Flutter 플러그인입니다. 복잡한 코드를 작성하지 않고도 앱에 사용자 정의 가능한 스플래시 화면을 빠르게 추가할 수 있습니다. 이 플러그인은 Android, iOS, Web, macOS, Windows, Linux를 지원하여 일관된 시작 경험을 보장합니다. 최소한의 구성으로 개발 시간을 단축하면서 사용자에게 전문적인 첫 인상을 줄 수 있습니다.

사용 사례

  • 새 앱에 스플래시 화면을 빠르게 추가하기
  • 이미지 또는 색상으로 스플래시 화면 외관 맞춤 설정
  • 다양한 플랫폼 간 일관된 시작 경험 보장
  • 스플래시 스크린을 위한 반복 코드 줄이기
  • 크로스 플랫폼 애플리케이션에서 스플래시 화면 통합

주요 기능

  • 최소 코드로 간단한 설정
  • 다중 플랫폼 지원
  • 사용자 지정 가능한 배경 및 이미지
  • 지연 후 자동 탐색
  • 가볍고 통합하기 쉬움

적합한 대상

  • 초보자 플러터 개발자
  • 빠른 스플래시 화면 구현이 필요한 프로젝트
  • 크로스플랫폼 모바일 및 데스크톱 앱
  • 청결한 초기 로딩 화면이 필요한 앱
  • UI 설정 시간을 절약하고 싶은 개발자

고려 사항

  • 기본 스타일링을 넘어서는 사용자 정의가 제한적
  • 업데이트를 위해 외부 저장소에 의존합니다
  • 내비게이션 로직을 수동으로 처리해야 할 수 있습니다
  • 복잡한 스플래시 애니메이션에 적합하지 않습니다
  • 동적 콘텐츠보다는 정적인 스플래시 화면에 최적

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Easy Splash Screen

  • easy_splash_screen is a flutter package for easily implement the splash screen in the app

Screenshots

Screenshot

Usage

To use this package :

  • add the dependency to your pubspec.yaml file.
  dependencies:
    flutter:
      sdk: flutter
    easy_splash_screen:
How to use

As time based...

import 'package:easy_splash_screen/easy_splash_screen.dart';
import '../home.dart';
import 'package:flutter/material.dart';

class SplashPage extends StatefulWidget {
  SplashPage({Key? key}) : super(key: key);

  @override
  _SplashPageState createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  @override
  Widget build(BuildContext context) {
    return EasySplashScreen(
      logo: Image.network(
          'https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/flutter-512.png'),
      title: Text(
        "Title",
        style: TextStyle(
          fontSize: 18,
          fontWeight: FontWeight.bold,
        ),
      ),
      backgroundColor: Colors.grey.shade400,
      showLoader: true,
      loadingText: Text("Loading..."),
      navigator: HomePage(),
      durationInSeconds: 5,
    );
  }
}

As future based...

import 'dart:async';

import 'package:easy_splash_screen/easy_splash_screen.dart';
import '../home.dart';
import 'package:flutter/material.dart';

class SplashFuturePage extends StatefulWidget {
  SplashFuturePage({Key? key}) : super(key: key);

  @override
  _SplashFuturePageState createState() => _SplashFuturePageState();
}

class _SplashFuturePageState extends State<SplashFuturePage> {
  Future<Widget> futureCall() async {
    // do async operation ( api call, auto login)
    return Future.value(new HomePage());
  }

  @override
  Widget build(BuildContext context) {
    return EasySplashScreen(
      logo: Image.network(
          'https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/flutter-512.png'),
      title: Text(
        "Title",
        style: TextStyle(
          fontSize: 18,
          fontWeight: FontWeight.bold,
        ),
      ),
      backgroundColor: Colors.grey.shade400,
      showLoader: true,
      loadingText: Text("Loading..."),
      futureNavigator: futureCall(),
    );
  }
}
Parameters
  1. title (Text)
  • App title, shown in the middle of screen in case of no image available
  1. logo (Image)
  • required
  • Your logo to be displayed in the center.
  1. logoWidth (double)
  • default 50
  • logo width as in radius
  1. backgroundColor (Color)
  • Default Colors.white
  1. backgroundImage (ImageProvider)
  • Background image for the entire screen
  1. loaderColor (Color)
  • default Colors.black
  • loader Color.
  1. loadingText (Text)
  • default Text('')
  • Loading text below loader
  1. showLoader (bool)
  • default false
  • Whether to display a loader or not
  1. durationInSeconds (int)
  • default 3
  • durationInSeconds to navigate after for time based navigation
  1. navigator (String or Widget)
  • The page where you want to navigate if you have chosen time based navigation
  1. futureNavigator (Future or Future)
  • expects a function that returns a future, when this future is returned it will navigate
  • If both futureNavigator and navigator are provided, futureNavigator will take priority

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.