How to get viewPadding or viewInsets in flutter flow?

Custom Code

HI!
I want to create a custom app bar, but for that I would need viewPadding top.
The reason why I need viewPadding top is because of notches the devices get now a days, I want to add padding to the top of my app bar, just so my Custom App Bar doesnt go through the notch.

What have you tried so far?

Tried creating custom function to add padding to top but we cannot pass BuildContext in function and also tried creating custom action but its obvisouly not possible to get custom action in the value for padding.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
6 replies