Skip to content
Articles
Article

A floating glass dock: a Flutter nav bar that never spans the screen

by Frank Milvus dev.to

9 min read

A floating navigation bar in Flutter is usually a rounded BottomNavigationBar with a shadow and a bit of padding. Ours is a 420 dp glass pill, lifted off the bottom edge, with a truly transparent background so a BackdropFilter can frost whatever scrolls underneath it. On a phone it is a compact centred card; on a 1920 dp desktop window it stays exactly the same width instead of stretching into a …

Forum

Questions about this, or something to add?

Discuss on the forum

Topics Navigation and routing Flutter on desktop

Report this · Wrote this? Claim it

FlutterX is supported by