diff --git a/lib/consts.dart b/lib/consts.dart index 8a9cd805..4ed71168 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -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(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)); diff --git a/lib/screens/home_page/editor_pane/details_card/request_pane/request_body.dart b/lib/screens/home_page/editor_pane/details_card/request_pane/request_body.dart index ba544de0..078cad2b 100644 --- a/lib/screens/home_page/editor_pane/details_card/request_pane/request_body.dart +++ b/lib/screens/home_page/editor_pane/details_card/request_pane/request_body.dart @@ -130,7 +130,7 @@ class _TextFieldEditorState extends ConsumerState { }, decoration: InputDecoration( hintText: "Enter content (body)", - hintStyle: codeStyle.copyWith(color: colorGrey500), + hintStyle: codeHintStyle, focusedBorder: OutlineInputBorder( borderRadius: border12, borderSide: BorderSide( diff --git a/lib/screens/home_page/editor_pane/details_card/request_pane/request_headers.dart b/lib/screens/home_page/editor_pane/details_card/request_pane/request_headers.dart index b91ce056..cfccc861 100644 --- a/lib/screens/home_page/editor_pane/details_card/request_pane/request_headers.dart +++ b/lib/screens/home_page/editor_pane/details_card/request_pane/request_headers.dart @@ -32,7 +32,7 @@ class EditRequestHeadersState extends ConsumerState { 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 { initialValue: rows[idx].v, style: codeStyle, decoration: InputDecoration( - hintStyle: codeStyle, + hintStyle: codeHintStyle, hintText: "Add Header Value", ), onChanged: (value) { diff --git a/lib/screens/home_page/editor_pane/details_card/request_pane/request_params.dart b/lib/screens/home_page/editor_pane/details_card/request_pane/request_params.dart index 9415379f..809641fa 100644 --- a/lib/screens/home_page/editor_pane/details_card/request_pane/request_params.dart +++ b/lib/screens/home_page/editor_pane/details_card/request_pane/request_params.dart @@ -33,7 +33,7 @@ class EditRequestURLParamsState extends ConsumerState { 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 { initialValue: rows[idx].v, style: codeStyle, decoration: InputDecoration( - hintStyle: codeStyle, + hintStyle: codeHintStyle, hintText: "Add Value", ), onChanged: (value) {