{"id":19197888,"url":"https://github.com/flarebyte/text_copperframe","last_synced_at":"2026-06-15T06:02:25.711Z","repository":{"id":251979982,"uuid":"839033136","full_name":"flarebyte/text_copperframe","owner":"flarebyte","description":"The versatile text field for every design","archived":false,"fork":false,"pushed_at":"2024-10-03T19:38:41.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-21T17:09:26.437Z","etag":null,"topics":["dart","dart-package"],"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/flarebyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-08-06T20:40:38.000Z","updated_at":"2025-03-08T20:29:49.000Z","dependencies_parsed_at":"2024-08-06T23:58:23.900Z","dependency_job_id":"337e52c2-91e0-445f-bdba-0f7b50184951","html_url":"https://github.com/flarebyte/text_copperframe","commit_stats":null,"previous_names":["flarebyte/text_copperframe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flarebyte/text_copperframe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Ftext_copperframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Ftext_copperframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Ftext_copperframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Ftext_copperframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flarebyte","download_url":"https://codeload.github.com/flarebyte/text_copperframe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Ftext_copperframe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34349930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["dart","dart-package"],"created_at":"2024-11-09T12:19:11.380Z","updated_at":"2026-06-15T06:02:25.690Z","avatar_url":"https://github.com/flarebyte.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text_copperframe\n\n![Experimental](https://img.shields.io/badge/status-experimental-blue)\n\n\u003e The versatile text field for every design\n\nValidate a text field and produce a user-friendly message.\n\n![Hero image for text_copperframe](doc/text_copperframe.jpeg)\n\nHighlights:\n\n* Validate a text field based on character size\n* Validate a text field based on word size\n* Validate a URL text field\n* Produce meaningful messages that can be understood by the user\n* Can produce multiple messages for success or failure\n\n\n\nA few examples:\n\nCreate a message:\n```dart\nfinal tooSmallMessage = CopperframeMessage(label: 'Too small',level: CopperframeMessageLevel.error, category: 'length');\n```\nCreate a rule:\n```dart\nfinal minRule = CopperframeFieldRule(name: 'chars more than',options: {'text#minChars': '1'}, successMessages: [], failureMessages: [tooSmallMessage]);\n```\nCreate a field event:\n```dart\nfinal event = CopperframeFieldEvent(name: 'OnCharChange', rules: [minRule]);\n```\nCreate a text field event builder:\n```dart\nfinal builder = TextFieldEventBuilder(fieldEvent: event, metricStoreHolder: metricStoreHolder, optionsInventory: optionsInventory, widgetOptions: {'pageRow': 'row123'}, pageOptions: {'page': 'page789'});\n```\nBuild a text field event using the builder:\n```dart\nfinal textRule = builder.build();\n```\nValidate the text field:\n```dart\ntextRule.validate('some text');\n```\n\n## Documentation and links\n\n* [Code Maintenance :wrench:](MAINTENANCE.md)\n* [Code Of Conduct](CODE_OF_CONDUCT.md)\n* [Contributing :busts_in_silhouette: :construction:](CONTRIBUTING.md)\n* [Architectural Decision Records :memo:](DECISIONS.md)\n* [Contributors :busts_in_silhouette:](https://github.com/flarebyte/text_copperframe/graphs/contributors)\n* [Dependencies](https://github.com/flarebyte/text_copperframe/network/dependencies)\n* [Glossary :book:](https://github.com/flarebyte/overview/blob/main/GLOSSARY.md)\n* [Software engineering principles :gem:](https://github.com/flarebyte/overview/blob/main/PRINCIPLES.md)\n* [Overview of Flarebyte.com ecosystem :factory:](https://github.com/flarebyte/overview)\n* [Dart dependencies](DEPENDENCIES.md)\n* [Usage](USAGE.md)\n* [Example](example/example.dart)\n\n## Related\n\n* [form_validator](https://pub.dev/packages/form_validator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Ftext_copperframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflarebyte%2Ftext_copperframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Ftext_copperframe/lists"}