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) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
const Padding(
|
|
||||||
padding: kPh8,
|
|
||||||
child: Row(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
|
||||||
APITypeDropdown(),
|
|
||||||
EnvironmentDropdown(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
kVSpacer3,
|
kVSpacer3,
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: kPh4,
|
padding: kPh4,
|
||||||
|
@ -33,7 +33,11 @@ class _RequestResponsePageState extends ConsumerState<RequestResponsePage>
|
|||||||
useTabController(initialLength: 3, vsync: this);
|
useTabController(initialLength: 3, vsync: this);
|
||||||
return DrawerSplitView(
|
return DrawerSplitView(
|
||||||
scaffoldKey: kHomeScaffoldKey,
|
scaffoldKey: kHomeScaffoldKey,
|
||||||
title: EditorTitle(
|
title: Row(
|
||||||
|
children: [
|
||||||
|
APITypeDropdown(),
|
||||||
|
Expanded(
|
||||||
|
child: EditorTitle(
|
||||||
title: name,
|
title: name,
|
||||||
onSelected: (ItemMenuOption item) {
|
onSelected: (ItemMenuOption item) {
|
||||||
if (item == ItemMenuOption.edit) {
|
if (item == ItemMenuOption.edit) {
|
||||||
@ -47,12 +51,17 @@ class _RequestResponsePageState extends ConsumerState<RequestResponsePage>
|
|||||||
ref.read(collectionStateNotifierProvider.notifier).remove();
|
ref.read(collectionStateNotifierProvider.notifier).remove();
|
||||||
}
|
}
|
||||||
if (item == ItemMenuOption.duplicate) {
|
if (item == ItemMenuOption.duplicate) {
|
||||||
ref.read(collectionStateNotifierProvider.notifier).duplicate();
|
ref
|
||||||
|
.read(collectionStateNotifierProvider.notifier)
|
||||||
|
.duplicate();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
leftDrawerContent: const CollectionPane(),
|
leftDrawerContent: const CollectionPane(),
|
||||||
actions: const [kVSpacer16],
|
actions: const [kHSpacer12],
|
||||||
mainContent: id == null
|
mainContent: id == null
|
||||||
? const RequestEditorDefault()
|
? const RequestEditorDefault()
|
||||||
: RequestTabs(
|
: RequestTabs(
|
||||||
|
Reference in New Issue
Block a user