From ac0fc23de1e10377d8178fc6082e72b8658dfb4c Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:52:28 +0300 Subject: [PATCH] Dart fixes Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> --- lib/app_info.dart | 2 -- lib/apps_list_method_channel.dart | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/app_info.dart b/lib/app_info.dart index 303b47f..eaceb68 100644 --- a/lib/app_info.dart +++ b/lib/app_info.dart @@ -1,7 +1,5 @@ import 'dart:typed_data'; -import 'package:flutter/material.dart'; - // enum AppProfile { // Work, // Personal diff --git a/lib/apps_list_method_channel.dart b/lib/apps_list_method_channel.dart index 09ca939..31f8116 100644 --- a/lib/apps_list_method_channel.dart +++ b/lib/apps_list_method_channel.dart @@ -19,7 +19,9 @@ class MethodChannelAppsList extends AppsListPlatform { 'serialNumber': serialNumber, }); } on PlatformException { - print('Failed to launch app.'); + if (kDebugMode) { + print('Failed to launch app.'); + } } }