fix: add missing crypto dependency to better_networking package

add missing auth tab in HistoryRequestPane
This commit is contained in:
Udhay-Adithya
2025-07-02 22:25:45 +05:30
parent a11c833822
commit 4284f47fe6
3 changed files with 5 additions and 5 deletions

View File

@ -46,10 +46,8 @@ class HistoryRequestPane extends ConsumerWidget {
.select((value) => value?.postRequestScript?.length)) ??
0;
final hasAuth = ref.watch(selectedHistoryRequestModelProvider.select(
(value) =>
value?.authModel?.type != APIAuthType.none));
final hasAuth = ref.watch(selectedHistoryRequestModelProvider
.select((value) => value?.authModel?.type != APIAuthType.none));
final authModel = ref.watch(selectedHistoryRequestModelProvider
.select((value) => value?.authModel));
@ -66,12 +64,14 @@ class HistoryRequestPane extends ConsumerWidget {
showViewCodeButton: !isCompact,
showIndicators: [
paramLength > 0,
hasAuth,
headerLength > 0,
hasBody,
scriptsLength > 0,
],
tabLabels: const [
kLabelURLParams,
kLabelAuth,
kLabelHeaders,
kLabelBody,
kLabelScripts,

View File

@ -23,7 +23,6 @@ dependencies:
postman:
path: ../postman
xml: ^6.3.0
crypto: ^3.0.6
dev_dependencies:
flutter_test:

View File

@ -25,6 +25,7 @@ dependencies:
json_annotation: ^4.9.0
seed: ^0.0.3
xml: ^6.3.0
crypto: ^3.0.6
dev_dependencies:
flutter_test: