@@ -264,10 +264,9 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
264264 case WebViewType .webpage:
265265 child = buildWebpageWebView (context, props as WebPageWebViewProperties );
266266 case WebViewType .googleMaps:
267- child = buildGoogleMapsWebView (
268- context, props as GoogleMapsWebViewProperties );
267+ child = buildWebView (props as GoogleMapsWebViewProperties );
269268 case WebViewType .twitter:
270- child = buildTwitterWebView (context, props as TwitterWebViewProperties );
269+ child = buildWebView ( props as TwitterWebViewProperties );
271270 }
272271
273272 return child;
@@ -304,17 +303,6 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
304303 return content;
305304 }
306305
307- Widget buildGoogleMapsWebView (
308- BuildContext context, GoogleMapsWebViewProperties properties) {
309- if (! isPlatformSupportedForWebView || widget.settings.isPreview) {
310- return const WebViewPreviewWidget (
311- icon: Icon (Icons .map_outlined),
312- );
313- }
314-
315- return buildWebView (properties);
316- }
317-
318306 String buildTwitterURL (
319307 TwitterWebViewProperties properties, ScopedValues scopedValues) {
320308 final String ? originalSrc = properties.src;
@@ -326,18 +314,6 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
326314 return _buildHtmlContent (updatedSrc);
327315 }
328316
329- Widget buildTwitterWebView (
330- BuildContext context, TwitterWebViewProperties properties) {
331- if (! isPlatformSupportedForWebView || widget.settings.isPreview) {
332- return const WebViewPreviewWidget (
333- icon: ImageIcon (
334- NetworkImage ('https://img.icons8.com/color/344/twitter--v2.png' )),
335- );
336- }
337-
338- return buildWebView (properties);
339- }
340-
341317 Widget buildWebView (WebViewProperties properties) {
342318 return WebViewWidget (
343319 key: ValueKey (properties),
0 commit comments