File tree 1 file changed +26
-20
lines changed
1 file changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,38 @@ import 'package:flutter_weather/preferences/language.dart';
4
4
import 'package:webview_flutter/webview_flutter.dart' ;
5
5
6
6
class ChangelogScreen extends StatelessWidget {
7
+ final controller = WebViewController ()
8
+ ..setJavaScriptMode (JavaScriptMode .unrestricted)
9
+ ..loadRequest (
10
+ Uri .parse (
11
+ 'https://github.com/SpicyChair/pluvia_weather_flutter/releases' ),
12
+ );
13
+
7
14
@override
8
15
Widget build (BuildContext context) {
9
16
return Scaffold (
10
- appBar: AppBar (
11
- title: Text (
12
- Language .getTranslation ("weatherRadar" ),
13
- style: TextStyle (
14
- color: Theme .of (context).primaryColorDark,
17
+ appBar: AppBar (
18
+ title: Text (
19
+ Language .getTranslation ("changelog" ),
20
+ style: TextStyle (
21
+ color: Theme .of (context).primaryColorDark,
22
+ ),
15
23
),
16
- ),
17
- backgroundColor: Theme .of (context).backgroundColor,
18
- centerTitle: true ,
19
- leading: TextButton (
20
- child: Icon (
21
- Icons .arrow_back,
22
- color: Theme .of (context).primaryColorDark,
24
+ backgroundColor: Theme .of (context).backgroundColor,
25
+ centerTitle: true ,
26
+ leading: TextButton (
27
+ child: Icon (
28
+ Icons .arrow_back,
29
+ color: Theme .of (context).primaryColorDark,
30
+ ),
31
+ onPressed: () {
32
+ Navigator .pop (context);
33
+ },
23
34
),
24
- onPressed: () {
25
- Navigator .pop (context);
26
- },
27
35
),
28
- ),
29
- body: WebView (
30
- initialUrl:
31
- 'https://github.com/SpicyChair/pluvia_weather_flutter/releases' ),
32
- );
36
+ body: WebViewWidget (
37
+ controller: controller,
38
+ ));
33
39
}
34
40
}
35
41
You can’t perform that action at this time.
0 commit comments