import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Flutter Bottom Navigation Bar with FAB'),
),
body: Container(),
floatingActionButton: FloatingActionButton(
onPressed: () {
},
child: Icon(Icons.add),
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
},
),
IconButton(
icon: Icon(Icons.search),
onPressed: () {
},
),
SizedBox(width: 48.0),
IconButton(
icon: Icon(Icons.notifications),
onPressed: () {
},
),
IconButton(
icon: Icon(Icons.person),
onPressed: () {
},
),
],
),
),
),
);
}
}