mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +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(
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user