mirror of
https://github.com/Iconica-Development/flutter_notification_center.git
synced 2025-05-19 09:03:45 +02:00
feat: Add some styling and translations
This commit is contained in:
parent
af5726a822
commit
0289ca1756
8 changed files with 182 additions and 132 deletions
31
.dart_tool/extension_discovery/README.md
Normal file
31
.dart_tool/extension_discovery/README.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
Extension Discovery Cache
|
||||||
|
=========================
|
||||||
|
|
||||||
|
This folder is used by `package:extension_discovery` to cache lists of
|
||||||
|
packages that contains extensions for other packages.
|
||||||
|
|
||||||
|
DO NOT USE THIS FOLDER
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
* Do not read (or rely) the contents of this folder.
|
||||||
|
* Do write to this folder.
|
||||||
|
|
||||||
|
If you're interested in the lists of extensions stored in this folder use the
|
||||||
|
API offered by package `extension_discovery` to get this information.
|
||||||
|
|
||||||
|
If this package doesn't work for your use-case, then don't try to read the
|
||||||
|
contents of this folder. It may change, and will not remain stable.
|
||||||
|
|
||||||
|
Use package `extension_discovery`
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
|
If you want to access information from this folder.
|
||||||
|
|
||||||
|
Feel free to delete this folder
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
Files in this folder act as a cache, and the cache is discarded if the files
|
||||||
|
are older than the modification time of `.dart_tool/package_config.json`.
|
||||||
|
|
||||||
|
Hence, it should never be necessary to clear this cache manually, if you find a
|
||||||
|
need to do please file a bug.
|
1
.dart_tool/extension_discovery/vs_code.json
Normal file
1
.dart_tool/extension_discovery/vs_code.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"version":2,"entries":[{"package":"flutter_notification_center","rootUri":"../","packageUri":"lib/"}]}
|
|
@ -3,169 +3,169 @@
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "async",
|
"name": "async",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/async-2.11.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/async-2.11.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.18"
|
"languageVersion": "2.18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "boolean_selector",
|
"name": "boolean_selector",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.17"
|
"languageVersion": "2.17"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "characters",
|
"name": "characters",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/characters-1.3.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/characters-1.3.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clock",
|
"name": "clock",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/clock-1.1.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/clock-1.1.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "collection",
|
"name": "collection",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/collection-1.18.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/collection-1.18.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.18"
|
"languageVersion": "2.18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cupertino_icons",
|
"name": "cupertino_icons",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.19"
|
"languageVersion": "2.19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fake_async",
|
"name": "fake_async",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "flutter",
|
"name": "flutter",
|
||||||
"rootUri": "file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter",
|
"rootUri": "file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.2"
|
"languageVersion": "3.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "flutter_lints",
|
"name": "flutter_lints",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.1"
|
"languageVersion": "3.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "flutter_test",
|
"name": "flutter_test",
|
||||||
"rootUri": "file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter_test",
|
"rootUri": "file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter_test",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.2"
|
"languageVersion": "3.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "intl",
|
"name": "intl",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/intl-0.17.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/intl-0.17.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "leak_tracker",
|
"name": "leak_tracker",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.1"
|
"languageVersion": "3.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "leak_tracker_flutter_testing",
|
"name": "leak_tracker_flutter_testing",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.1"
|
"languageVersion": "3.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "leak_tracker_testing",
|
"name": "leak_tracker_testing",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.1"
|
"languageVersion": "3.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lints",
|
"name": "lints",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/lints-3.0.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/lints-3.0.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.0"
|
"languageVersion": "3.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "matcher",
|
"name": "matcher",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/matcher-0.12.16+1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/matcher-0.12.16+1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.0"
|
"languageVersion": "3.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "material_color_utilities",
|
"name": "material_color_utilities",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.17"
|
"languageVersion": "2.17"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "meta",
|
"name": "meta",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/meta-1.11.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/meta-1.11.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/path-1.9.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/path-1.9.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.0"
|
"languageVersion": "3.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sky_engine",
|
"name": "sky_engine",
|
||||||
"rootUri": "file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/bin/cache/pkg/sky_engine",
|
"rootUri": "file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/bin/cache/pkg/sky_engine",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.2"
|
"languageVersion": "3.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "source_span",
|
"name": "source_span",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/source_span-1.10.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/source_span-1.10.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.18"
|
"languageVersion": "2.18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "stack_trace",
|
"name": "stack_trace",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/stack_trace-1.11.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stack_trace-1.11.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.18"
|
"languageVersion": "2.18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "stream_channel",
|
"name": "stream_channel",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/stream_channel-2.1.2",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stream_channel-2.1.2",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.19"
|
"languageVersion": "2.19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "string_scanner",
|
"name": "string_scanner",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.18"
|
"languageVersion": "2.18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "term_glyph",
|
"name": "term_glyph",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "test_api",
|
"name": "test_api",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/test_api-0.6.1",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/test_api-0.6.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.0"
|
"languageVersion": "3.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vector_math",
|
"name": "vector_math",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.14"
|
"languageVersion": "2.14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vm_service",
|
"name": "vm_service",
|
||||||
"rootUri": "file:///Users/vick/.pub-cache/hosted/pub.dev/vm_service-13.0.0",
|
"rootUri": "file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vm_service-13.0.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.0"
|
"languageVersion": "3.0"
|
||||||
},
|
},
|
||||||
|
@ -176,7 +176,7 @@
|
||||||
"languageVersion": "3.3"
|
"languageVersion": "3.3"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generated": "2024-04-03T12:38:14.672861Z",
|
"generated": "2024-04-03T12:50:20.344201Z",
|
||||||
"generator": "pub",
|
"generator": "pub",
|
||||||
"generatorVersion": "3.3.2"
|
"generatorVersion": "3.3.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,117 +1,117 @@
|
||||||
async
|
async
|
||||||
2.18
|
2.18
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/async-2.11.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/async-2.11.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/async-2.11.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/async-2.11.0/lib/
|
||||||
boolean_selector
|
boolean_selector
|
||||||
2.17
|
2.17
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
|
||||||
characters
|
characters
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/characters-1.3.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/characters-1.3.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/
|
||||||
clock
|
clock
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/clock-1.1.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/clock-1.1.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
|
||||||
collection
|
collection
|
||||||
2.18
|
2.18
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/collection-1.18.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/collection-1.18.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/collection-1.18.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/collection-1.18.0/lib/
|
||||||
cupertino_icons
|
cupertino_icons
|
||||||
2.19
|
2.19
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/
|
||||||
fake_async
|
fake_async
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
|
||||||
flutter_lints
|
flutter_lints
|
||||||
3.1
|
3.1
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/lib/
|
||||||
intl
|
intl
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/intl-0.17.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/intl-0.17.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/intl-0.17.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/intl-0.17.0/lib/
|
||||||
leak_tracker
|
leak_tracker
|
||||||
3.1
|
3.1
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker-10.0.0/lib/
|
||||||
leak_tracker_flutter_testing
|
leak_tracker_flutter_testing
|
||||||
3.1
|
3.1
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-2.0.1/lib/
|
||||||
leak_tracker_testing
|
leak_tracker_testing
|
||||||
3.1
|
3.1
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.1/lib/
|
||||||
lints
|
lints
|
||||||
3.0
|
3.0
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/lints-3.0.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/lints-3.0.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/lints-3.0.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/lints-3.0.0/lib/
|
||||||
matcher
|
matcher
|
||||||
3.0
|
3.0
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/
|
||||||
material_color_utilities
|
material_color_utilities
|
||||||
2.17
|
2.17
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/lib/
|
||||||
meta
|
meta
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/meta-1.11.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/meta-1.11.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/meta-1.11.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/meta-1.11.0/lib/
|
||||||
path
|
path
|
||||||
3.0
|
3.0
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/path-1.9.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/path-1.9.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/path-1.9.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/path-1.9.0/lib/
|
||||||
source_span
|
source_span
|
||||||
2.18
|
2.18
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/source_span-1.10.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/source_span-1.10.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/
|
||||||
stack_trace
|
stack_trace
|
||||||
2.18
|
2.18
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/
|
||||||
stream_channel
|
stream_channel
|
||||||
2.19
|
2.19
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/
|
||||||
string_scanner
|
string_scanner
|
||||||
2.18
|
2.18
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
|
||||||
term_glyph
|
term_glyph
|
||||||
2.12
|
2.12
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
|
||||||
test_api
|
test_api
|
||||||
3.0
|
3.0
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/test_api-0.6.1/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/test_api-0.6.1/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/test_api-0.6.1/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/test_api-0.6.1/lib/
|
||||||
vector_math
|
vector_math
|
||||||
2.14
|
2.14
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
|
||||||
vm_service
|
vm_service
|
||||||
3.0
|
3.0
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/vm_service-13.0.0/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vm_service-13.0.0/
|
||||||
file:///Users/vick/.pub-cache/hosted/pub.dev/vm_service-13.0.0/lib/
|
file:///Users/jacquesdoeleman/.pub-cache/hosted/pub.dev/vm_service-13.0.0/lib/
|
||||||
flutter_notification_center
|
|
||||||
3.3
|
|
||||||
file:///Users/vick/Desktop/Flutter%20Projects/components/flutter_notification_center/
|
|
||||||
file:///Users/vick/Desktop/Flutter%20Projects/components/flutter_notification_center/lib/
|
|
||||||
sky_engine
|
sky_engine
|
||||||
3.2
|
3.2
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/bin/cache/pkg/sky_engine/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/bin/cache/pkg/sky_engine/
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/bin/cache/pkg/sky_engine/lib/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/bin/cache/pkg/sky_engine/lib/
|
||||||
flutter
|
flutter
|
||||||
3.2
|
3.2
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter/
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter/lib/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter/lib/
|
||||||
flutter_test
|
flutter_test
|
||||||
3.2
|
3.2
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter_test/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter_test/
|
||||||
file:///Users/vick/Library/brew/Caskroom/flutter/3.13.3/flutter/packages/flutter_test/lib/
|
file:///Users/jacquesdoeleman/Develop/Frameworks/flutter/packages/flutter_test/lib/
|
||||||
|
flutter_notification_center
|
||||||
|
3.3
|
||||||
|
file:///Users/jacquesdoeleman/Develop/Iconica/Projects/Packages/flutter_notification_center/
|
||||||
|
file:///Users/jacquesdoeleman/Develop/Iconica/Projects/Packages/flutter_notification_center/lib/
|
||||||
2
|
2
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
3.19.4
|
3.19.5
|
|
@ -10,13 +10,12 @@ class NotificationStyle {
|
||||||
final Color? leadingIconColor;
|
final Color? leadingIconColor;
|
||||||
final Color? trailingIconColor;
|
final Color? trailingIconColor;
|
||||||
final EdgeInsets? contentPadding;
|
final EdgeInsets? contentPadding;
|
||||||
final double? titleFontSize;
|
|
||||||
final double? subtitleFontSize;
|
|
||||||
final FontWeight? titleFontWeight;
|
|
||||||
final FontWeight? subtitleFontWeight;
|
|
||||||
final TextAlign? titleTextAlign;
|
final TextAlign? titleTextAlign;
|
||||||
final TextAlign? subtitleTextAlign;
|
final TextAlign? subtitleTextAlign;
|
||||||
final bool? dense;
|
final bool? dense;
|
||||||
|
final BoxDecoration? tileDecoration;
|
||||||
|
final Widget Function()? emptyNotificationsBuilder;
|
||||||
|
final TextStyle? appTitleTextStyle;
|
||||||
|
|
||||||
const NotificationStyle({
|
const NotificationStyle({
|
||||||
this.titleTextStyle,
|
this.titleTextStyle,
|
||||||
|
@ -25,12 +24,11 @@ class NotificationStyle {
|
||||||
this.leadingIconColor,
|
this.leadingIconColor,
|
||||||
this.trailingIconColor,
|
this.trailingIconColor,
|
||||||
this.contentPadding,
|
this.contentPadding,
|
||||||
this.titleFontSize,
|
|
||||||
this.subtitleFontSize,
|
|
||||||
this.titleFontWeight,
|
|
||||||
this.subtitleFontWeight,
|
|
||||||
this.titleTextAlign,
|
this.titleTextAlign,
|
||||||
this.subtitleTextAlign,
|
this.subtitleTextAlign,
|
||||||
this.dense,
|
this.dense,
|
||||||
|
this.tileDecoration,
|
||||||
|
this.emptyNotificationsBuilder,
|
||||||
|
this.appTitleTextStyle,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
9
lib/src/models/notification_translation.dart
Normal file
9
lib/src/models/notification_translation.dart
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
class NotificationTranslations {
|
||||||
|
final String appBarTitle;
|
||||||
|
final String noNotifications;
|
||||||
|
|
||||||
|
const NotificationTranslations({
|
||||||
|
this.appBarTitle = 'Notification Center',
|
||||||
|
this.noNotifications = 'No unread notifications available.',
|
||||||
|
});
|
||||||
|
}
|
|
@ -1,17 +1,20 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_notification_center/src/models/notification.dart';
|
import 'package:flutter_notification_center/src/models/notification.dart';
|
||||||
import 'package:flutter_notification_center/src/models/notification_theme.dart';
|
import 'package:flutter_notification_center/src/models/notification_theme.dart';
|
||||||
|
import 'package:flutter_notification_center/src/models/notification_translation.dart';
|
||||||
import 'package:flutter_notification_center/src/services/notification_service.dart';
|
import 'package:flutter_notification_center/src/services/notification_service.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
|
|
||||||
class NotificationCenter extends StatefulWidget {
|
class NotificationCenter extends StatefulWidget {
|
||||||
final NotificationService notificationCenterService;
|
final NotificationService notificationCenterService;
|
||||||
final NotificationStyle? notificationTheme;
|
final NotificationStyle? notificationTheme;
|
||||||
|
final NotificationTranslations translations;
|
||||||
|
|
||||||
const NotificationCenter({
|
const NotificationCenter({
|
||||||
super.key,
|
super.key,
|
||||||
required this.notificationCenterService,
|
required this.notificationCenterService,
|
||||||
this.notificationTheme,
|
this.notificationTheme,
|
||||||
|
this.translations = const NotificationTranslations(),
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -35,7 +38,10 @@ class _NotificationCenterState extends State<NotificationCenter> {
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('Notification Center'),
|
title: Text(
|
||||||
|
widget.translations.appBarTitle,
|
||||||
|
style: widget.notificationTheme?.appTitleTextStyle,
|
||||||
|
),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back),
|
icon: const Icon(Icons.arrow_back),
|
||||||
|
@ -45,8 +51,9 @@ class _NotificationCenterState extends State<NotificationCenter> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: unreadNotifications.isEmpty
|
body: unreadNotifications.isEmpty
|
||||||
? const Center(
|
? widget.notificationTheme?.emptyNotificationsBuilder?.call() ??
|
||||||
child: Text('No unread notifications available.'),
|
Center(
|
||||||
|
child: Text(widget.translations.appBarTitle),
|
||||||
)
|
)
|
||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
itemCount: unreadNotifications.length,
|
itemCount: unreadNotifications.length,
|
||||||
|
@ -54,8 +61,11 @@ class _NotificationCenterState extends State<NotificationCenter> {
|
||||||
final notification = unreadNotifications[index];
|
final notification = unreadNotifications[index];
|
||||||
final formattedDateTime = DateFormat('yyyy-MM-dd HH:mm')
|
final formattedDateTime = DateFormat('yyyy-MM-dd HH:mm')
|
||||||
.format(notification.dateTime);
|
.format(notification.dateTime);
|
||||||
return ListTile(
|
return Container(
|
||||||
|
decoration: widget.notificationTheme?.tileDecoration,
|
||||||
|
child: ListTile(
|
||||||
title: Column(
|
title: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
|
@ -85,6 +95,7 @@ class _NotificationCenterState extends State<NotificationCenter> {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue