mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Relocate Mobile API Type dropdown and Environment dropdown
This commit is contained in:
@ -18,16 +18,6 @@ class RequestTabs extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
const Padding(
|
||||
padding: kPh8,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
APITypeDropdown(),
|
||||
EnvironmentDropdown(),
|
||||
],
|
||||
),
|
||||
),
|
||||
kVSpacer3,
|
||||
const Padding(
|
||||
padding: kPh4,
|
||||
|
@ -33,7 +33,11 @@ class _RequestResponsePageState extends ConsumerState<RequestResponsePage>
|
||||
useTabController(initialLength: 3, vsync: this);
|
||||
return DrawerSplitView(
|
||||
scaffoldKey: kHomeScaffoldKey,
|
||||
title: EditorTitle(
|
||||
title: Row(
|
||||
children: [
|
||||
APITypeDropdown(),
|
||||
Expanded(
|
||||
child: EditorTitle(
|
||||
title: name,
|
||||
onSelected: (ItemMenuOption item) {
|
||||
if (item == ItemMenuOption.edit) {
|
||||
@ -47,12 +51,17 @@ class _RequestResponsePageState extends ConsumerState<RequestResponsePage>
|
||||
ref.read(collectionStateNotifierProvider.notifier).remove();
|
||||
}
|
||||
if (item == ItemMenuOption.duplicate) {
|
||||
ref.read(collectionStateNotifierProvider.notifier).duplicate();
|
||||
ref
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.duplicate();
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
leftDrawerContent: const CollectionPane(),
|
||||
actions: const [kVSpacer16],
|
||||
actions: const [kHSpacer12],
|
||||
mainContent: id == null
|
||||
? const RequestEditorDefault()
|
||||
: RequestTabs(
|
||||
|
Reference in New Issue
Block a user