some changes and fixes
This commit is contained in:
@@ -72,28 +72,6 @@ class _DesktopProfilePageState extends State<DesktopProfilePage> {
|
||||
children: [
|
||||
DesktopNavigationWidget(
|
||||
currentIndex: 2, // Tenders index
|
||||
onTabChanged: (index) {
|
||||
// Navigate to different screens based on index
|
||||
switch (index) {
|
||||
case 0:
|
||||
// Navigate to home
|
||||
Router.neglect(
|
||||
context,
|
||||
() => HomeRouteData().go(context),
|
||||
);
|
||||
break;
|
||||
case 1:
|
||||
// Navigate to profile
|
||||
Router.neglect(
|
||||
context,
|
||||
() => TendersRouteData().go(context),
|
||||
);
|
||||
break;
|
||||
case 2:
|
||||
// Already on profile
|
||||
break;
|
||||
}
|
||||
},
|
||||
),
|
||||
SizedBox(
|
||||
width: 740,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:tm_app/core/constants/assets.dart';
|
||||
import 'package:tm_app/core/constants/common_strings.dart';
|
||||
@@ -75,25 +74,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
appBar: tabletAppBar(title: ProfileStrings.profileTitle, key: key),
|
||||
|
||||
drawer: TabletNavigationWidget(
|
||||
currentIndex: 2,
|
||||
onTabChanged: (index) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
context.pop();
|
||||
Router.neglect(context, () => HomeRouteData().go(context));
|
||||
|
||||
break;
|
||||
case 1:
|
||||
context.pop();
|
||||
Router.neglect(
|
||||
context,
|
||||
() => TendersRouteData().go(context),
|
||||
);
|
||||
break;
|
||||
}
|
||||
},
|
||||
),
|
||||
drawer: TabletNavigationWidget(currentIndex: 2),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 24.0.w(),
|
||||
|
||||
Reference in New Issue
Block a user