From ee22836b467a1f2792ab6cf25a806bf985733ae0 Mon Sep 17 00:00:00 2001 From: Madhav Gupta <114633095+M4dhav@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:30:18 +0530 Subject: [PATCH] Bell icon changed as requested (#176) * feat: Changed bell icon to crossed bell on Off Postion and switched from Font Awesome Icons to Material3 * feat: Requested changes * refactor: requested changes --------- Co-authored-by: Guy Luz --- lib/presentation/atoms/toggle_switch_atom.dart | 5 +++-- lib/presentation/organisms/permissions_organism.dart | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/presentation/atoms/toggle_switch_atom.dart b/lib/presentation/atoms/toggle_switch_atom.dart index 855aaf2..587e16d 100644 --- a/lib/presentation/atoms/toggle_switch_atom.dart +++ b/lib/presentation/atoms/toggle_switch_atom.dart @@ -1,5 +1,6 @@ import 'package:animated_toggle_switch/animated_toggle_switch.dart'; import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; class ToggleSwitchAtom extends StatefulWidget { const ToggleSwitchAtom({ @@ -69,13 +70,13 @@ class _ToggleSwitchAtomState extends State { values: const [false, true], onChanged: widget.disable ? null : onChange, iconList: [ - Icon( + FaIcon( widget.offIcon, color: widget.disable ? colorScheme.surfaceContainerHighest.withOpacity(0.38) : colorScheme.surfaceContainerHighest, ), - Icon( + FaIcon( widget.onIcon, color: widget.disable ? colorScheme.onSurface.withOpacity(0.38) diff --git a/lib/presentation/organisms/permissions_organism.dart b/lib/presentation/organisms/permissions_organism.dart index f939e16..2e4e71d 100644 --- a/lib/presentation/organisms/permissions_organism.dart +++ b/lib/presentation/organisms/permissions_organism.dart @@ -50,8 +50,8 @@ class _PermissionsOrganismState extends State { text: 'Notification Permission', description: 'Get notify about timer status when the app is in the background', - offIcon: FontAwesomeIcons.bell, - onIcon: FontAwesomeIcons.solidBell, + offIcon: Icons.notifications_off_outlined, + onIcon: Icons.notifications_outlined, onChange: (value) async { await NotificationsController.instance.generalPermission(); await NotificationsController.instance.preciseAlarmPermission();