mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Uniform textfield hint style
This commit is contained in:
@ -1,10 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
|
||||||
final codeStyle = GoogleFonts.sourceCodePro();
|
|
||||||
|
|
||||||
const textStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
|
||||||
|
|
||||||
final colorTransparent = MaterialStateProperty.all<Color>(Colors.transparent);
|
final colorTransparent = MaterialStateProperty.all<Color>(Colors.transparent);
|
||||||
const colorBg = Colors.white;
|
const colorBg = Colors.white;
|
||||||
final colorGrey50 = Colors.grey.shade50;
|
final colorGrey50 = Colors.grey.shade50;
|
||||||
@ -15,6 +11,11 @@ final colorGrey400 = Colors.grey.shade400;
|
|||||||
final colorGrey500 = Colors.grey.shade500;
|
final colorGrey500 = Colors.grey.shade500;
|
||||||
final colorErrorMsg = colorGrey500;
|
final colorErrorMsg = colorGrey500;
|
||||||
|
|
||||||
|
final codeStyle = GoogleFonts.sourceCodePro();
|
||||||
|
final codeHintStyle = codeStyle.copyWith(color: colorGrey500);
|
||||||
|
|
||||||
|
const textStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||||
|
|
||||||
final borderRadius10 = BorderRadius.circular(10);
|
final borderRadius10 = BorderRadius.circular(10);
|
||||||
const border12 = BorderRadius.all(Radius.circular(12));
|
const border12 = BorderRadius.all(Radius.circular(12));
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class _TextFieldEditorState extends ConsumerState<TextFieldEditor> {
|
|||||||
},
|
},
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: "Enter content (body)",
|
hintText: "Enter content (body)",
|
||||||
hintStyle: codeStyle.copyWith(color: colorGrey500),
|
hintStyle: codeHintStyle,
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder: OutlineInputBorder(
|
||||||
borderRadius: border12,
|
borderRadius: border12,
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
|
@ -32,7 +32,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
|||||||
initialValue: rows[idx].k,
|
initialValue: rows[idx].k,
|
||||||
style: codeStyle,
|
style: codeStyle,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintStyle: codeStyle,
|
hintStyle: codeHintStyle,
|
||||||
hintText: "Add Header Name",
|
hintText: "Add Header Name",
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
@ -49,7 +49,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
|||||||
initialValue: rows[idx].v,
|
initialValue: rows[idx].v,
|
||||||
style: codeStyle,
|
style: codeStyle,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintStyle: codeStyle,
|
hintStyle: codeHintStyle,
|
||||||
hintText: "Add Header Value",
|
hintText: "Add Header Value",
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
@ -33,7 +33,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
|||||||
initialValue: rows[idx].k,
|
initialValue: rows[idx].k,
|
||||||
style: codeStyle,
|
style: codeStyle,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintStyle: codeStyle,
|
hintStyle: codeHintStyle,
|
||||||
hintText: "Add URL Parameter",
|
hintText: "Add URL Parameter",
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
@ -50,7 +50,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
|||||||
initialValue: rows[idx].v,
|
initialValue: rows[idx].v,
|
||||||
style: codeStyle,
|
style: codeStyle,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintStyle: codeStyle,
|
hintStyle: codeHintStyle,
|
||||||
hintText: "Add Value",
|
hintText: "Add Value",
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
Reference in New Issue
Block a user