File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
packages/flutter_html_iframe/lib Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CustomRender iframeRender({NavigationDelegate? navigationDelegate}) =>
12
12
double .tryParse (context.tree.element? .attributes['width' ] ?? "" );
13
13
final givenHeight =
14
14
double .tryParse (context.tree.element? .attributes['height' ] ?? "" );
15
- return Container (
15
+ return SizedBox (
16
16
width: givenWidth ?? (givenHeight ?? 150 ) * 2 ,
17
17
height: givenHeight ?? (givenWidth ?? 300 ) / 2 ,
18
18
child: CssBoxWidget (
Original file line number Diff line number Diff line change @@ -4,7 +4,5 @@ import 'package:webview_flutter/webview_flutter.dart';
4
4
5
5
CustomRender iframeRender ({NavigationDelegate ? navigationDelegate}) =>
6
6
CustomRender .widget (widget: (context, buildChildren) {
7
- return Container (
8
- child: Text ("Iframes are currently not supported in this environment" ),
9
- );
7
+ return const Text ("Iframes are currently not supported in this environment" );
10
8
});
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ CustomRender iframeRender({NavigationDelegate? navigationDelegate}) =>
23
23
final String createdViewId = getRandString (10 );
24
24
ui.platformViewRegistry
25
25
.registerViewFactory (createdViewId, (int viewId) => iframe);
26
- return Container (
26
+ return SizedBox (
27
27
width:
28
28
double .tryParse (context.tree.element? .attributes['width' ] ?? "" ) ??
29
29
(double .tryParse (
You can’t perform that action at this time.
0 commit comments