Skip to content

Commit

Permalink
💾 Feat: Add color to notification action and optimized plugin setting…
Browse files Browse the repository at this point in the history
…s page's color
  • Loading branch information
Dynesshely committed Mar 31, 2024
1 parent aa68719 commit 6f6af99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kitx_mobile/lib/services/notification_service.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:io';

import 'package:awesome_notifications/awesome_notifications.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:kitx_mobile/instances.dart';
Expand Down Expand Up @@ -86,6 +87,7 @@ class NotificationService {
actionType: ActionType.SilentAction,
autoDismissible: false,
isDangerousOption: true,
color: Colors.red,
),
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SettingsPageState extends State<SettingsPage> {
children: [
Obx(
() => Card(
color: widget.plugin.isEnabled.value ? Colors.indigo : Colors.blueGrey,
color: widget.plugin.isEnabled.value ? (context.isDarkMode ? Colors.indigo : Colors.cyan) : Colors.grey,
shadowColor: Colors.blueGrey,
child: Container(
margin: const EdgeInsets.fromLTRB(20, 10, 10, 10),
Expand Down

0 comments on commit 6f6af99

Please sign in to comment.