mirror of
https://github.com/foss42/apidash.git
synced 2025-05-30 13:27:09 +08:00
Hint constants
This commit is contained in:
@ -454,6 +454,10 @@ const kLabelAddHeader = "Add Header";
|
||||
const kLabelAddVariable = "Add Variable";
|
||||
const kLabelSelectFile = "Select File";
|
||||
const kLabelAddFormField = "Add Form Field";
|
||||
const kHintContent = "Enter content";
|
||||
const kHintText = "Enter text";
|
||||
const kHintJson = "Enter JSON";
|
||||
const kHintQuery = "Enter Query";
|
||||
// Response Pane
|
||||
const kLabelNotSent = "Not Sent";
|
||||
const kLabelResponse = "Response";
|
||||
|
@ -74,7 +74,7 @@ class EditRequestBody extends ConsumerWidget {
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.update(body: value);
|
||||
},
|
||||
hintText: "Enter JSON",
|
||||
hintText: kHintJson,
|
||||
),
|
||||
),
|
||||
_ => Padding(
|
||||
@ -89,7 +89,7 @@ class EditRequestBody extends ConsumerWidget {
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.update(body: value);
|
||||
},
|
||||
hintText: "Enter text",
|
||||
hintText: kHintText,
|
||||
),
|
||||
),
|
||||
},
|
||||
@ -106,7 +106,7 @@ class EditRequestBody extends ConsumerWidget {
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.update(query: value);
|
||||
},
|
||||
hintText: "Enter Query",
|
||||
hintText: kHintQuery,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -1,4 +1,5 @@
|
||||
import 'dart:math' as math;
|
||||
import 'package:apidash/consts.dart';
|
||||
import 'package:apidash_design_system/apidash_design_system.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@ -83,7 +84,7 @@ class _TextFieldEditorState extends State<TextFieldEditor> {
|
||||
editorFocusNode.unfocus();
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
hintText: widget.hintText ?? "Enter content",
|
||||
hintText: widget.hintText ?? kHintContent,
|
||||
hintStyle: TextStyle(
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(
|
||||
kHintOpacity,
|
||||
|
@ -1,4 +1,5 @@
|
||||
import 'dart:math' as math;
|
||||
import 'package:apidash/consts.dart';
|
||||
import 'package:apidash_design_system/apidash_design_system.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@ -93,7 +94,7 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
||||
widget.onChanged?.call(value);
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
hintText: "Enter content (body)",
|
||||
hintText: kHintJson,
|
||||
hintStyle: TextStyle(
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(
|
||||
kHintOpacity,
|
||||
|
Reference in New Issue
Block a user