Skip to content

Commit 525a21d

Browse files
committed
Raise example app minSdkVersion which is required at 19 for flutter_webview compatibility
1 parent 6cc6c37 commit 525a21d

File tree

3 files changed

+2
-212
lines changed

3 files changed

+2
-212
lines changed

example/android/app/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ android {
3232
}
3333

3434
defaultConfig {
35-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3635
applicationId "com.example.example"
37-
minSdkVersion 16
36+
minSdkVersion 19
3837
targetSdkVersion 28
3938
versionCode flutterVersionCode.toInteger()
4039
versionName flutterVersionName
@@ -43,8 +42,6 @@ android {
4342

4443
buildTypes {
4544
release {
46-
// TODO: Add your own signing config for the release build.
47-
// Signing with the debug keys for now, so `flutter run --release` works.
4845
signingConfig signingConfigs.debug
4946
}
5047
}

example/lib/main.dart

Lines changed: 0 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -27,214 +27,7 @@ class MyHomePage extends StatefulWidget {
2727
}
2828

2929
const htmlData = r"""
30-
<p id='top'><a href='#bottom'>Scroll to bottom</a></p>
31-
<h1>Header 1</h1>
32-
<h2>Header 2</h2>
33-
<h3>Header 3</h3>
34-
<h4>Header 4</h4>
35-
<h5>Header 5</h5>
36-
<h6>Header 6</h6>
37-
<h3>Ruby Support:</h3>
38-
<p>
39-
<ruby>
40-
漢<rt>かん</rt>
41-
字<rt>じ</rt>
42-
</ruby>
43-
&nbsp;is Japanese Kanji.
44-
</p>
45-
<h3>Support for maxLines:</h3>
46-
<h5>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vestibulum sapien feugiat lorem tempor, id porta orci elementum. Fusce sed justo id arcu egestas congue. Fusce tincidunt lacus ipsum, in imperdiet felis ultricies eu. In ullamcorper risus felis, ac maximus dui bibendum vel. Integer ligula tortor, facilisis eu mauris ut, ultrices hendrerit ex. Donec scelerisque massa consequat, eleifend mauris eu, mollis dui. Donec placerat augue tortor, et tincidunt quam tempus non. Quisque sagittis enim nisi, eu condimentum lacus egestas ac. Nam facilisis luctus ipsum, at aliquam urna fermentum a. Quisque tortor dui, faucibus in ante eget, pellentesque mattis nibh. In augue dolor, euismod vitae eleifend nec, tempus vel urna. Donec vitae augue accumsan ligula fringilla ultrices et vel ex.</h5>
47-
<h3>Support for <code>sub</code>/<code>sup</code></h3>
48-
Solve for <var>x<sub>n</sub></var>: log<sub>2</sub>(<var>x</var><sup>2</sup>+<var>n</var>) = 9<sup>3</sup>
49-
<p>One of the most <span>common</span> equations in all of physics is <br /><var>E</var>=<var>m</var><var>c</var><sup>2</sup>.</p>
50-
<h3>Inline Styles:</h3>
51-
<p>The should be <span style='color: blue;'>BLUE style='color: blue;'</span></p>
52-
<p>The should be <span style='color: red;'>RED style='color: red;'</span></p>
53-
<p>The should be <span style='color: rgba(0, 0, 0, 0.10);'>BLACK with 10% alpha style='color: rgba(0, 0, 0, 0.10);</span></p>
54-
<p>The should be <span style='color: rgb(0, 97, 0);'>GREEN style='color: rgb(0, 97, 0);</span></p>
55-
<p>The should be <span style='background-color: red; color: rgb(0, 97, 0);'>GREEN style='color: rgb(0, 97, 0);</span></p>
56-
<p style="text-align: center;"><span style="color: rgba(0, 0, 0, 0.95);">blasdafjklasdlkjfkl</span></p>
57-
<p style="text-align: right;"><span style="color: rgba(0, 0, 0, 0.95);">blasdafjklasdlkjfkl</span></p>
58-
<p style="text-align: justify;"><span style="color: rgba(0, 0, 0, 0.95);">blasdafjklasdlkjfkl</span></p>
59-
<p style="text-align: center;"><span style="color: rgba(0, 0, 0, 0.95);">blasdafjklasdlkjfkl</span></p>
60-
<h3>Table support (with custom styling!):</h3>
61-
<p>
62-
<q>Famous quote...</q>
63-
</p>
64-
<table>
65-
<colgroup>
66-
<col width="50%" />
67-
<col span="2" width="25%" />
68-
</colgroup>
69-
<thead>
70-
<tr><th>One</th><th>Two</th><th>Three</th></tr>
71-
</thead>
72-
<tbody>
73-
<tr>
74-
<td rowspan='2'>Rowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan</td><td>Data</td><td>Data</td>
75-
</tr>
76-
<tr>
77-
<td colspan="2"><img alt='Google' src='https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png' /></td>
78-
</tr>
79-
</tbody>
80-
<tfoot>
81-
<tr><td>fData</td><td>fData</td><td>fData</td></tr>
82-
</tfoot>
83-
</table>
84-
<h3>Custom Element Support (inline: <bird></bird> and as block):</h3>
85-
<flutter></flutter>
86-
<flutter horizontal></flutter>
87-
<h3 id='middle'>SVG support:</h3>
88-
<svg id='svg1' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'>
89-
<circle r="32" cx="35" cy="65" fill="#F00" opacity="0.5"/>
90-
<circle r="32" cx="65" cy="65" fill="#0F0" opacity="0.5"/>
91-
<circle r="32" cx="50" cy="35" fill="#00F" opacity="0.5"/>
92-
</svg>
93-
<h3>List support:</h3>
94-
<ol>
95-
<li>This</li>
96-
<li><p>is</p></li>
97-
<li>an</li>
98-
<li>
99-
ordered
100-
<ul>
101-
<li>With<br /><br />...</li>
102-
<li>a</li>
103-
<li>nested</li>
104-
<li>unordered
105-
<ol>
106-
<li>With a nested</li>
107-
<li>ordered list.</li>
108-
</ol>
109-
</li>
110-
<li>list</li>
111-
</ul>
112-
</li>
113-
<li>list! Lorem ipsum dolor sit amet.</li>
114-
<li><h2>Header 2</h2></li>
115-
<h2><li>Header 2</li></h2>
116-
</ol>
117-
<h3>Link support:</h3>
118-
<p>
119-
Linking to <a href='https://github.com'>websites</a> has never been easier.
120-
</p>
121-
<h3>Image support:</h3>
122-
<h3>Network png</h3>
12330
<img alt='Google' src='https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png' />
124-
<h3>Network svg</h3>
125-
<img src='https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/android.svg' />
126-
<h3>Local asset png</h3>
127-
<img src='asset:assets/html5.png' width='100' />
128-
<h3>Local asset svg</h3>
129-
<img src='asset:assets/mac.svg' width='100' />
130-
<h3>Data uri (with base64 support)</h3>
131-
<img alt='Red dot (png)' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==' />
132-
<img alt='Green dot (base64 svg)' src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjE1IiBjeT0iMTAiIHI9IjEwIiBmaWxsPSJncmVlbiIvPgo8L3N2Zz4=' />
133-
<img alt='Green dot (plain svg)' src='data:image/svg+xml,%3C?xml version="1.0" encoding="UTF-8"?%3E%3Csvg viewBox="0 0 30 20" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="15" cy="10" r="10" fill="yellow"/%3E%3C/svg%3E' />
134-
<h3>Custom source matcher (relative paths)</h3>
135-
<img src='/wikipedia/commons/thumb/e/ef/Octicons-logo-github.svg/200px-Octicons-logo-github.svg.png' />
136-
<h3>Custom image render (flutter.dev)</h3>
137-
<img src='https://flutter.dev/images/flutter-mono-81x100.png' />
138-
<h3>No image source</h3>
139-
<img alt='No source' />
140-
<img alt='Empty source' src='' />
141-
<h3>Broken network image</h3>
142-
<img alt='Broken image' src='https://www.notgoogle.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png' />
143-
<h3>MathML Support:</h3>
144-
<math>
145-
<mrow>
146-
<mi>x</mi>
147-
<mo>=</mo>
148-
<mfrac>
149-
<mrow>
150-
<mrow>
151-
<mo>-</mo>
152-
<mi>b</mi>
153-
</mrow>
154-
<mo>&PlusMinus;</mo>
155-
<msqrt>
156-
<mrow>
157-
<msup>
158-
<mi>b</mi>
159-
<mn>2</mn>
160-
</msup>
161-
<mo>-</mo>
162-
<mrow>
163-
<mn>4</mn>
164-
<mo>&InvisibleTimes;</mo>
165-
<mi>a</mi>
166-
<mo>&InvisibleTimes;</mo>
167-
<mi>c</mi>
168-
</mrow>
169-
</mrow>
170-
</msqrt>
171-
</mrow>
172-
<mrow>
173-
<mn>2</mn>
174-
<mo>&InvisibleTimes;</mo>
175-
<mi>a</mi>
176-
</mrow>
177-
</mfrac>
178-
</mrow>
179-
</math>
180-
<math>
181-
<munderover >
182-
<mo> &int; </mo>
183-
<mn> 0 </mn>
184-
<mi> 5 </mi>
185-
</munderover>
186-
<msup>
187-
<mi>x</mi>
188-
<mn>2</mn>
189-
</msup>
190-
<mo>&sdot;</mo>
191-
<mi>&dd;</mi><mi>x</mi>
192-
<mo>=</mo>
193-
<mo>[</mo>
194-
<mfrac>
195-
<mn>1</mn>
196-
<mi>3</mi>
197-
</mfrac>
198-
<msup>
199-
<mi>x</mi>
200-
<mn>3</mn>
201-
</msup>
202-
<msubsup>
203-
<mo>]</mo>
204-
<mn>0</mn>
205-
<mn>5</mn>
206-
</msubsup>
207-
<mo>=</mo>
208-
<mfrac>
209-
<mn>125</mn>
210-
<mi>3</mi>
211-
</mfrac>
212-
<mo>-</mo>
213-
<mn>0</mn>
214-
<mo>=</mo>
215-
<mfrac>
216-
<mn>125</mn>
217-
<mi>3</mi>
218-
</mfrac>
219-
</math>
220-
<math>
221-
<msup>
222-
<mo>sin</mo>
223-
<mn>2</mn>
224-
</msup>
225-
<mo>&theta;</mo>
226-
<mo>+</mo>
227-
<msup>
228-
<mo>cos</mo>
229-
<mn>2</mn>
230-
</msup>
231-
<mo>&theta;</mo>
232-
<mo>=</mo>
233-
<mn>1</mn>
234-
</math>
235-
<h3>Tex Support with the custom tex tag:</h3>
236-
<tex>i\hbar\frac{\partial}{\partial t}\Psi(\vec x,t) = -\frac{\hbar}{2m}\nabla^2\Psi(\vec x,t)+ V(\vec x)\Psi(\vec x,t)</tex>
237-
<p id='bottom'><a href='#top'>Scroll to top</a></p>
23831
""";
23932

24033
class _MyHomePageState extends State<MyHomePage> {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_html
22
description: A Flutter widget rendering static HTML and CSS as Flutter widgets.
3-
version: 2.0.0-nullsafety.1
3+
version: 2.0.0
44
homepage: https://github.com/Sub6Resources/flutter_html
55

66
environment:

0 commit comments

Comments
 (0)