Skip to content

Commit

Permalink
Use const global for DEVELOPMENT_STAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-Sander committed Dec 9, 2023
1 parent e976176 commit 7ad1ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/lib/main/sharezone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class Sharezone extends StatefulWidget {
State createState() => _SharezoneState();
}

const developmentStage = String.fromEnvironment('DEVELOPMENT_STAGE');

class _SharezoneState extends State<Sharezone> with WidgetsBindingObserver {
late SignUpBloc signUpBloc;

Expand Down Expand Up @@ -112,8 +114,7 @@ class _SharezoneState extends State<Sharezone> with WidgetsBindingObserver {
child: _ThemeSettingsProvider(
blocDependencies: widget.blocDependencies,
child: AlphaVersionBanner(
enabled: const String.fromEnvironment('DEVELOPMENT_STAGE') ==
'ALPHA',
enabled: developmentStage == 'ALPHA',
child: Stack(
children: [
MultiProvider(
Expand Down

0 comments on commit 7ad1ff5

Please sign in to comment.