Skip to content

Commit 1b00f82

Browse files
committed
Fix title text on changelog screen
1 parent b7f4d9d commit 1b00f82

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

lib/screens/changelog_screen.dart

+26-20
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,38 @@ import 'package:flutter_weather/preferences/language.dart';
44
import 'package:webview_flutter/webview_flutter.dart';
55

66
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+
714
@override
815
Widget build(BuildContext context) {
916
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+
),
1523
),
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+
},
2334
),
24-
onPressed: () {
25-
Navigator.pop(context);
26-
},
2735
),
28-
),
29-
body: WebView(
30-
initialUrl:
31-
'https://github.com/SpicyChair/pluvia_weather_flutter/releases'),
32-
);
36+
body: WebViewWidget(
37+
controller: controller,
38+
));
3339
}
3440
}
3541

0 commit comments

Comments
 (0)