public HtmlOldParser( float?width = null, OnLinkTap onLinkTap = null, bool renderNewlines = false, CustomRender customRender = null, float blockSpacing = 0.0f, string html = null, ImageErrorListener onImageError = null, TextStyle linkStyle = null, bool showImages = true ) { D.assert(width != null); this.width = width.Value; this.onLinkTap = onLinkTap; this.renderNewlines = renderNewlines; this.customRender = customRender; this.blockSpacing = blockSpacing; this.html = html; this.onImageError = onImageError; this.linkStyle = linkStyle; this.showImages = showImages; this.linkStyle = linkStyle ?? new TextStyle( decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent); }
public HtmlView( Key key = null, string data = null, EdgeInsets padding = null, Color backgroundColor = null, TextStyle defaultTextStyle = null, OnLinkTap onLinkTap = null, bool renderNewlines = false, CustomRender customRender = null, CustomEdgeInsets customEdgeInsets = null, CustomTextStyle customTextStyle = null, CustomTextAlign customTextAlign = null, float blockSpacing = 14.0f, bool useRichText = true, ImageErrorListener onImageError = null, TextStyle linkStyle = null, bool shrinkToFit = false, ImageProperties imageProperties = null, OnImageTap onImageTap = null, bool showImages = true ) : base(key: key) { D.assert(data != null); this.data = data; this.padding = padding; this.backgroundColor = backgroundColor; this.defaultTextStyle = defaultTextStyle; this.onLinkTap = onLinkTap; this.renderNewlines = renderNewlines; this.customRender = customRender; this.customEdgeInsets = customEdgeInsets; this.customTextStyle = customTextStyle ?? this._customTextStyle; this.customTextAlign = customTextAlign; this.blockSpacing = blockSpacing; this.useRichText = useRichText; this.onImageError = onImageError; this.linkStyle = linkStyle ?? new TextStyle( decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent); this.shrinkToFit = shrinkToFit; this.imageProperties = imageProperties; this.onImageTap = onImageTap; this.showImages = showImages; }