Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6c866f3
refactor: Add separate widget for inbox icon badge
anitta-keyvalue Apr 5, 2024
3f9ac87
feat: Add min bound for page size, group header props, tests
Ameera-Sherin Apr 9, 2024
377b93c
refactor: Remove commented code, add unique key, semantics to the wid…
anitta-keyvalue Apr 15, 2024
afc3940
feat: Add additional theme and style property support
anitta-keyvalue Apr 18, 2024
da3ac02
feat: Update arguments, function names , types, add error codes
anitta-keyvalue Apr 24, 2024
588f588
feat: Changes to support flutter 3.0.0 , remove totalElements, themin…
anitta-keyvalue Apr 29, 2024
544ad3c
refactor: Move errors from generics to errors file
anitta-keyvalue May 2, 2024
c93e712
feat: Add media support in list view item
anitta-keyvalue May 7, 2024
fb6294e
feat: Custom styles for delete icon, timer icon and clear all icon
anitta-keyvalue May 8, 2024
400edd3
Merge pull request #68 from KeyValueSoftwareSystems/dev
anitta-keyvalue May 9, 2024
2129301
fix: Add margin right for thumbnail
anitta-keyvalue May 14, 2024
83bdcf7
Merge pull request #77 from KeyValueSoftwareSystems/dev
anitta-keyvalue May 14, 2024
3cdad0a
fix: Fix for style and theme issues
anitta-keyvalue May 15, 2024
8a49b6a
docs: Add changelog for v1.1.0
anitta-keyvalue May 15, 2024
8dc018c
Dev -> Staging Release v1.1.0
anitta-keyvalue May 15, 2024
1efa93d
format: Format changelog
anitta-keyvalue May 15, 2024
690d833
Merge pull request #83 from KeyValueSoftwareSystems/dev
anitta-keyvalue May 15, 2024
2ba7b16
format: Format changelog
anitta-keyvalue May 15, 2024
68b621c
Merge pull request #85 from KeyValueSoftwareSystems/dev
anitta-keyvalue May 15, 2024
14cbd5f
fix: Update branch name
anitta-keyvalue May 15, 2024
787a8b7
Merge pull request #87 from KeyValueSoftwareSystems/dev
anitta-keyvalue May 15, 2024
c2fae66
docs: Update changelog
anitta-keyvalue May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test

on:
push:
branches: [ main, dev ]
branches: [ master, staging, dev ]
pull_request:
branches: [ main, dev ]
branches: [ master, staging, dev ]

jobs:
build:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

All notable changes to this project will be documented in this file.

## 1.1.0

### Added
- Added support for custom delete icon and a flag to toggle the visibility of the delete icon.
- Added functionality to display thumbnail URL previews for media content.
- Exposed avatar click property.
- Implemented specific error code mapping.
- Enhanced style and theme customizations.

## 1.0.0
This is the first public release of the package.

### Added
- Flutter UI kit for displaying and managing in-app notifications.





231 changes: 108 additions & 123 deletions README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ analyzer:
errors:
inference_failure_on_instance_creation: false
inference_failure_on_function_invocation: false
implicit_dynamic_list_literal: false
implicit_dynamic_map_literal: false
implicit_dynamic_method: false
implicit_dynamic_type: false

linter:
# The lint rules applied to this project can be customized in the
Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

pubspec.lock
36 changes: 36 additions & 0 deletions example/.packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file is deprecated. Tools should instead consume
# `.dart_tool/package_config.json`.
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2024-04-27 11:07:12.015241.
async:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/async-2.9.0/lib/
boolean_selector:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
clock:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/collection-1.16.0/lib/
cupertino_icons:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.5/lib/
dio:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/dio-5.4.1/lib/
fake_async:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.0/lib/
flutter:file:///Users/anitta/Desktop/Development/flutter/packages/flutter/lib/
flutter_lints:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/flutter_lints-2.0.1/lib/
flutter_test:file:///Users/anitta/Desktop/Development/flutter/packages/flutter_test/lib/
http_parser:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/http_parser-4.0.2/lib/
lints:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/lints-2.0.1/lib/
matcher:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
material_color_utilities:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.4/lib/
meta:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
network_logger:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/network_logger-1.0.4/lib/
path:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/path-1.8.1/lib/
sirenapp_flutter_inbox:../lib/
sky_engine:file:///Users/anitta/Desktop/Development/flutter/bin/cache/pkg/sky_engine/lib/
source_span:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.2/lib/
stack_trace:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
term_glyph:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
test_api:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.9/lib/
typed_data:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.2/lib/
vector_math:file:///Users/anitta/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.2/lib/
example:lib/
98 changes: 94 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'package:sirenapp_flutter_inbox/sirenapp_flutter_inbox.dart';
import './siren_icon.dart';
import './siren_window.dart';
import 'package:flutter/material.dart';

void main() {
Expand Down Expand Up @@ -50,13 +48,13 @@ class MyHomePageState extends State<MyHomePage> {
: [
IconButton(
onPressed: () {
Siren.deleteNotificationByDate(
Siren.deleteByDate(
startDate: DateTime.now().toUtc().toIso8601String());
},
icon: const Icon(Icons.delete_forever)),
IconButton(
onPressed: () {
Siren.markNotificationsAsReadByDate(
Siren.markAsReadByDate(
startDate: DateTime.now().toUtc().toIso8601String());
},
icon: const Icon(Icons.mark_email_read)),
Expand Down Expand Up @@ -86,3 +84,95 @@ class MyHomePageState extends State<MyHomePage> {
);
}
}

class SirenIconWidget extends StatefulWidget {
const SirenIconWidget({Key? key}) : super(key: key);

@override
State<SirenIconWidget> createState() => _SirenIconWidgetState();
}

class _SirenIconWidgetState extends State<SirenIconWidget> {
Icon? notificationIcon;
bool? hideBadge;

@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
const Spacer(),
Center(
child: SirenInboxIcon(
notificationIcon: notificationIcon,
darkMode: true,
hideBadge: hideBadge,
onError: (error) {
// print('This is the inApp error message ${error.message}');
},
),
),
Text(
'You are viewing ${notificationIcon == null ? 'default' : 'custom'} icon',
),
Text(
'You are ${hideBadge == false ? 'viewing' : 'not viewing'} notification count',
),
const Spacer(),
Padding(
padding: const EdgeInsets.all(16),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
ElevatedButton(
onPressed: () {
setState(() {
notificationIcon = notificationIcon == null
? const Icon(
Icons.notification_add,
color: Colors.black,
)
: null;
});
},
child: Text(
notificationIcon == null ? 'Custom Icon' : 'Default Icon',
),
),
ElevatedButton(
onPressed: () {
setState(() {
hideBadge = hideBadge == false ? true : false;
});
},
child: Text(
hideBadge == true ? 'Show Count Badge' : 'Hide Count Badge',
),
),
],
),
),
],
),
);
}
}

class SirenWindowWidget extends StatelessWidget {
const SirenWindowWidget({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
SirenInbox(
onError: (error) {
// print('This is the inApp error message ${error.message}');
},
),
],
),
);
}
}
75 changes: 0 additions & 75 deletions example/lib/siren_icon.dart

This file was deleted.

21 changes: 0 additions & 21 deletions example/lib/siren_window.dart

This file was deleted.

12 changes: 6 additions & 6 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ packages:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
url: "https://pub.dev"
source: hosted
version: "1.0.6"
version: "1.0.8"
dio:
dependency: transitive
description:
name: dio
sha256: "49af28382aefc53562459104f64d16b9dfd1e8ef68c862d5af436cc8356ce5a8"
sha256: "639179e1cc0957779e10dd5b786ce180c477c4c0aca5aaba5d1700fa2e834801"
url: "https://pub.dev"
source: hosted
version: "5.4.1"
version: "5.4.3"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -248,5 +248,5 @@ packages:
source: hosted
version: "13.0.0"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=2.0.1"
dart: ">=3.2.0-0 <4.0.0"
flutter: ">=3.0.0"
5 changes: 3 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.2.3 <4.0.0'
sdk: '>=2.17.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand All @@ -36,7 +36,8 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
sirenapp_flutter_inbox: ^1.0.0
sirenapp_flutter_inbox:
path: ../
network_logger: ^1.0.4


Expand Down
Loading