I want to make bottom navigator with AnimatedBottomNavigationBar package, but when I do "gapLocation: GapLocation.end" it gives an error.
class _marketViewPageState extends State<marketViewPage> {
@override
Widget build(BuildContext context) {
return Container(
child: Scaffold(
appBar: AppBar(
title: Text(" Page "),
),
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.add),
onPressed: () {},
),
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
bottomNavigationBar: AnimatedBottomNavigationBar(
activeColor: Colors.red,
height: Get.height /
12,
backgroundColor: Colors.blue,
notchSmoothness: NotchSmoothness.defaultEdge,
leftCornerRadius: 15,
gapLocation: GapLocation.end,
icons: [
Icons.home,
Icons.add_shopping_cart_outlined,
Icons.history_rounded,
Icons.star,
Icons.circle
],
activeIndex: 1,
onTap: (int) {
print(int);
},
//other params
),
),
);
}
}
Screen
Error