{"id":16747925,"url":"https://github.com/amake/org_flutter","last_synced_at":"2025-03-17T02:30:58.733Z","repository":{"id":43647166,"uuid":"242534753","full_name":"amake/org_flutter","owner":"amake","description":"Org Mode widgets for Flutter","archived":false,"fork":false,"pushed_at":"2025-03-09T14:52:28.000Z","size":1178,"stargazers_count":18,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T07:22:45.737Z","etag":null,"topics":["flutter","org-mode"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amake.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},"funding":{"github":"amake"}},"created_at":"2020-02-23T14:47:15.000Z","updated_at":"2025-03-09T14:52:25.000Z","dependencies_parsed_at":"2023-09-24T07:15:28.930Z","dependency_job_id":"2e6638a3-ef1a-4580-8647-553a19a63d44","html_url":"https://github.com/amake/org_flutter","commit_stats":{"total_commits":436,"total_committers":2,"mean_commits":218.0,"dds":0.004587155963302725,"last_synced_commit":"142066bf663d7031cfcdd91f88bf6dda3381ea18"},"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Forg_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Forg_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Forg_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Forg_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amake","download_url":"https://codeload.github.com/amake/org_flutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243961653,"owners_count":20375282,"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":["flutter","org-mode"],"created_at":"2024-10-13T02:11:17.751Z","updated_at":"2025-03-17T02:30:58.728Z","avatar_url":"https://github.com/amake.png","language":"Dart","funding_links":["https://github.com/sponsors/amake"],"categories":[],"sub_categories":[],"readme":"# org_flutter\n\n[Org Mode](https://orgmode.org/) widgets for Flutter.\n\n# Usage\n\nFor parsing Org Mode documents, see\n[org_parser](https://github.com/amake/org_parser). For an example application\nthat displays Org Mode documents with org_parser and org_flutter, see\n[Orgro](https://orgro.org).\n\nThe simplest way to display an Org Mode document in your Flutter application is\nto use the `Org` widget:\n\n```dart\nimport 'package:org_flutter/org_flutter.dart';\n\nclass MyOrgViewWidget extends StatelessWidget {\n  Widget build(BuildContext context) {\n    return Org('''* TODO [#A] foo bar\nbaz buzz''');\n  }\n}\n```\n\nSee the [example](./example/lib/main.dart) for more.\n\n## Rich text\n\nUse Org markup to create rich `Text`-equivalent widgets with `OrgText`.\n\n```dart\nOrgText('*This* is a /rich/ text label ([[https://example.com][details]])')\n```\n\n## Advanced\n\nFor more advanced usage, such as specifying link handling, use `OrgController`\nin concert with `OrgRootWidget`:\n\n```dart\nimport 'package:org_flutter/org_flutter.dart';\n\nWidget build(BuildContext context) {\n  final doc = OrgDocument.parse(\n    rawOrgModeDocString,\n    // Interpret e.g. #+TODO: settings at the cost of a second parsing pass\n    interpretEmbeddedSettings: true,\n  );\n  return OrgController(\n    root: doc,\n    child: OrgLocator( // Include OrgLocator to enable tap-to-jump on footnotes, etc.\n      child: OrgRootWidget(\n        style: myTextStyle,\n        onLinkTap: launch, // e.g. from url_launcher package\n        child: OrgDocumentWidget(doc),\n      ),\n    ),\n  );\n}\n```\n\nPlace `OrgController` higher up in your widget hierarchy and access via\n`OrgController.of(context)` to dynamically control various properties of the\ndisplayed document:\n\n```dart\nIconButton(\n  icon: const Icon(Icons.repeat),\n  onPressed: OrgController.of(context).cycleVisibility,\n);\n```\n\n## Text selection\n\nThe Org Mode text is not selectable by default, but you can make it so by\nwrapping the widget in\n[`SelectionArea`](https://api.flutter.dev/flutter/material/SelectionArea-class.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Forg_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famake%2Forg_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Forg_flutter/lists"}