Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:env variables support #597

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Clasherzz
Copy link
Contributor

@Clasherzz Clasherzz commented Feb 22, 2025

PR Description

Trying to use enviornment variables in JSON and Text

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: will complete once the approach is confirmed as correct

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

@Clasherzz
Copy link
Contributor Author

Screenshot 2025-02-22 174512
Screenshot 2025-02-22 174530
Screenshot 2025-02-22 174725

@ashitaprasad does this approach have any issue

@Clasherzz Clasherzz changed the title Variables support feat:env variables support Feb 22, 2025
@@ -0,0 +1,136 @@
import 'package:flutter/material.dart';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you duplicating the widget and not modifying the EnvironmentTriggerField code?

Copy link
Contributor Author

@Clasherzz Clasherzz Feb 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashitaprasad trigger field was small as itself and didnt had multiple line support but i felt like changing the existing field code can make it less readable .

import 'package:apidash_core/apidash_core.dart';
import 'package:apidash_design_system/apidash_design_system.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:apidash/providers/providers.dart';
import 'package:apidash/widgets/widgets.dart';
import 'package:apidash/consts.dart';
import '../../../../common_widgets/envfield_editor.dart';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imports are not clean

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashitaprasad my bad would resolve it

@Clasherzz Clasherzz marked this pull request as draft February 22, 2025 18:20
@Clasherzz Clasherzz marked this pull request as ready for review February 22, 2025 19:12
@Clasherzz
Copy link
Contributor Author

@ashitaprasad I have removed the duplicated widget upon your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Env. Variable Support for JSON request body
2 participants