|
|
|
|
@ -12,11 +12,13 @@ class DrawerItem extends StatefulWidget {
|
|
|
|
|
final Color textColor;
|
|
|
|
|
final Color iconColor;
|
|
|
|
|
final bool bottomLine;
|
|
|
|
|
final bool sideArrow;
|
|
|
|
|
DrawerItem(this.title, this.icon,
|
|
|
|
|
{this.textColor = Colors.black,
|
|
|
|
|
this.iconColor = Colors.black87,
|
|
|
|
|
this.subTitle = '',
|
|
|
|
|
this.bottomLine = true});
|
|
|
|
|
this.bottomLine = true,
|
|
|
|
|
this.sideArrow = false});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_DrawerItemState createState() => _DrawerItemState();
|
|
|
|
|
@ -66,6 +68,12 @@ class _DrawerItemState extends State<DrawerItem> {
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
])),
|
|
|
|
|
widget.sideArrow == true
|
|
|
|
|
? Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child:
|
|
|
|
|
Icon(Icons.keyboard_arrow_right, color: Colors.red))
|
|
|
|
|
: Expanded(flex: 1, child: SizedBox())
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
));
|
|
|
|
|
|