mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
fix: add missing crypto dependency to better_networking package
add missing auth tab in HistoryRequestPane
This commit is contained in:
@ -46,10 +46,8 @@ class HistoryRequestPane extends ConsumerWidget {
|
|||||||
.select((value) => value?.postRequestScript?.length)) ??
|
.select((value) => value?.postRequestScript?.length)) ??
|
||||||
0;
|
0;
|
||||||
|
|
||||||
|
final hasAuth = ref.watch(selectedHistoryRequestModelProvider
|
||||||
final hasAuth = ref.watch(selectedHistoryRequestModelProvider.select(
|
.select((value) => value?.authModel?.type != APIAuthType.none));
|
||||||
(value) =>
|
|
||||||
value?.authModel?.type != APIAuthType.none));
|
|
||||||
|
|
||||||
final authModel = ref.watch(selectedHistoryRequestModelProvider
|
final authModel = ref.watch(selectedHistoryRequestModelProvider
|
||||||
.select((value) => value?.authModel));
|
.select((value) => value?.authModel));
|
||||||
@ -66,12 +64,14 @@ class HistoryRequestPane extends ConsumerWidget {
|
|||||||
showViewCodeButton: !isCompact,
|
showViewCodeButton: !isCompact,
|
||||||
showIndicators: [
|
showIndicators: [
|
||||||
paramLength > 0,
|
paramLength > 0,
|
||||||
|
hasAuth,
|
||||||
headerLength > 0,
|
headerLength > 0,
|
||||||
hasBody,
|
hasBody,
|
||||||
scriptsLength > 0,
|
scriptsLength > 0,
|
||||||
],
|
],
|
||||||
tabLabels: const [
|
tabLabels: const [
|
||||||
kLabelURLParams,
|
kLabelURLParams,
|
||||||
|
kLabelAuth,
|
||||||
kLabelHeaders,
|
kLabelHeaders,
|
||||||
kLabelBody,
|
kLabelBody,
|
||||||
kLabelScripts,
|
kLabelScripts,
|
||||||
|
@ -23,7 +23,6 @@ dependencies:
|
|||||||
postman:
|
postman:
|
||||||
path: ../postman
|
path: ../postman
|
||||||
xml: ^6.3.0
|
xml: ^6.3.0
|
||||||
crypto: ^3.0.6
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
@ -25,6 +25,7 @@ dependencies:
|
|||||||
json_annotation: ^4.9.0
|
json_annotation: ^4.9.0
|
||||||
seed: ^0.0.3
|
seed: ^0.0.3
|
||||||
xml: ^6.3.0
|
xml: ^6.3.0
|
||||||
|
crypto: ^3.0.6
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Reference in New Issue
Block a user