mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
Added env variable support for form request body
✨ Added env variable support for form request body to enhance flexibility and reduce manual updates.
This commit is contained in:
committed by
GitHub
parent
1618b6c42c
commit
80f828b558
@@ -1,4 +1,5 @@
|
||||
import 'dart:math';
|
||||
import 'package:apidash/screens/common_widgets/envfield_cell.dart';
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
import 'package:apidash_design_system/apidash_design_system.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -82,7 +83,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
|
||||
key: ValueKey("$selectedId-$index-form-row-$seed"),
|
||||
cells: <DataCell>[
|
||||
DataCell(
|
||||
CellField(
|
||||
EnvCellField(
|
||||
keyId: "$selectedId-$index-form-k-$seed",
|
||||
initialValue: formRows[index].name,
|
||||
hintText: kHintAddFieldName,
|
||||
@@ -138,7 +139,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
|
||||
},
|
||||
initialValue: formRows[index].value,
|
||||
)
|
||||
: CellField(
|
||||
: EnvCellField(
|
||||
keyId: "$selectedId-$index-form-v-$seed",
|
||||
initialValue: formRows[index].value,
|
||||
hintText: kHintAddValue,
|
||||
|
||||
Reference in New Issue
Block a user