Skip to content

Commit

Permalink
Add back controllers dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
duddu committed Oct 22, 2023
1 parent d0743a2 commit 6687a66
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.4
1.9.5
11 changes: 10 additions & 1 deletion lib/widgets/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,20 @@ class _CalculatorFormState extends State<CalculatorForm> {
}

@override
initState() {
void initState() {
super.initState();
_loadInitialValues();
}

@override
void dispose() {
temperatureController.dispose();
totalWeightController.dispose();
hydrationController.dispose();
saltController.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) {
return Column(mainAxisSize: MainAxisSize.min, children: <Row>[
Expand Down
2 changes: 1 addition & 1 deletion web/download-release-asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Download Sourdoc release asset</title>
<script>
const version = '1.9.4';
const version = '1.9.5';
const build = new URLSearchParams(window.location.search).get('build');
window.location.href = 'https://github.com/duddu/sourdoc/releases/download/v' + version + '/' + build + '-sourdoc-v' + version + '.tgz';
</script>
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZS2J7KXZ0Q"></script>
<script defer src="gtm-gtag.js"></script>
<script>
const serviceWorkerVersion = '1.9.4';
const serviceWorkerVersion = '1.9.5';
</script>
<script defer src="flutter.js"></script>
</head>
Expand Down

0 comments on commit 6687a66

Please sign in to comment.