flutter_native_splash_lego 1.0.0 copy "flutter_native_splash_lego: ^1.0.0" to clipboard
flutter_native_splash_lego: ^1.0.0 copied to clipboard

native splash screen for flutter project.

lego project pub package

flutter_native_splash_lego #

native splash screen for flutter project.

Installation #

  1. open terminal in the lego project root directory, enter the following command for install cli. and create a new lego project if you don't have one.
flutter pub global activate lego_cli
lego create
  1. in terminal, enter the following command for add lego to project.
lego add flutter_native_splash_lego
  1. pub image to assets folder, and update pubspec.yaml file.
#@add start
flutter_native_splash:
  color: "#ffffff"
  #background_image: "assets/lego/flutter_native_splash_lego/splash_icon.png"
  image: assets/lego/flutter_native_splash_lego/splash_icon.png

  color_dark: "#ffffff"
  ##background_image_dark: "assets/lego/flutter_native_splash_lego/splash_icon.png"
  image_dark: assets/lego/flutter_native_splash_lego/splash_icon.png

  #android: false
  #ios: false
  #web: false

  #android_gravity: center
  #ios_content_mode: center
  #web_image_mode: center

  fullscreen: true
#@add end
  1. in terminal, enter the following command for run flutter_native_splash
dart run flutter_native_splash:create