mirror of
https://github.com/Iconica-Development/flutter_notification_center.git
synced 2025-05-19 00:53:44 +02:00
Merge pull request #7 from Iconica-Development/bugfix/animationcontroller
fix: fix animationcontroller
This commit is contained in:
commit
8aa34cfa41
8 changed files with 29 additions and 16 deletions
|
@ -1,4 +1,9 @@
|
||||||
## [1.3.0] - 30 April 2024
|
## [1.3.1] - 30 April 2024
|
||||||
|
|
||||||
|
* Fix Animationcontroller not disposing correctly.
|
||||||
|
* Updated flutter_animated_widgets to 0.1.1
|
||||||
|
|
||||||
|
## [1.3.0] - 23 April 2024
|
||||||
|
|
||||||
* Fix issue with pubspec in flutter_notification_center_firebase
|
* Fix issue with pubspec in flutter_notification_center_firebase
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,10 @@ dependencies:
|
||||||
firebase_storage: ^11.0.14
|
firebase_storage: ^11.0.14
|
||||||
|
|
||||||
flutter_notification_center:
|
flutter_notification_center:
|
||||||
path: ../
|
git:
|
||||||
|
url: https://github.com/Iconica-Development/flutter_notification_center
|
||||||
|
ref: 1.3.0
|
||||||
|
path: packages/flutter_notification_center
|
||||||
flutter_notification_center_firebase:
|
flutter_notification_center_firebase:
|
||||||
path: ../../flutter_notification_center_firebase
|
path: ../../flutter_notification_center_firebase
|
||||||
|
|
||||||
|
|
|
@ -14,3 +14,4 @@ export "src/notification_detail.dart";
|
||||||
export "src/notification_bell_story.dart";
|
export "src/notification_bell_story.dart";
|
||||||
export "src/notification_center.dart";
|
export "src/notification_center.dart";
|
||||||
export "src/services/notification_service.dart";
|
export "src/services/notification_service.dart";
|
||||||
|
export "package:flutter_animated_widgets/flutter_animated_widgets.dart";
|
||||||
|
|
|
@ -10,13 +10,15 @@ class NotificationConfig {
|
||||||
/// to use. The [style] parameter is optional and defines the style of the
|
/// to use. The [style] parameter is optional and defines the style of the
|
||||||
/// notification. The [translations] parameter is also optional and provides
|
/// notification. The [translations] parameter is also optional and provides
|
||||||
/// translations for notification messages.
|
/// translations for notification messages.
|
||||||
const NotificationConfig(
|
const NotificationConfig({
|
||||||
{required this.service,
|
required this.service,
|
||||||
this.seperateNotificationsWithDivider = true,
|
this.seperateNotificationsWithDivider = true,
|
||||||
this.translations = const NotificationTranslations(),
|
this.translations = const NotificationTranslations(),
|
||||||
this.notificationWidgetBuilder,
|
this.notificationWidgetBuilder,
|
||||||
this.showAsSnackBar = true,
|
this.showAsSnackBar = true,
|
||||||
this.enableNotificationPopups = true});
|
this.enableNotificationPopups = true,
|
||||||
|
this.bellStyle = const AnimatedNotificationBellStyle(),
|
||||||
|
});
|
||||||
|
|
||||||
/// The notification service to use for delivering notifications.
|
/// The notification service to use for delivering notifications.
|
||||||
final NotificationService service;
|
final NotificationService service;
|
||||||
|
@ -36,4 +38,7 @@ class NotificationConfig {
|
||||||
|
|
||||||
/// Whether to show notification popups.
|
/// Whether to show notification popups.
|
||||||
final bool enableNotificationPopups;
|
final bool enableNotificationPopups;
|
||||||
|
|
||||||
|
/// The style of the notification bell.
|
||||||
|
final AnimatedNotificationBellStyle bellStyle;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:flutter_animated_widgets/flutter_animated_widgets.dart";
|
|
||||||
import "../flutter_notification_center.dart";
|
import "../flutter_notification_center.dart";
|
||||||
|
|
||||||
/// A bell icon widget that displays the number of active notifications.
|
/// A bell icon widget that displays the number of active notifications.
|
||||||
|
@ -55,7 +54,7 @@ class _NotificationBellState extends State<NotificationBell> {
|
||||||
icon: AnimatedNotificationBell(
|
icon: AnimatedNotificationBell(
|
||||||
duration: const Duration(seconds: 1),
|
duration: const Duration(seconds: 1),
|
||||||
notificationCount: notificationAmount,
|
notificationCount: notificationAmount,
|
||||||
notificationIconSize: 45,
|
style: widget.config.bellStyle,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: flutter_notification_center
|
||||||
description: "A Flutter package for displaying notifications in a notification center."
|
description: "A Flutter package for displaying notifications in a notification center."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.3.0
|
version: 1.3.1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.3.2 <4.0.0'
|
sdk: '>=3.3.2 <4.0.0'
|
||||||
|
@ -15,7 +15,7 @@ dependencies:
|
||||||
flutter_animated_widgets:
|
flutter_animated_widgets:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Iconica-Development/flutter_animated_widgets
|
url: https://github.com/Iconica-Development/flutter_animated_widgets
|
||||||
ref: 0.0.1
|
ref: 0.1.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: flutter_notification_center_firebase
|
||||||
description: "A new Flutter project."
|
description: "A new Flutter project."
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
|
|
||||||
version: 1.3.0
|
version: 1.3.1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.18.0 <3.0.0"
|
sdk: ">=2.18.0 <3.0.0"
|
||||||
|
@ -24,7 +24,7 @@ dependencies:
|
||||||
flutter_notification_center:
|
flutter_notification_center:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Iconica-Development/flutter_notification_center
|
url: https://github.com/Iconica-Development/flutter_notification_center
|
||||||
ref: 1.3.0
|
ref: 1.3.1
|
||||||
path: packages/flutter_notification_center
|
path: packages/flutter_notification_center
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
|
@ -17,7 +17,7 @@ dependencies:
|
||||||
flutter_animated_widgets:
|
flutter_animated_widgets:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Iconica-Development/flutter_animated_widgets
|
url: https://github.com/Iconica-Development/flutter_animated_widgets
|
||||||
ref: 0.0.1
|
ref: 0.1.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
Loading…
Reference in a new issue