feat: Add bellstyle

This commit is contained in:
Jacques 2024-04-04 16:25:17 +02:00
parent 2ad7ab5028
commit b1874e28f8
9 changed files with 17 additions and 14 deletions

View file

@ -51,7 +51,7 @@
},
{
"name": "flutter_animated_widgets",
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-0eb6ea4c2e64b757b468e23ee2055e27e8302397/",
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-65d8e31bfba38fca8973544312b430e131853a1a/",
"packageUri": "lib/",
"languageVersion": "2.18"
},
@ -182,7 +182,7 @@
"languageVersion": "3.3"
}
],
"generated": "2024-04-04T07:46:25.501696Z",
"generated": "2024-04-04T14:21:58.133947Z",
"generator": "pub",
"generatorVersion": "3.3.3"
}

View file

@ -1,7 +1,7 @@
flutter_animated_widgets
2.18
file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-0eb6ea4c2e64b757b468e23ee2055e27e8302397/
file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-0eb6ea4c2e64b757b468e23ee2055e27e8302397/lib/
file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-65d8e31bfba38fca8973544312b430e131853a1a/
file:///Users/jacquesdoeleman/.pub-cache/git/flutter_animated_widgets-65d8e31bfba38fca8973544312b430e131853a1a/lib/
async
2.18
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/async-2.11.0/

View file

@ -66,11 +66,11 @@ packages:
dependency: transitive
description:
path: "."
ref: "0.0.1"
resolved-ref: "0eb6ea4c2e64b757b468e23ee2055e27e8302397"
ref: "0.1.0"
resolved-ref: "65d8e31bfba38fca8973544312b430e131853a1a"
url: "https://github.com/Iconica-Development/flutter_animated_widgets.git"
source: git
version: "0.0.1"
version: "0.1.0"
flutter_lints:
dependency: "direct dev"
description:

View file

@ -8,7 +8,7 @@ export 'package:flutter_notification_center/src/services/notification_service.da
export 'package:flutter_notification_center/src/services/local_notification_service.dart';
export 'package:flutter_notification_center/src/notification_center.dart';
export 'package:flutter_notification_center/src/models/notification.dart';
export 'package:flutter_notification_center/src/models/notification_theme.dart';
export 'package:flutter_notification_center/src/models/notification_style.dart';
export 'package:flutter_notification_center/src/models/notification_config.dart';
export 'package:flutter_notification_center/src/notification_bell.dart';
export 'package:flutter_notification_center/src/notification_bell_story.dart';

View file

@ -1,6 +1,7 @@
// list_tile_theme.dart
import 'package:flutter/material.dart';
import 'package:flutter_animated_widgets/flutter_animated_widgets.dart';
// Define a theme class for customizing ListTile appearance
class NotificationStyle {
@ -16,6 +17,7 @@ class NotificationStyle {
final BoxDecoration? tileDecoration;
final Widget Function()? emptyNotificationsBuilder;
final TextStyle? appTitleTextStyle;
final AnimatedNotificationBellStyle bellStyle;
const NotificationStyle({
this.titleTextStyle,
@ -30,5 +32,6 @@ class NotificationStyle {
this.tileDecoration,
this.emptyNotificationsBuilder,
this.appTitleTextStyle,
this.bellStyle = const AnimatedNotificationBellStyle(),
});
}

View file

@ -39,7 +39,7 @@ class _NotificationBellState extends State<NotificationBell> {
icon: AnimatedNotificationBell(
duration: const Duration(seconds: 1),
notificationCount: notificationAmount,
notificationIconSize: 45,
style: widget.config.style.bellStyle,
),
);
}

View file

@ -84,7 +84,7 @@ class LocalNotificationService implements NotificationService {
@override
Future deleteScheduledNotification(NotificationModel notification) async {
listOfPlannedNotifications =
listOfPlannedNotifications.where((n) => n != notification).toList();
listOfPlannedNotifications.remove((n) => n != notification).toList();
print('Notification deleted: $notification');
}

View file

@ -66,11 +66,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "0.0.1"
resolved-ref: "0eb6ea4c2e64b757b468e23ee2055e27e8302397"
ref: "0.1.0"
resolved-ref: "65d8e31bfba38fca8973544312b430e131853a1a"
url: "https://github.com/Iconica-Development/flutter_animated_widgets.git"
source: git
version: "0.0.1"
version: "0.1.0"
flutter_lints:
dependency: "direct dev"
description:

View file

@ -35,7 +35,7 @@ dependencies:
flutter_animated_widgets:
git:
url: https://github.com/Iconica-Development/flutter_animated_widgets.git
ref: 0.0.1
ref: 0.1.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.