TF-2893 Apply the standard app grid icon

This commit is contained in:
dab246
2024-07-23 13:35:02 +07:00
committed by Dat H. Pham
parent 47b006f685
commit 8b7ac1f039
27 changed files with 173 additions and 77 deletions
+4 -1
View File
@@ -3,7 +3,10 @@ import 'package:core/utils/web_renderer/canvas_kit.dart';
import 'package:flutter/foundation.dart';
abstract class PlatformInfo {
static const bool isWeb = kIsWeb;
@visibleForTesting
static bool isTestingForWeb = false;
static bool get isWeb => kIsWeb || isTestingForWeb;
static bool get isLinux => !kIsWeb && defaultTargetPlatform == TargetPlatform.linux;
static bool get isWindows => !kIsWeb && defaultTargetPlatform == TargetPlatform.windows;
static bool get isMacOS => !kIsWeb && defaultTargetPlatform == TargetPlatform.macOS;