Skip to content

Commit

Permalink
Remove unnecessary containers color
Browse files Browse the repository at this point in the history
  • Loading branch information
duddu committed Oct 22, 2023
1 parent e9fed71 commit 3b63faf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.0
1.8.1
4 changes: 2 additions & 2 deletions lib/widgets/centered_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ class CenteredContainer extends StatelessWidget {
const CenteredContainer({
super.key,
required this.child,
required this.decoration,
this.decoration,
this.padding,
});

final Widget child;
final BoxDecoration decoration;
final BoxDecoration? decoration;
final EdgeInsetsGeometry? padding;

@override
Expand Down
3 changes: 0 additions & 3 deletions lib/widgets/glossary_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class GlossaryPage extends StatelessWidget {
listViewChildren: <CenteredContainer>[
CenteredContainer(
padding: const EdgeInsets.only(top: 4),
decoration: const BoxDecoration(
color: Colors.white,
),
child: Column(children: <Row>[
const Row(children: <Header>[
Header(text: locale.variableLabelInoculation, paddingTop: 16)
Expand Down
3 changes: 0 additions & 3 deletions lib/widgets/help_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class HelpPage extends StatelessWidget {
listViewChildren: <CenteredContainer>[
CenteredContainer(
padding: const EdgeInsets.only(top: 20),
decoration: const BoxDecoration(
color: Colors.white,
),
child: Column(children: <Row>[
Row(children: <Expanded>[
Expanded(
Expand Down
10 changes: 3 additions & 7 deletions lib/widgets/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,9 @@ class HomePageListView extends StatelessWidget {
padding: const EdgeInsets.symmetric(vertical: 12),
child: ChangeNotifierProvider(
create: (context) => TemperatureUnitModel(),
child: const CalculatorForm())),
const CenteredContainer(
decoration: BoxDecoration(color: Colors.white),
child: IngredientsValues()),
const CenteredContainer(
decoration: BoxDecoration(color: Colors.white),
child: FermentationValues()),
child: const CalculatorForm()))),
const CenteredContainer(child: IngredientsValues()),
const CenteredContainer(child: FermentationValues()),
],
);
}
Expand Down
3 changes: 0 additions & 3 deletions lib/widgets/secondary_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class SecondaryPage extends StatelessWidget {
...listViewChildren,
const CenteredContainer(
padding: EdgeInsets.fromLTRB(0, 13, 0, 26),
decoration: BoxDecoration(
color: Colors.white,
),
child: Column(children: <Row>[
Row(children: <BackToHomePageTextButton>[
BackToHomePageTextButton()
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.8.0';
const version = '1.8.1';
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.8.0';
const serviceWorkerVersion = '1.8.1';
</script>
<script defer src="flutter.js"></script>
</head>
Expand Down

0 comments on commit 3b63faf

Please sign in to comment.