当前位置:网站首页>Shutter start white screen
Shutter start white screen
2022-07-29 03:37:00 【nicepainkiller】
Preface : In native development , It's usually set to Opening page ; To prevent App White screen phenomenon at startup ; stay Flutter In development , If it is pure Flutter To develop it ; With Flutter Write Opening page ; There will also be this phenomenon ; Even though Release release edition White screen phenomenon will improve a lot . But occasionally The screen will still be blank ;
Here are two ideas to solve this problem !
Write a native page to open the screen , Then load asynchronously Flutter engine
This way is a little troublesome :
Plug ins are recommended here :flutter_native_splashhttps://pub.flutter-io.cn/packages/flutter_native_splash
To configure Flutter Color at startup ;( Is to replace white with You start the page with the same color , So it won't flash white . This way is more flattering , Unwilling to write native code Friends can use this method !)
First use androidStudio Open your android engineering :
res-> values Right click Create a colors.xml file
Set up Become what you need Of Color
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="AppBackground">#1D69F9</color> </resources>Put it down Two documents in LaunchTheme The label in is modified to The color value you just added is ok
Now the great work is finished ! You can try
边栏推荐
- i. MX 8m plus integrated dedicated neural processing engine (NPU)
- 2 neural network toolbox NN
- Introduction to static routing and dynamic routing protocols OSPF and rip and static routing configuration commands
- Why do many programmers hate pair programming?
- Photo scale correction tool: DxO viewpoint 3 direct mount version
- 向日葵远程控制为何采用BGP服务器?自动最优路线、跨运营商高速传输
- MOS tube - rapid recovery application notes (II) [parameters and applications]
- Machine learning [numpy]
- Why is continuous integration and deployment important in development?
- Rdkit: introduce smiles code, smart code and Morgan fingerprint (ECFP)
猜你喜欢

Deep into C language (3) -- input and output stream of C

机器学习【Numpy】

3D advanced renderer: artlandis studio 2021.2 Chinese version

Ten thousand words detailed Google play online application standard package format AAB

for_each用法示例

Deep into C language (1) -- operators and expressions
![MOS管 —— 快速复苏应用笔记(贰)[参数与应用]](/img/54/eb040a51304192def8cfb360c7c213.png)
MOS管 —— 快速复苏应用笔记(贰)[参数与应用]

【科技1】

Sleuth+zipkin to track distributed service links

Flutter 启动白屏
随机推荐
(codeforce547)C-Mike and Foam(质因子+容斥原理)
【科技1】
Vs code must know and know 20 shortcut keys!
Overestimated test driven development?
"The programming is not standardized, and my colleagues are in tears!"
VISO fast rendering convolution block
The difference between int and integer. Is int or integer used in practical applications?
exness:鸽派决议帮助黄金反弹,焦点转向美国GDP
Machine learning [numpy]
1.6 example: cifar-10 classification
AI platform, AI midrange architecture
Configure vscade to realize ROS writing
Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
Three military product baselines (functional baseline, distribution baseline, product baseline) and the documents contained in the baseline
MySQL流程控制之while、repeat、loop循环实例分析
Singleton and invariant modes of concurrent mode
Why is continuous integration and deployment important in development?
How close can QA be to business code Direct exposure of defects through codediff
今晚7:30 | 连界、将门、百度、碧桂园创投四位大佬眼中的AI世界,是继续高深还是回归商业本质?...
What have I learned from 200 machine learning tools?

