{"id":20664027,"url":"https://github.com/flutterando/dialog_launcher","last_synced_at":"2025-09-08T15:48:05.398Z","repository":{"id":209521782,"uuid":"724305051","full_name":"Flutterando/dialog_launcher","owner":"Flutterando","description":"A Dart package to facilitate the creation and handling of dialog boxes in command line interfaces across different operating systems (Windows, Linux, and macOS).","archived":false,"fork":false,"pushed_at":"2023-11-28T15:46:33.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T10:43:53.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dialog_launcher","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flutterando.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-11-27T20:14:02.000Z","updated_at":"2024-11-24T13:36:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1f0ab01-ca14-407c-a1ca-2583082fb27b","html_url":"https://github.com/Flutterando/dialog_launcher","commit_stats":null,"previous_names":["flutterando/dialog_launcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Flutterando/dialog_launcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fdialog_launcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fdialog_launcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fdialog_launcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fdialog_launcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flutterando","download_url":"https://codeload.github.com/Flutterando/dialog_launcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fdialog_launcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274209646,"owners_count":25241787,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T19:21:44.630Z","updated_at":"2025-09-08T15:48:05.354Z","avatar_url":"https://github.com/Flutterando.png","language":"Dart","readme":"# Dialog Launcher\n\nA Dart package to facilitate the creation and handling of dialog boxes in command line interfaces across different operating systems (Windows, Linux, and macOS).\n\n## Features\n\n- **Cross-platform Support**: Works on Windows, Linux, and macOS.\n- **Various Dialog Types**: Supports alert, confirmation, file selection, and folder selection dialogs.\n- **Customizable**: Allows customization of titles, messages, and button texts.\n- **Direct Dart Usage**: Can be used directly within Dart code for more complex applications.\n\n## Installation\n\nTo install the package globally, run:\n\n```bash\ndart pub global activate dialog_launcher\n```\n\nThis will make the `dl` command available globally in your terminal.\n\n## Usage\n\n## Command Line\n\nThe `dl` command can be used to launch different types of dialogs. Here are some examples:\n\n### Alert Dialog\n```bash\ndl --type alert --title \"Warning\" --message \"This is an alert.\"\n```\n\n### Confirmation Dialog\n```bash\ndl --type confirm --title \"Confirm\" --message \"Are you sure?\" --yesText \"Yes\" --noText \"No\"\n```\n\n### File Selection Dialog\n```bash\ndl --type file --title \"Select a file\"\n```\n\n### Folder Selection Dialog\n```bash\ndl --type folder --title \"Select a folder\"\n```\n\n## In Dart Code\nYou can also use DialogLauncher directly in your Dart code. Here's an example:\n\n```dart\nimport 'dialog_launcher.dart';\n\nvoid main() async {\n  var dialogLauncher = DialogLauncher.byPlatform();\n  var response = await dialogLauncher.alertDialog(\"Title\", \"This is a message\");\n  print(response);\n}\n```\n\nThis approach is suitable for integrating dialog functionalities into more complex Dart applications.\n\n## Arguments\n```\n--type: Specifies the type of dialog (alert, confirm, file, folder).\n--title: Sets the title of the dialog.\n--message: Sets the message for alert or confirmation dialogs.\n--okButtonText: (Optional) Custom text for the OK button in alert dialogs.\n--yesText: (Optional) Custom text for the Yes button in confirmation dialogs.\n--noText: (Optional) Custom text for the No button in confirmation dialogs.\n```\n\n## License\nMIT License\n\n## Contributing\nContributions are welcome! Please submit pull requests with any improvements or bug fixes.\n\n## Acknowledgments\nThis package uses native system commands and scripts to create dialogs, leveraging tools like zenity on Linux, AppleScript on macOS, and PowerShell on Windows.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterando%2Fdialog_launcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutterando%2Fdialog_launcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterando%2Fdialog_launcher/lists"}