{"id":26929537,"url":"https://github.com/siddhesh2377/notification","last_synced_at":"2025-06-13T11:07:25.962Z","repository":{"id":242545550,"uuid":"809846879","full_name":"Siddhesh2377/Notification","owner":"Siddhesh2377","description":"Notification In Desktop Compose","archived":false,"fork":false,"pushed_at":"2024-06-03T15:22:18.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T11:03:03.075Z","etag":null,"topics":["compose","compose-desktop","compose-multiplatform","compose-notification","compose-ui","dekstop","dekstop-app","desktop-application","kotlin","notifications"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siddhesh2377.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T15:01:49.000Z","updated_at":"2024-10-07T08:54:59.000Z","dependencies_parsed_at":"2024-06-15T05:31:57.115Z","dependency_job_id":null,"html_url":"https://github.com/Siddhesh2377/Notification","commit_stats":null,"previous_names":["siddhesh2377/notification"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Siddhesh2377/Notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh2377%2FNotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh2377%2FNotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh2377%2FNotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh2377%2FNotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siddhesh2377","download_url":"https://codeload.github.com/Siddhesh2377/Notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh2377%2FNotification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259634350,"owners_count":22887696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compose","compose-desktop","compose-multiplatform","compose-notification","compose-ui","dekstop","dekstop-app","desktop-application","kotlin","notifications"],"created_at":"2025-04-02T05:27:19.065Z","updated_at":"2025-06-13T11:07:25.953Z","avatar_url":"https://github.com/Siddhesh2377.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notification Composable\n\n![Screenshot from 2024-06-03 20-44-47](https://github.com/Siddhesh2377/Notification/assets/67579112/cdcc7b28-a075-4b10-b7a5-f39741fc845f)\n\n\n## Description\nThis is a Kotlin Jetpack Compose function to display notifications in your Desktop app. It creates a floating window with a customizable message and a close button.\n\n## Usage\nTo use this Composable in your Desktop project, follow these steps:\n\n1. Copy the `Notification` function into your project.\n2. Call the `Notification` function where you want to display a notification, passing the text message and a callback function to handle closing the notification.\n3. Customize the appearance and behavior of the notification window by modifying the parameters of the `Window` function.\n\n## Example\n```kotlin\n// Display a simple notification\nNotification(text = \"Hello, world!\") {\n    // Define the action to take when the notification is closed\n    // For example, you could update a state variable to hide the notification\n    // or perform any other necessary cleanup.\n    // e.g., isVisible.value = false\n}\n\n// Customize the notification window\nNotification(\n    text = \"Custom Notification\",\n    onClose = {\n        // Define the action to take when the notification is closed\n    },\n    // Customize window properties\n    // For example, you can change the width, height, position, or appearance of the notification window.\n    windowProperties = WindowProperties(\n        width = 400.dp,\n        height = 100.dp,\n        placement = WindowPlacement.Floating,\n        position = WindowPosition(Alignment.TopEnd),\n        isResizable = false,\n        isUndecorated = true,\n        isTransparent = true\n    )\n)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhesh2377%2Fnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddhesh2377%2Fnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhesh2377%2Fnotification/lists"}