fix: textstyle height, keyId

This commit is contained in:
DenserMeerkat
2024-03-16 15:52:29 +05:30
parent 6eddcd2622
commit 5beb51d2f4
7 changed files with 58 additions and 42 deletions

View File

@ -81,9 +81,9 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
Theme(
data: Theme.of(context),
child: FormDataField(
keyId: "$selectedId-$index-form-v-$seed",
keyId: "$selectedId-$index-form-k-$seed",
initialValue: rows[index].name,
hintText: "Add Key",
hintText: " Add Key",
onChanged: (value) {
rows[index] = rows[index].copyWith(
name: value,
@ -178,7 +178,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
: CellField(
keyId: "$selectedId-$index-form-v-$seed",
initialValue: rows[index].value,
hintText: "Add Value",
hintText: " Add Value",
onChanged: (value) {
rows[index] =
rows[index].copyWith(value: value);

View File

@ -37,7 +37,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
@override
Widget build(BuildContext context) {
final selectedId = ref.watch(selectedIdStateProvider);
final length = ref.watch(selectedRequestModelProvider
ref.watch(selectedRequestModelProvider
.select((value) => value?.requestHeaders?.length));
var rH = ref.read(selectedRequestModelProvider)?.requestHeaders;
rows = (rH == null || rH.isEmpty)
@ -135,7 +135,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
CellField(
keyId: "$selectedId-$index-headers-v-$seed",
initialValue: rows[index].value,
hintText: "Add Header Value",
hintText: " Add Header Value",
onChanged: (value) {
rows[index] =
rows[index].copyWith(value: value);

View File

@ -38,7 +38,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
@override
Widget build(BuildContext context) {
final selectedId = ref.watch(selectedIdStateProvider);
final length = ref.watch(selectedRequestModelProvider
ref.watch(selectedRequestModelProvider
.select((value) => value?.requestParams?.length));
var rP = ref.read(selectedRequestModelProvider)?.requestParams;
rows = (rP == null || rP.isEmpty)

View File

@ -43,16 +43,18 @@ class _FormDataFieldState extends State<FormDataField> {
initialValue: widget.initialValue,
key: Key(widget.keyId),
style: kCodeStyle.copyWith(
height: 1.8,
color: colorScheme.onSurface,
),
decoration: InputDecoration(
hintStyle: kCodeStyle.copyWith(
height: 1.8,
color: colorScheme.outline.withOpacity(
kHintOpacity,
),
),
hintText: widget.hintText,
contentPadding: const EdgeInsets.only(bottom: 13),
contentPadding: const EdgeInsets.only(bottom: 12),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(
color: colorScheme.primary.withOpacity(

View File

@ -76,9 +76,13 @@ class _HeaderFieldState extends State<HeaderField> {
onChanged: widget.onChanged,
controller: controller,
focusNode: focusNode,
style: kCodeStyle.copyWith(color: colorScheme.onSurface),
style: kCodeStyle.copyWith(
height: 1.6,
color: colorScheme.onSurface,
),
decoration: InputDecoration(
hintStyle: kCodeStyle.copyWith(
height: 1.6,
color: colorScheme.outline.withOpacity(kHintOpacity)),
hintText: widget.hintText,
contentPadding: const EdgeInsets.only(bottom: 12),

View File

@ -59,10 +59,12 @@ class CellField extends StatelessWidget {
key: Key(keyId),
initialValue: initialValue,
style: kCodeStyle.copyWith(
height: 1.6,
color: clrScheme.onSurface,
),
decoration: InputDecoration(
hintStyle: kCodeStyle.copyWith(
height: 1.6,
color: clrScheme.outline.withOpacity(
kHintOpacity,
),

View File

@ -49,14 +49,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.18"
axis_layout:
dependency: transitive
description:
name: axis_layout
sha256: "9ba44f279f39121065d811e72da892de86f5613d68eb0b295f60d021ea8f2a59"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
barcode:
dependency: transitive
description:
@ -241,14 +233,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.5.11"
davi:
dependency: "direct main"
description:
name: davi
sha256: "4105870281c4c33e8e017e21e212b96fd2637b4c1a35b2a56f14aaa4acdf6f0d"
url: "https://pub.dev"
source: hosted
version: "3.4.1"
eventify:
dependency: transitive
description:
@ -516,10 +500,10 @@ packages:
dependency: "direct main"
description:
name: http
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.2.1"
http_multi_server:
dependency: transitive
description:
@ -641,6 +625,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.2.0"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
url: "https://pub.dev"
source: hosted
version: "2.0.1"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
url: "https://pub.dev"
source: hosted
version: "2.0.1"
lints:
dependency: transitive
description:
@ -677,26 +685,26 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16"
version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.5.0"
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.11.0"
mime:
dependency: transitive
description:
@ -773,10 +781,10 @@ packages:
dependency: "direct main"
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.9.0"
path_parsing:
dependency: transitive
description:
@ -893,10 +901,10 @@ packages:
dependency: transitive
description:
name: pointer_interceptor_web
sha256: "9386e064097fd16419e935c23f08f35b58e6aaec155dd39bd6a003b88f9c14b4"
sha256: a6237528b46c411d8d55cdfad8fcb3269fc4cbb26060b14bff94879165887d1e
url: "https://pub.dev"
source: hosted
version: "0.10.1+2"
version: "0.10.2"
pointycastle:
dependency: transitive
description:
@ -1218,10 +1226,10 @@ packages:
dependency: transitive
description:
name: url_launcher_web
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.3.0"
url_launcher_windows:
dependency: transitive
description:
@ -1290,10 +1298,10 @@ packages:
dependency: "direct main"
description:
name: web
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.3.0"
version: "0.5.1"
web_socket_channel:
dependency: transitive
description:
@ -1360,5 +1368,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.16.0"
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"