This commit is contained in:
jayesh
2024-06-12 13:28:22 +05:30
parent 4760b8a2c0
commit b7a5484a5e
10 changed files with 192 additions and 119 deletions

View File

@@ -7,7 +7,8 @@ import 'package:tanami_app/core/styles/app_color.dart';
import 'bloc/bottom_nav_bar/bottom_navigation_bloc.dart';
import 'bloc/bottom_nav_bar/bottom_navigation_event.dart';
Widget bottomnavigationbar(BuildContext context, selectedIndex) {
Widget bottomnavigationbar(
BuildContext context, selectedIndex, PageController pageController) {
return BottomNavigationBar(
type: BottomNavigationBarType.fixed,
showUnselectedLabels: true,
@@ -25,6 +26,8 @@ Widget bottomnavigationbar(BuildContext context, selectedIndex) {
),
currentIndex: selectedIndex,
onTap: (index) {
pageController.jumpToPage(index);
context.read<BottomNavigationBloc>().add(TabChanged(index));
},
items: [

View File

@@ -6,9 +6,11 @@ import '../../core/routes/route_name.dart';
import '../../core/routes/routes.dart';
import '../../core/styles/app_color.dart';
import '../../core/styles/app_text.dart';
import '../../core/utils/secure/secure_storage_service.dart';
import 'text_widget.dart';
buildprofilelogoutdialog(context) {
SecureStorageService secureStorageService = SecureStorageService();
return showDialog(
context: context,
builder: (context) => Column(
@@ -79,7 +81,8 @@ buildprofilelogoutdialog(context) {
),
Gap(28.w),
InkWell(
onTap: () {
onTap: () async {
await secureStorageService.write('isLoginedIn', "false");
goRouter.goNamed(RouteName.loginScreen, pathParameters: {
"fromScreen": "registerStep",
});