@@ -107,189 +107,124 @@ class InAppBrowserSettings_
107
107
bool ? hidden;
108
108
109
109
///Set to `true` to hide the toolbar at the top of the WebView. The default value is `false` .
110
- @SupportedPlatforms (platforms: [
111
- AndroidPlatform (),
112
- IOSPlatform (),
113
- MacOSPlatform ()
114
- ])
110
+ @SupportedPlatforms (
111
+ platforms: [AndroidPlatform (), IOSPlatform (), MacOSPlatform ()])
115
112
bool ? hideToolbarTop;
116
113
117
114
///Set the custom background color of the toolbar at the top.
118
- @SupportedPlatforms (platforms: [
119
- AndroidPlatform (),
120
- IOSPlatform (),
121
- MacOSPlatform ()
122
- ])
115
+ @SupportedPlatforms (
116
+ platforms: [AndroidPlatform (), IOSPlatform (), MacOSPlatform ()])
123
117
Color_ ? toolbarTopBackgroundColor;
124
118
125
119
///Set to `true` to hide the url bar on the toolbar at the top. The default value is `false` .
126
- @SupportedPlatforms (platforms: [
127
- AndroidPlatform (),
128
- IOSPlatform (),
129
- MacOSPlatform ()
130
- ])
120
+ @SupportedPlatforms (
121
+ platforms: [AndroidPlatform (), IOSPlatform (), MacOSPlatform ()])
131
122
bool ? hideUrlBar;
132
123
133
124
///Set to `true` to hide the progress bar when the WebView is loading a page. The default value is `false` .
134
- @SupportedPlatforms (platforms: [
135
- AndroidPlatform (),
136
- IOSPlatform (),
137
- MacOSPlatform ()
138
- ])
125
+ @SupportedPlatforms (
126
+ platforms: [AndroidPlatform (), IOSPlatform (), MacOSPlatform ()])
139
127
bool ? hideProgressBar;
140
128
141
129
///Set to `true` to hide the default menu items. The default value is `false` .
142
- @SupportedPlatforms (platforms: [
143
- AndroidPlatform (),
144
- IOSPlatform (),
145
- MacOSPlatform ()
146
- ])
130
+ @SupportedPlatforms (
131
+ platforms: [AndroidPlatform (), IOSPlatform (), MacOSPlatform ()])
147
132
bool ? hideDefaultMenuItems;
148
133
149
134
///Set to `true` if you want the title should be displayed. The default value is `false` .
150
- @SupportedPlatforms (platforms: [
151
- AndroidPlatform ()
152
- ])
135
+ @SupportedPlatforms (platforms: [AndroidPlatform ()])
153
136
bool ? hideTitleBar;
154
137
155
138
///Set the action bar's title.
156
- @SupportedPlatforms (platforms: [
157
- AndroidPlatform (),
158
- MacOSPlatform (),
159
- WindowsPlatform ()
160
- ])
139
+ @SupportedPlatforms (
140
+ platforms: [AndroidPlatform (), MacOSPlatform (), WindowsPlatform ()])
161
141
String ? toolbarTopFixedTitle;
162
142
163
143
///Set to `false` to not close the InAppBrowser when the user click on the Android back button and the WebView cannot go back to the history. The default value is `true` .
164
- @SupportedPlatforms (platforms: [
165
- AndroidPlatform ()
166
- ])
144
+ @SupportedPlatforms (platforms: [AndroidPlatform ()])
167
145
bool ? closeOnCannotGoBack;
168
146
169
147
///Set to `false` to block the InAppBrowser WebView going back when the user click on the Android back button. The default value is `true` .
170
- @SupportedPlatforms (platforms: [
171
- AndroidPlatform ()
172
- ])
148
+ @SupportedPlatforms (platforms: [AndroidPlatform ()])
173
149
bool ? allowGoBackWithBackButton;
174
150
175
151
///Set to `true` to close the InAppBrowser when the user click on the Android back button. The default value is `false` .
176
- @SupportedPlatforms (platforms: [
177
- AndroidPlatform ()
178
- ])
152
+ @SupportedPlatforms (platforms: [AndroidPlatform ()])
179
153
bool ? shouldCloseOnBackButtonPressed;
180
154
181
155
///Set to `true` to set the toolbar at the top translucent. The default value is `true` .
182
- @SupportedPlatforms (platforms: [
183
- IOSPlatform ()
184
- ])
156
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
185
157
bool ? toolbarTopTranslucent;
186
158
187
159
///Set the tint color to apply to the navigation bar background.
188
- @SupportedPlatforms (platforms: [
189
- IOSPlatform ()
190
- ])
160
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
191
161
Color_ ? toolbarTopBarTintColor;
192
162
193
163
///Set the tint color to apply to the navigation items and bar button items.
194
- @SupportedPlatforms (platforms: [
195
- IOSPlatform ()
196
- ])
164
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
197
165
Color_ ? toolbarTopTintColor;
198
166
199
167
///Set to `true` to hide the toolbar at the bottom of the WebView. The default value is `false` .
200
- @SupportedPlatforms (platforms: [
201
- IOSPlatform ()
202
- ])
168
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
203
169
bool ? hideToolbarBottom;
204
170
205
171
///Set the custom background color of the toolbar at the bottom.
206
- @SupportedPlatforms (platforms: [
207
- IOSPlatform ()
208
- ])
172
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
209
173
Color_ ? toolbarBottomBackgroundColor;
210
174
211
175
///Set the tint color to apply to the bar button items.
212
- @SupportedPlatforms (platforms: [
213
- IOSPlatform ()
214
- ])
176
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
215
177
Color_ ? toolbarBottomTintColor;
216
178
217
179
///Set to `true` to set the toolbar at the bottom translucent. The default value is `true` .
218
- @SupportedPlatforms (platforms: [
219
- IOSPlatform ()
220
- ])
180
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
221
181
bool ? toolbarBottomTranslucent;
222
182
223
183
///Set the custom text for the close button.
224
- @SupportedPlatforms (platforms: [
225
- IOSPlatform ()
226
- ])
184
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
227
185
String ? closeButtonCaption;
228
186
229
187
///Set the custom color for the close button.
230
- @SupportedPlatforms (platforms: [
231
- IOSPlatform ()
232
- ])
188
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
233
189
Color_ ? closeButtonColor;
234
190
235
191
///Set to `true` to hide the close button. The default value is `false` .
236
- @SupportedPlatforms (platforms: [
237
- IOSPlatform ()
238
- ])
192
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
239
193
bool ? hideCloseButton;
240
194
241
195
///Set the custom color for the menu button.
242
- @SupportedPlatforms (platforms: [
243
- IOSPlatform ()
244
- ])
196
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
245
197
Color_ ? menuButtonColor;
246
198
247
199
///Set the custom modal presentation style when presenting the WebView. The default value is [ModalPresentationStyle.FULL_SCREEN] .
248
- @SupportedPlatforms (platforms: [
249
- IOSPlatform ()
250
- ])
200
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
251
201
ModalPresentationStyle_ ? presentationStyle;
252
202
253
203
///Set to the custom transition style when presenting the WebView. The default value is [ModalTransitionStyle.COVER_VERTICAL] .
254
- @SupportedPlatforms (platforms: [
255
- IOSPlatform ()
256
- ])
204
+ @SupportedPlatforms (platforms: [IOSPlatform ()])
257
205
ModalTransitionStyle_ ? transitionStyle;
258
206
259
207
///How the browser window should be added to the main window.
260
208
///The default value is [WindowType.WINDOW] .
261
- @SupportedPlatforms (platforms: [
262
- MacOSPlatform (),
263
- WindowsPlatform ()
264
- ])
209
+ @SupportedPlatforms (platforms: [MacOSPlatform (), WindowsPlatform ()])
265
210
WindowType_ ? windowType;
266
211
267
212
///The window’s alpha value.
268
213
///The default value is `1.0` .
269
- @SupportedPlatforms (platforms: [
270
- MacOSPlatform (),
271
- WindowsPlatform ()
272
- ])
214
+ @SupportedPlatforms (platforms: [MacOSPlatform (), WindowsPlatform ()])
273
215
double ? windowAlphaValue;
274
216
275
217
///Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode.
276
- @SupportedPlatforms (platforms: [
277
- MacOSPlatform ()
278
- ])
218
+ @SupportedPlatforms (platforms: [MacOSPlatform ()])
279
219
WindowStyleMask_ ? windowStyleMask;
280
220
281
221
///The type of separator that the app displays between the title bar and content of a window.
282
- @SupportedPlatforms (platforms: [
283
- MacOSPlatform (available: '11.0' )
284
- ])
222
+ @SupportedPlatforms (platforms: [MacOSPlatform (available: '11.0' )])
285
223
WindowTitlebarSeparatorStyle_ ? windowTitlebarSeparatorStyle;
286
224
287
225
///Sets the origin and size of the window’s frame rectangle according to a given frame rectangle,
288
226
///thereby setting its position and size onscreen.
289
- @SupportedPlatforms (platforms: [
290
- MacOSPlatform (),
291
- WindowsPlatform ()
292
- ])
227
+ @SupportedPlatforms (platforms: [MacOSPlatform (), WindowsPlatform ()])
293
228
InAppWebViewRect_ ? windowFrame;
294
229
295
230
InAppBrowserSettings_ (
0 commit comments