File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class MyApp extends StatelessWidget {
19
19
}
20
20
21
21
class MyHomePage extends StatefulWidget {
22
- MyHomePage ({Key key, this .title}) : super (key: key);
22
+ MyHomePage ({Key ? key, required this .title}) : super (key: key);
23
23
24
24
final String title;
25
25
@@ -157,13 +157,13 @@ class _MyHomePageState extends State<MyHomePage> {
157
157
},
158
158
networkSourceMatcher (domains: ["mydomain.com" ]): networkImageRender (
159
159
headers: {"Custom-Header" : "some-value" },
160
- altWidget: (alt) => Text (alt),
160
+ altWidget: (alt) => Text (alt! ),
161
161
loadingWidget: () => Text ("Loading..." ),
162
162
),
163
163
// On relative paths starting with /wiki, prefix with a base url
164
- (attr, _) => attr["src" ] != null && attr["src" ].startsWith ("/wiki" ):
164
+ (attr, _) => attr["src" ] != null && attr["src" ]! .startsWith ("/wiki" ):
165
165
networkImageRender (
166
- mapUrl: (url) => "https://upload.wikimedia.org" + url),
166
+ mapUrl: (url) => "https://upload.wikimedia.org" + url! ),
167
167
// Custom placeholder image for broken links
168
168
networkSourceMatcher (): networkImageRender (altWidget: (_) => FlutterLogo ()),
169
169
},
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: flutter_html example app.
4
4
version : 1.0.0+1
5
5
6
6
environment :
7
- sdk : " >=2.1.0 <3.0.0"
7
+ sdk : ' >=2.12.0-259.12.beta <3.0.0'
8
8
9
9
dependencies :
10
10
flutter_html :
You can’t perform that action at this time.
0 commit comments