{"id":27293116,"url":"https://github.com/bipinkrish/signwriting-flutter","last_synced_at":"2025-04-11T22:42:15.173Z","repository":{"id":233005403,"uuid":"785785641","full_name":"bipinkrish/signwriting-flutter","owner":"bipinkrish","description":"Flutter utilities for SignWriting formats, tokenizer and visualizer.","archived":false,"fork":false,"pushed_at":"2024-07-13T18:16:27.000Z","size":3496,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-13T19:33:21.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/signwriting_flutter","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bipinkrish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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":["bipinkrish"]}},"created_at":"2024-04-12T16:09:26.000Z","updated_at":"2024-07-13T19:33:35.127Z","dependencies_parsed_at":"2024-04-12T22:57:40.762Z","dependency_job_id":"d1a74116-f276-47e6-a707-5d7a06820a20","html_url":"https://github.com/bipinkrish/signwriting-flutter","commit_stats":null,"previous_names":["bipinkrish/signwriting-flutter"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipinkrish%2Fsignwriting-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipinkrish%2Fsignwriting-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipinkrish%2Fsignwriting-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipinkrish%2Fsignwriting-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bipinkrish","download_url":"https://codeload.github.com/bipinkrish/signwriting-flutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493022,"owners_count":21113159,"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":[],"created_at":"2025-04-11T22:42:14.007Z","updated_at":"2025-04-11T22:42:15.147Z","avatar_url":"https://github.com/bipinkrish.png","language":"Dart","funding_links":["https://github.com/sponsors/bipinkrish"],"categories":["🤟 Notation Systems"],"sub_categories":[],"readme":"# SignWriting Flutter\n\n[![pub package](https://img.shields.io/pub/v/signwriting_flutter.svg)](https://pub.dev/packages/signwriting_flutter)\n\nThis is flutter implementation of its [python counterpart](https://github.com/sign-language-processing/signwriting). flutter utilities for SignWriting formats, tokenizer, visualizer and utils.\n\nMost of the implementation is done at [signwriting](https://pub.dev/packages/signwriting)\n\n## How to use\n\nDownload both the font files from [assets/fonts](https://github.com/bipinkrish/signwriting-flutter/tree/main/assets/fonts) and place them in the `assets/fonts` directory from your project's root folder or run the below commands in your root folder to set it up\n\n```bash\nmkdir -p assets/fonts/\ncd assets/fonts/\n\nwget https://github.com/bipinkrish/signwriting-flutter/raw/refs/heads/main/assets/fonts/SuttonSignWritingFill.ttf\nwget https://github.com/bipinkrish/signwriting-flutter/raw/refs/heads/main/assets/fonts/SuttonSignWritingLine.ttf\n\ncd ../../\n```\n\nin your `pubspec.yaml` file add the below blocks\n\n```yaml\ndependencies:\n  signwriting_flutter: ^latest_version\n```\n\n```yaml\nflutter:\n  fonts:\n    - family: SuttonSignWritingFill\n      fonts:\n        - asset: assets/fonts/SuttonSignWritingFill.ttf\n\n    - family: SuttonSignWritingLine\n      fonts:\n        - asset: assets/fonts/SuttonSignWritingLine.ttf\n```\n\n## Example\n\n```dart\nimport 'dart:typed_data';\nimport 'package:flutter/material.dart';\nimport 'package:signwriting_flutter/signwriting_flutter.dart';\n\nvoid main() {\n  runApp(const MyApp());\n}\n\nclass SignWritingWidget extends StatelessWidget {\n  final String fsw;\n  const SignWritingWidget({required this.fsw, super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return FutureBuilder\u003cUint8List\u003e(\n      future: signwritingToImage(\n        fsw,\n        trustBox: false,\n        lineColor: Colors.deepOrange,\n        fillColor: Colors.white,\n      ),\n      builder: (BuildContext context, AsyncSnapshot\u003cUint8List\u003e snapshot) {\n        if (snapshot.connectionState == ConnectionState.done) {\n          if (snapshot.hasData) {\n            return Image.memory(snapshot.data!);\n          } else {\n            return const Text('Failed to render SignWriting Image');\n          }\n        } else {\n          return const CircularProgressIndicator();\n        }\n      },\n    );\n  }\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: 'SignWriting Image Test',\n      home: Scaffold(\n        appBar: AppBar(\n          title: const Text('SignWriting Image Test'),\n        ),\n        backgroundColor: Colors.black,\n        body: const Center(\n          child: SignWritingWidget(\n            fsw:\n                \"AS10011S10019S2e704S2e748M525x535S2e748483x510S10011501x466S20544510x500S10019476x475\",\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n![result](https://github.com/user-attachments/assets/43fc87d3-39a0-4f7b-915a-5be173bccf06)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbipinkrish%2Fsignwriting-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbipinkrish%2Fsignwriting-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbipinkrish%2Fsignwriting-flutter/lists"}