mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: remove back button from dashbot tab
This commit is contained in:
@@ -65,20 +65,8 @@ class _DashbotTabState extends ConsumerState<DashbotTab>
|
||||
child: Align(
|
||||
alignment: AlignmentGeometry.centerRight,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
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) ...[
|
||||
ADIconButton(
|
||||
icon: Icons.close_fullscreen,
|
||||
|
||||
Reference in New Issue
Block a user