From de6c18a42d91f30cd5bb518329f6f953eedbcdd1 Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 4 Dec 2023 11:28:19 -0700 Subject: [PATCH] Add print statement for web users directing them to file issues on github --- lib/logic/app_logic.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/logic/app_logic.dart b/lib/logic/app_logic.dart index c2bf1d66..794b4936 100644 --- a/lib/logic/app_logic.dart +++ b/lib/logic/app_logic.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:ui'; import 'package:desktop_window/desktop_window.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter_displaymode/flutter_displaymode.dart'; import 'package:wonders/common_libs.dart'; import 'package:wonders/logic/common/platform_info.dart'; @@ -38,6 +39,13 @@ class AppLogic { await DesktopWindow.setMinWindowSize($styles.sizes.minAppSize); } + if (kIsWeb) { + // SB: This is intentionally not a debugPrint, as it's a message for users who open the console on web. + print( + 'Thanks for checking out Wonderous on the web!\nIf you encounter any issues please report them at https://github.com/gskinnerTeam/flutter-wonderous-app/issues.', + ); + } + // Load any bitmaps the views might need await AppBitmaps.init();