Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Widget build(BuildContext context) {
return MaterialApp(
title: 'Bottom Navigation',
theme: ThemeData(primarySwatch:,
home: Scaffold(
appBar: AppBar(
title: Text('Bottom Navigation'),
body: _page[_selectedPage],
bottomNavigationBar: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topRight: Radius.circular(30), topLeft: Radius.circular(30)),
boxShadow: [
BoxShadow(color: Colors.black12, spreadRadius: 0, blurRadius: 5),
child: ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20.0),
topRight: Radius.circular(20.0),
child: BottomNavigationBar(
currentIndex: _selectedPage,
unselectedItemColor: Color.fromRGBO(58, 58, 58, 100),
onTap: (int index) {
setState(() {
_selectedPage = index;
items: [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.