File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
lib/screens/home_page/editor_pane/details_card/request_pane Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,21 @@ class EditRequestBody extends ConsumerWidget {
39
39
40
40
return Column (
41
41
children: [
42
- (apiType == APIType .webSocket) //dont forget to make it switch and put for rest
43
- ? SizedBox (
42
+ switch (apiType){
43
+ APIType .rest => const SizedBox (
44
+ height: kHeaderHeight,
45
+ child: Row (
46
+ mainAxisAlignment: MainAxisAlignment .center,
47
+ children: [
48
+ Text (
49
+ "Select Content Type:" ,
50
+ ),
51
+ DropdownButtonBodyContentType (),
52
+ ],
53
+ ),
54
+ ),
55
+ APIType .webSocket => //dont forget to make it switch and put for rest
56
+ SizedBox (
44
57
height: kHeaderHeight,
45
58
child: Row (
46
59
mainAxisAlignment: MainAxisAlignment .spaceBetween,
@@ -69,8 +82,10 @@ class EditRequestBody extends ConsumerWidget {
69
82
),
70
83
],
71
84
),
72
- )
73
- : kSizedBoxEmpty,
85
+ ),
86
+ _=> kSizedBoxEmpty,
87
+
88
+ },
74
89
switch (apiType) {
75
90
APIType .rest => Expanded (
76
91
child: switch (contentType) {
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class EditWebSocketRequestPane extends ConsumerWidget {
23
23
final paramLength = ref.watch (selectedRequestModelProvider
24
24
.select ((value) => value? .webSocketRequestModel? .paramsMap.length)) ??
25
25
0 ;
26
+ final message = ref.watch (selectedRequestModelProvider
27
+ .select ((value) => value? .webSocketRequestModel? .message)) ??
28
+ "" ;
26
29
27
30
return RequestPane (
28
31
selectedId: selectedId,
@@ -40,7 +43,7 @@ class EditWebSocketRequestPane extends ConsumerWidget {
40
43
showIndicators: [
41
44
paramLength > 0 ,
42
45
! kIsWeb && headerLength > 0 ,
43
- true ,
46
+ message.isNotEmpty ,
44
47
],
45
48
tabLabels: const [
46
49
kLabelURLParams,
You can’t perform that action at this time.
0 commit comments