mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: add scripts tab to request pane and update tab structure
This commit is contained in:
@@ -443,6 +443,7 @@ const kLabelViewCode = "View Code";
|
|||||||
const kLabelURLParams = "URL Params";
|
const kLabelURLParams = "URL Params";
|
||||||
const kLabelHeaders = "Headers";
|
const kLabelHeaders = "Headers";
|
||||||
const kLabelBody = "Body";
|
const kLabelBody = "Body";
|
||||||
|
const kLabelScripts = "Scripts";
|
||||||
const kLabelQuery = "Query";
|
const kLabelQuery = "Query";
|
||||||
const kNameCheckbox = "Checkbox";
|
const kNameCheckbox = "Checkbox";
|
||||||
const kNameURLParam = "URL Parameter";
|
const kNameURLParam = "URL Parameter";
|
||||||
|
|||||||
@@ -44,16 +44,19 @@ class EditRestRequestPane extends ConsumerWidget {
|
|||||||
paramLength > 0,
|
paramLength > 0,
|
||||||
headerLength > 0,
|
headerLength > 0,
|
||||||
hasBody,
|
hasBody,
|
||||||
|
false, // TODO: Add indicator condition once it is added to [selectedRequestModelProvider]
|
||||||
],
|
],
|
||||||
tabLabels: const [
|
tabLabels: const [
|
||||||
kLabelURLParams,
|
kLabelURLParams,
|
||||||
kLabelHeaders,
|
kLabelHeaders,
|
||||||
kLabelBody,
|
kLabelBody,
|
||||||
|
kLabelScripts,
|
||||||
],
|
],
|
||||||
children: const [
|
children: const [
|
||||||
EditRequestURLParams(),
|
EditRequestURLParams(),
|
||||||
EditRequestHeaders(),
|
EditRequestHeaders(),
|
||||||
EditRequestBody(),
|
EditRequestBody(),
|
||||||
|
SizedBox.shrink(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user