feat: remove back button from dashbot tab

This commit is contained in:
Udhay-Adithya
2025-09-25 12:48:04 +05:30
parent c7f7ef0025
commit 49f16e796d

View File

@@ -65,20 +65,8 @@ class _DashbotTabState extends ConsumerState<DashbotTab>
child: Align( child: Align(
alignment: AlignmentGeometry.centerRight, alignment: AlignmentGeometry.centerRight,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
ADIconButton(
icon: Icons.arrow_back_rounded,
onPressed: () {
final navState = _navKey.currentState;
if (navState?.canPop() ?? false) {
navState!.maybePop();
} else {
Navigator.maybePop(context);
}
},
),
Spacer(),
if (!kIsMobile) ...[ if (!kIsMobile) ...[
ADIconButton( ADIconButton(
icon: Icons.close_fullscreen, icon: Icons.close_fullscreen,