Skip to content

Commit

Permalink
Bell icon changed as requested (#176)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
M4dhav and guyluz11 authored Aug 1, 2024
1 parent 2f2cbef commit ee22836
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/presentation/atoms/toggle_switch_atom.dart
Original file line number Diff line number Diff line change
@@ -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({
Expand Down Expand Up @@ -69,13 +70,13 @@ class _ToggleSwitchAtomState extends State<ToggleSwitchAtom> {
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)
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/organisms/permissions_organism.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class _PermissionsOrganismState extends State<PermissionsOrganism> {
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();
Expand Down

0 comments on commit ee22836

Please sign in to comment.