Skip to content

Commit

Permalink
Enable Preferences screen for the release build (#163)
Browse files Browse the repository at this point in the history
* Enable Preferences screen for the release build

* Delete an unused import
  • Loading branch information
Kohei Asai authored Aug 3, 2020
1 parent 66517c2 commit 749f0ce
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/src/pages/simulation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "dart:math" as math;
import "package:aqua/src/common_widgets/analytics.dart";
import "package:aqua/src/common_widgets/aqua_appear_animation.dart";
import "package:aqua/src/common_widgets/aqua_button.dart";
import "package:aqua/src/common_widgets/aqua_environment.dart";
import "package:aqua/src/common_widgets/aqua_icons.dart";
import "package:aqua/src/common_widgets/aqua_preferences.dart";
import "package:aqua/src/common_widgets/aqua_scaffold.dart";
Expand Down Expand Up @@ -72,12 +71,11 @@ class _SimulationPageState extends State<SimulationPage> {
scrollController: _scrollController,
title: "Calculation",
actions: [
if (AquaEnvironment.of(context).isDebugBuild)
AquaButton(
variant: AquaButtonVariant.secondary,
icon: AquaIcons.settings,
onTap: () => Navigator.of(context).pushNamed("/preferences"),
),
AquaButton(
variant: AquaButtonVariant.secondary,
icon: AquaIcons.settings,
onTap: () => Navigator.of(context).pushNamed("/preferences"),
),
],
slivers: [
AnimatedBuilder(
Expand Down

0 comments on commit 749f0ce

Please sign in to comment.