|
|
|
@@ -12,6 +12,8 @@ import 'package:flutter_bloc/flutter_bloc.dart'; |
|
|
|
import 'package:get/get.dart'; |
|
|
|
import 'package:get/state_manager.dart'; |
|
|
|
|
|
|
|
import '../../../main.dart'; |
|
|
|
|
|
|
|
class HomeDrawer extends StatefulWidget { |
|
|
|
const HomeDrawer( |
|
|
|
{Key key, |
|
|
|
@@ -223,8 +225,13 @@ class _HomeDrawerState extends State<HomeDrawer> { |
|
|
|
splashColor: Colors.grey.withOpacity(0.1), |
|
|
|
highlightColor: Colors.transparent, |
|
|
|
onTap: () { |
|
|
|
currentDrawerIndex = listData.index; |
|
|
|
navigationtoScreen(listData.index); |
|
|
|
if (listData.index == DrawerIndex.ScanBarcode) { |
|
|
|
scan(context); |
|
|
|
navigationtoScreen(currentDrawerIndex); |
|
|
|
} else { |
|
|
|
currentDrawerIndex = listData.index; |
|
|
|
navigationtoScreen(currentDrawerIndex); |
|
|
|
} |
|
|
|
}, |
|
|
|
child: Stack( |
|
|
|
children: <Widget>[ |