File tree 5 files changed +37
-19
lines changed
5 files changed +37
-19
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Feature request
3
+ about : Suggest a new feature to the framework
4
+ title : ' '
5
+ labels : ' '
6
+ assignees : ' '
7
+
8
+ ---
9
+
10
+ ** Is your feature request related to a problem? Please describe.**
11
+
12
+ ** Describe the solution you'd like if possible share the expected EDL**
13
+
14
+ ** Describe alternatives you've considered**
15
+
16
+ ** Additional context could be screen shot, discord conversation, figma file**
Original file line number Diff line number Diff line change @@ -85,9 +85,11 @@ Future<void> uploadFiles({
85
85
}
86
86
});
87
87
}
88
+ String rawUrl = apiDefinition['url' ]? .toString ().trim () ??
89
+ apiDefinition['uri' ]? .toString ().trim () ??
90
+ '' ;
88
91
89
- String url =
90
- HttpUtils .resolveUrl (dataContext, apiDefinition['uri' ].toString ().trim ());
92
+ String url = HttpUtils .resolveUrl (dataContext, rawUrl);
91
93
String method = apiDefinition['method' ]? .toString ().toUpperCase () ?? 'POST' ;
92
94
final fileResponse = action.id == null
93
95
? null
Original file line number Diff line number Diff line change @@ -12,9 +12,13 @@ mixin ThemeLoader {
12
12
final Color _buttonBorderOutlineColor = Colors .black12;
13
13
14
14
ThemeData getAppTheme (YamlMap ? overrides) {
15
+ final seedColor = Utils .getColor (overrides? ['Colors' ]? ['seed' ]);
16
+
15
17
ThemeData defaultTheme = ThemeData (
16
18
useMaterial3: true ,
17
- colorScheme: defaultColorScheme,
19
+ colorScheme: seedColor == null
20
+ ? defaultColorScheme
21
+ : ColorScheme .fromSeed (seedColor: seedColor),
18
22
scaffoldBackgroundColor:
19
23
Utils .getColor (overrides? ['Screen' ]? ['backgroundColor' ]) ??
20
24
DesignSystem .scaffoldBackgroundColor,
@@ -94,13 +98,6 @@ mixin ThemeLoader {
94
98
),
95
99
);
96
100
97
- final seedColor = Utils .getColor (overrides? ['Colors' ]? ['seed' ]);
98
-
99
- if (seedColor != null ) {
100
- defaultTheme = defaultTheme.copyWith (
101
- colorScheme: ColorScheme .fromSeed (seedColor: seedColor));
102
- }
103
-
104
101
final customColorSchema = defaultTheme.colorScheme.copyWith (
105
102
primary: Utils .getColor (overrides? ['Colors' ]? ['primary' ]),
106
103
onPrimary: Utils .getColor (overrides? ['Colors' ]? ['onPrimary' ]),
Original file line number Diff line number Diff line change @@ -621,12 +621,11 @@ class Utils {
621
621
return int .tryParse (value);
622
622
}
623
623
624
- static final onlyExpression = RegExp (
625
- r'''^\${([a-z_-\d\s.,:?!$@&|<>\+/*|%^="'\(\)\[\]]+)}$''' ,
626
- caseSensitive: false );
627
- static final containExpression = RegExp (
628
- r'''\${([a-z_-\d\s.,:?!$@&|<>\+/*|%^="'\(\)\[\]]+)}''' ,
629
- caseSensitive: false );
624
+ static final onlyExpression =
625
+ RegExp (r'''^\$\{([^}]+)\}$''' , caseSensitive: false );
626
+
627
+ static final containExpression =
628
+ RegExp (r'''\$\{([^}{]+(?:\{[^}{]*\}[^}{]*)*)\}''' , caseSensitive: false );
630
629
631
630
static final i18nExpression = RegExp (r'\br@([\w\.]+)' , caseSensitive: false );
632
631
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ class EnsembleCalendar extends StatefulWidget
75
75
duration: const Duration (milliseconds: 300 ), curve: Curves .easeOut),
76
76
'addRowSpan' : (value) => setRowSpan (value),
77
77
'update' : () => _controller.update (),
78
+ 'clearRange' : () => clearRange (),
78
79
};
79
80
}
80
81
@@ -119,6 +120,12 @@ class EnsembleCalendar extends StatefulWidget
119
120
};
120
121
}
121
122
123
+ void clearRange () {
124
+ _controller.rangeStart = null ;
125
+ _controller.rangeEnd = null ;
126
+ _controller.range = null ;
127
+ }
128
+
122
129
void setRowSpanItemTemplate (dynamic rowSpanData) {
123
130
try {
124
131
if (rowSpanData is ! Map ||
@@ -308,9 +315,6 @@ class EnsembleCalendar extends StatefulWidget
308
315
updatedDisabledDays.remove (date);
309
316
}
310
317
311
- _controller.rangeStart = null ;
312
- _controller.rangeEnd = null ;
313
- _controller.range = null ;
314
318
_controller.selectedDays.value = updatedDisabledDays;
315
319
}
316
320
You can’t perform that action at this time.
0 commit comments