How to display body under the AppBar of scaffold widget and not below?

Question

Asked by fvisticot on April 25, 2018 (source).

I'm using a transparent AppBar and I would like to display body behind the transparent AppBar and not bellow. How to do that ?

Answer

Question answered by Sergey Z (source).

The parameter extendBodyBehindAppBar extend the body to include the height of the AppBar, if specified. Scaffold from Flutter.

Scaffold(
    extendBodyBehindAppBar: true,
)

Available in Flutter stable 1.12+

FLUTTER
SHARE: