ui fix
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user