From 1a928b53b455c793a0a6a8bacf0fe547e2983010 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Wed, 26 Nov 2025 09:55:13 -0800 Subject: [PATCH] Rename isProduction to isRelease and update usage Replaces the isProduction constant with isRelease for clarity and updates its usage in the prepareApp function to ensure debugPrint is disabled only in release mode. --- {{cookiecutter.out_dir}}/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.out_dir}}/lib/main.dart b/{{cookiecutter.out_dir}}/lib/main.dart index c0782aa..2b04d2b 100644 --- a/{{cookiecutter.out_dir}}/lib/main.dart +++ b/{{cookiecutter.out_dir}}/lib/main.dart @@ -37,7 +37,7 @@ show_startup_screen: {{ show_startup_screen }} startup_screen_message: {{ startup_screen_message }} */ -const bool isProduction = bool.fromEnvironment('dart.vm.product'); +const bool isRelease = bool.fromEnvironment('dart.vm.product'); const assetPath = "app/app.zip"; const pythonModuleName = "{{ cookiecutter.python_module_name }}"; @@ -120,7 +120,7 @@ void main(List args) async { } Future prepareApp() async { - if (!_args.contains("--debug")) { + if (!_args.contains("--debug") && isRelease) { // ignore: avoid_returning_null_for_void debugPrint = (String? message, {int? wrapWidth}) => null; } else {