bdnavs 0.0.5 bdnavs: ^0.0.5 copied to clipboard
BDNavs give you awesome bottomnavbar. it is animated navbar.
import 'package:bdnavs/bdnavs.dart';
import 'package:flutter/material.dart';
Future<void> main() async {
runApp(
new MaterialApp(
home: Home2(),
),
);
}
class Home2 extends StatefulWidget {
@override
State<StatefulWidget> createState() => _HomePageState2();
}
class _HomePageState2 extends State<Home2> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
final heights = MediaQuery.of(context).size.height;
final widths = MediaQuery.of(context).size.width;
return MaterialApp(
home: Scaffold(
body: NavBs4Down(
isDown: false,
index: 5,
iconColors: Colors.blue,
iconDisableColors: Colors.blue,
iconBackColors: Colors.red,
navBackColors: Colors.green,
icons: <IconData>[
Icons.home,
Icons.search,
Icons.airplanemode_active,
Icons.favorite,
Icons.add
], //
app: [
Home2(),
//change as you want
Home2(),
//change as you want
Home2(),
//change as you want
Home2(),
//change as you want
Home2(),
//change as you want
],
)),
);
}
}