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:google_fonts/google_fonts.dart';
|
||||
|
||||
final codeStyle = GoogleFonts.sourceCodePro();
|
||||
|
||||
const textStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||
|
||||
final colorTransparent = MaterialStateProperty.all<Color>(Colors.transparent);
|
||||
const colorBg = Colors.white;
|
||||
final colorGrey50 = Colors.grey.shade50;
|
||||
@ -15,6 +11,11 @@ final colorGrey400 = Colors.grey.shade400;
|
||||
final colorGrey500 = Colors.grey.shade500;
|
||||
final colorErrorMsg = colorGrey500;
|
||||
|
||||
final codeStyle = GoogleFonts.sourceCodePro();
|
||||
final codeHintStyle = codeStyle.copyWith(color: colorGrey500);
|
||||
|
||||
const textStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||
|
||||
final borderRadius10 = BorderRadius.circular(10);
|
||||
const border12 = BorderRadius.all(Radius.circular(12));
|
||||
|
||||
|
@ -130,7 +130,7 @@ class _TextFieldEditorState extends ConsumerState<TextFieldEditor> {
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
hintText: "Enter content (body)",
|
||||
hintStyle: codeStyle.copyWith(color: colorGrey500),
|
||||
hintStyle: codeHintStyle,
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderRadius: border12,
|
||||
borderSide: BorderSide(
|
||||
|
@ -32,7 +32,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
||||
initialValue: rows[idx].k,
|
||||
style: codeStyle,
|
||||
decoration: InputDecoration(
|
||||
hintStyle: codeStyle,
|
||||
hintStyle: codeHintStyle,
|
||||
hintText: "Add Header Name",
|
||||
),
|
||||
onChanged: (value) {
|
||||
@ -49,7 +49,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
||||
initialValue: rows[idx].v,
|
||||
style: codeStyle,
|
||||
decoration: InputDecoration(
|
||||
hintStyle: codeStyle,
|
||||
hintStyle: codeHintStyle,
|
||||
hintText: "Add Header Value",
|
||||
),
|
||||
onChanged: (value) {
|
||||
|
@ -33,7 +33,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
||||
initialValue: rows[idx].k,
|
||||
style: codeStyle,
|
||||
decoration: InputDecoration(
|
||||
hintStyle: codeStyle,
|
||||
hintStyle: codeHintStyle,
|
||||
hintText: "Add URL Parameter",
|
||||
),
|
||||
onChanged: (value) {
|
||||
@ -50,7 +50,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
||||
initialValue: rows[idx].v,
|
||||
style: codeStyle,
|
||||
decoration: InputDecoration(
|
||||
hintStyle: codeStyle,
|
||||
hintStyle: codeHintStyle,
|
||||
hintText: "Add Value",
|
||||
),
|
||||
onChanged: (value) {
|
||||
|
Reference in New Issue
Block a user