feat: add scripts tab to request pane and update tab structure

This commit is contained in:
Udhay-Adithya
2025-04-21 23:31:55 +05:30
parent 0606b38b7a
commit ef3867ef43
2 changed files with 4 additions and 0 deletions

View File

@@ -443,6 +443,7 @@ const kLabelViewCode = "View Code";
const kLabelURLParams = "URL Params";
const kLabelHeaders = "Headers";
const kLabelBody = "Body";
const kLabelScripts = "Scripts";
const kLabelQuery = "Query";
const kNameCheckbox = "Checkbox";
const kNameURLParam = "URL Parameter";

View File

@@ -44,16 +44,19 @@ class EditRestRequestPane extends ConsumerWidget {
paramLength > 0,
headerLength > 0,
hasBody,
false, // TODO: Add indicator condition once it is added to [selectedRequestModelProvider]
],
tabLabels: const [
kLabelURLParams,
kLabelHeaders,
kLabelBody,
kLabelScripts,
],
children: const [
EditRequestURLParams(),
EditRequestHeaders(),
EditRequestBody(),
SizedBox.shrink(),
],
);
}