Skip to content

Instantly share code, notes, and snippets.

@omerasif57
Created March 29, 2021 18:56
Show Gist options
  • Save omerasif57/2387c9ff82cda34d375a099b9d4c6d2f to your computer and use it in GitHub Desktop.
Save omerasif57/2387c9ff82cda34d375a099b9d4c6d2f to your computer and use it in GitHub Desktop.
bottom appbar elevation plus rounded
bottomNavigationBar: Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
decoration: BoxDecoration(boxShadow: [
BoxShadow(
blurRadius: 4.0,
offset: Offset(0.0, 0.0),
color: Colors.grey,
),
], borderRadius: BorderRadius.circular(36.0)),
child: ClipRRect(
borderRadius: BorderRadius.circular(36.0),
child: BottomAppBar(
// elevation: 8.0,
// shape:
color: Colors.white,
child: IconTheme(
data: IconThemeData(
color: Theme.of(context).colorScheme.onPrimary),
child: Row(
children: [
IconButton(
tooltip: 'Open navigation menu',
icon: const Icon(
Icons.settings,
color: Colors.blue,
),
onPressed: () {},
),
],
),
),
),
),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment