flutter_native_splash:
# This package generates native code to customize Flutter's default white native splash screen
# with background color and splash image.
# Customize the parameters below, and run the following command in the terminal:
# flutter pub run flutter_native_splash:create
# To restore Flutter's default white splash screen, run the following command in the terminal:
# flutter pub run flutter_native_splash:remove
# color or background_image is the only required parameter. Use color to set the background
# of your splash screen to a solid color. Use background_image to set the background of your
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
# size of the app. Only one parameter can be used, color and background_image cannot both be set.
color: "#42a5f5" #here the color
2条答案
按热度按时间blmhpbnm1#
Flutter闪屏建立在iOS故事板和Android Activity之上您需要编辑这些文件才能继续
uemypmqf2#
你可以使用flutter_native_splash软件包。你可以阅读设置闪屏部分了解详细信息。你需要覆盖
然后跟着跑包