简体   繁体   中英

How to fix this issue with a rounded app bar in Flutter?

I have an app bar in which I've applied a RoundedRectanlgeBorder to its shape property. The problem is when you scroll the view there is this extra white space in the corner of the app bar that is seen. The extra space that is 'clipped' off the app bar with the RoundedRectanlgeBorder is white instead of transparent. Is there a way to actually clip the app bar or some other workaround to solve this issue?

在此处输入图像描述

Add

extendBodyBehindAppBar: true,

in your scaffold

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