Skip to content

Commit 80f828b

Browse files
Added env variable support for form request body
✨ Added env variable support for form request body to enhance flexibility and reduce manual updates.
1 parent 1618b6c commit 80f828b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/screens/home_page/editor_pane/details_card/request_pane/request_form_data.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:math';
2+
import 'package:apidash/screens/common_widgets/envfield_cell.dart';
23
import 'package:apidash_core/apidash_core.dart';
34
import 'package:apidash_design_system/apidash_design_system.dart';
45
import 'package:flutter/material.dart';
@@ -82,7 +83,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
8283
key: ValueKey("$selectedId-$index-form-row-$seed"),
8384
cells: <DataCell>[
8485
DataCell(
85-
CellField(
86+
EnvCellField(
8687
keyId: "$selectedId-$index-form-k-$seed",
8788
initialValue: formRows[index].name,
8889
hintText: kHintAddFieldName,
@@ -138,7 +139,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
138139
},
139140
initialValue: formRows[index].value,
140141
)
141-
: CellField(
142+
: EnvCellField(
142143
keyId: "$selectedId-$index-form-v-$seed",
143144
initialValue: formRows[index].value,
144145
hintText: kHintAddValue,

0 commit comments

Comments
 (0)