From ea792b9423abe0efc4c6f06f3d15a758ff04fe96 Mon Sep 17 00:00:00 2001 From: taskcrypto <56127239+taskcrypto@users.noreply.github.com> Date: Tue, 16 Aug 2022 16:06:57 +0900 Subject: [PATCH] AddShadowControl --- lib/src/floating_navbar.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/floating_navbar.dart b/lib/src/floating_navbar.dart index e708418..76acf46 100644 --- a/lib/src/floating_navbar.dart +++ b/lib/src/floating_navbar.dart @@ -21,6 +21,7 @@ class FloatingNavbar extends StatefulWidget { final EdgeInsetsGeometry padding; final double width; final double elevation; + final List? boxShadows; FloatingNavbar({ Key? key, @@ -40,6 +41,7 @@ class FloatingNavbar extends StatefulWidget { this.padding = const EdgeInsets.symmetric(vertical: 8), this.width = double.infinity, this.elevation = 0.0, + this.boxShadows, }) : assert(items.length > 1), assert(items.length <= 5), assert(currentIndex <= items.length), @@ -82,6 +84,7 @@ class _FloatingNavbarState extends State { decoration: BoxDecoration( borderRadius: BorderRadius.circular(widget.borderRadius), color: widget.backgroundColor, + boxShadow: widget.boxShadows, ), width: widget.width, child: Padding( @@ -118,6 +121,7 @@ ItemBuilder _defaultItemBuilder({ double? iconSize, double? itemBorderRadius, double? borderRadius, + BoxShadow? boxShadow, }) { return (BuildContext context, int index, FloatingNavbarItem item) => Expanded( child: Row(