From 4c736ab2f81bc69292baa7b16c7d9b1fbdfebd97 Mon Sep 17 00:00:00 2001 From: jonathananales Date: Thu, 1 Oct 2020 21:44:02 +0800 Subject: [PATCH] Update curved_drawer.dart --- lib/curved_drawer.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/curved_drawer.dart b/lib/curved_drawer.dart index fbd42fb..5b15a02 100644 --- a/lib/curved_drawer.dart +++ b/lib/curved_drawer.dart @@ -67,15 +67,15 @@ class _CurvedDrawerState extends State @override void initState() { super.initState(); - _items = widget.items.map((item) { + _items = widget.items.map((item) => DrawerNavItem( icon: item.icon, label: item.label, color: widget.labelColor, background: widget.buttonBackgroundColor, size: widget.width / 3, - ); - }).toList(); + ) + ).toList(); _icon = _items[widget.index]; _length = _items.length; _pos = widget.index / _length;