Uniform textfield hint style

This commit is contained in:
Ankit Mahato
2023-03-11 17:47:10 +05:30
parent 08cdc6423a
commit a6f5a7d842
4 changed files with 10 additions and 9 deletions

View File

@ -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));

View File

@ -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(

View File

@ -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) {

View File

@ -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) {