[Day29] Flutter with GetX native_splash

flutter_native_splash

App 启动时的launch画面

首先在pubspec.yaml档案里新增

dev_dependencies:
  flutter_native_splash: ^1.2.0

接着在最底下新增flutter_native_splash,
并且把图放到assets路径底下.

flutter_native_splash:
  image: assets/LaunchLogo.png
  android_gravity: center
  ios_content_mode: center 
  # platform.
  android: true
  ios: true
  web: false

接着在terminal输入
flutter pub run flutter_native_splash:create

出现以下讯息代表成功
https://ithelp.ithome.com.tw/upload/images/20211008/20140296gfNlytNbsk.png

实际效果如下
i-LeGpeG-qY6k4iFEw

本篇的GitHub source code


<<:  TailwindCSS 从零开始 - 完赛心得

>>:  Unity与Photon的新手相遇旅途 | Day28-Unity 发布到IOS手机上

[Day 14] .Net 非同步概念整理

前言 本来只是想简单带过 .Net , 但不知不觉就写了一大堆, 觉得内容有些混乱, 就在今天花些时...

【Day 4】物理时间、happens-before 关系、causality

回家再修文,先发ㄌ 晚点要补一下前一篇的 failure detectors 介绍分散式系统中的时间...

DAY20 - line message API 初体验

上一篇,申请好了 line message API 的频道,这一篇就来实际玩转 line mess...

用 Python 畅玩 Line bot - 17:Template message

Line bot API 中有一种只有 line bot 专属的讯息种类,叫做 Template m...

Day07:Swift 基础语法-Struct 与 Class 的差异

前言 前面两篇文章学习了 Struct 和 Class, 两者用法相同、功能相似, 都可以用来储存 ...