From 866658b13434d0da18713613d62d4be9cb9534c1 Mon Sep 17 00:00:00 2001 From: hieubt Date: Mon, 6 May 2024 22:56:51 +0700 Subject: [PATCH] TW-1696: Change about dialog icon --- assets/logo.svg | 58 ++++++++++++++++++++++------------- lib/utils/platform_infos.dart | 7 +++-- 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/assets/logo.svg b/assets/logo.svg index 4facc8389d..869850ef06 100644 --- a/assets/logo.svg +++ b/assets/logo.svg @@ -1,25 +1,41 @@ - - + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - diff --git a/lib/utils/platform_infos.dart b/lib/utils/platform_infos.dart index d6ee76d22f..39c0e4ab61 100644 --- a/lib/utils/platform_infos.dart +++ b/lib/utils/platform_infos.dart @@ -4,6 +4,7 @@ import 'package:fluffychat/widgets/twake_app.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/l10n.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import 'package:go_router/go_router.dart'; import 'package:matrix/matrix.dart'; import 'package:package_info_plus/package_info_plus.dart'; @@ -89,11 +90,11 @@ abstract class PlatformInfos { child: const Text('Logs'), ), ], - applicationIcon: Image.asset( - 'assets/logo.png', + applicationIcon: SvgPicture.asset( + 'assets/logo.svg', width: 64, height: 64, - filterQuality: FilterQuality.medium, + fit: BoxFit.fill, ), applicationName: AppConfig.applicationName, );