简体   繁体   中英

How to change home indicator color for IOS in Flutter?

I would like to change the color of this view that appears on the bottom of the new iPhones.

Is it possible with using some libraries or with Flutter SDK usage?

在此处输入图像描述

The home indicator color is determined automatically based on the color of the content below it.

Most of the time, this means you should not worry about its color since it is out of your control, and will always be clearly visible to users.

However, you can place a colored view in the area behind the home indicator to manipulate its color.

Examples

(Please note that these examples were taken on the iOS simulator, and behavior on a real device is different.)

白色背景的主页指示器

Background: white ( #ffffff )

Home Indicator: black ( #000000 )


黑色背景的主页指示器

Background: black ( #000000 )

Home Indicator: gray ( #484848 )


灰色背景的主页指示器

Background: gray ( #5f5f5f )

Home Indicator: dark gray ( #282828 )


蓝色背景的主页指示器

Background: blue ( #1a98fc )

Home Indicator: very dark gray ( #121212 )


Source

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM