{"id":18918401,"url":"https://github.com/hacker1649/custom-polygon-package","last_synced_at":"2025-07-23T06:05:22.637Z","repository":{"id":241284078,"uuid":"805050103","full_name":"hacker1649/custom-polygon-package","owner":"hacker1649","description":"Classwork #11 - Custom Paint / Flutter Package Publishing","archived":false,"fork":false,"pushed_at":"2024-05-23T19:41:34.000Z","size":269,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T09:07:41.285Z","etag":null,"topics":["custom-paint","custom-painter","dart","flutter","package","publish-package"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/custom_polygon_package","language":"C++","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/hacker1649.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":"2024-05-23T19:33:34.000Z","updated_at":"2024-12-27T20:13:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2f3c426-7175-4079-815f-367b6ff10d67","html_url":"https://github.com/hacker1649/custom-polygon-package","commit_stats":null,"previous_names":["hacker1649/custom-polygon-package"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hacker1649/custom-polygon-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fcustom-polygon-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fcustom-polygon-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fcustom-polygon-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fcustom-polygon-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacker1649","download_url":"https://codeload.github.com/hacker1649/custom-polygon-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fcustom-polygon-package/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["custom-paint","custom-painter","dart","flutter","package","publish-package"],"created_at":"2024-11-08T10:31:42.044Z","updated_at":"2025-07-23T06:05:22.613Z","avatar_url":"https://github.com/hacker1649.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Custom Polygon Package\n\nA Flutter package for custom painting.\n\nIn this version of the Flutter package, we implemented a code that defines a widget named as `CustomPolygonWidget` that allows users to interactively adjust the number of sides, size, and rotation of a polygon using sliders. The also implemented a class named as `ShapePainter` that uses the provided parameters to draw the polygon on the canvas.\n\nAdditionally, we prepared the package for publishing on pub.dev, including setting up the necessary metadata and documentation.\n\n## Installation \n\n1. Use this package as a library, Run this command:\n\n✔️ With Dart:\n\n```bash\n$ dart pub add custom_polygon_package\n```\n\n✔️ With Flutter:\n\n```bash\n$ flutter pub add custom_polygon_package\n```\n\n2. This will add a line like this to your package's pubspec.yaml (and run an implicit `dart pub get`):\n\n```yaml\ndependencies:\n  custom_polygon_package: ^0.0.1\n```\n\n3. Now in your Dart code, you can use:\n\n```dart\nimport 'package:custom_polygon_package/custom_polygon_package.dart';\n```\n\n## Usage\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:custom_polygon_package/custom_polygon_package.dart';\n\nvoid main() {\n  runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  // This widget is the root of your application.\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: 'Polygon Package Testing...',\n      debugShowCheckedModeBanner: false,\n      theme: ThemeData(\n        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),\n        useMaterial3: true,\n      ),\n      home: HomeScreen(),\n    );\n  }\n}\n\nclass HomeScreen extends StatelessWidget {\n  const HomeScreen({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: Text('Polygons', style: TextStyle(fontWeight: FontWeight.bold)),\n        backgroundColor: Theme.of(context).colorScheme.inversePrimary,\n      ),\n      body: Center(\n        child: CustomPolygonWidget(),\n      ),\n    );\n  }\n}\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cimg  src=\"https://github.com/hacker1649/custom-polygon-package/assets/88313681/6e6389c6-1728-4025-96ce-df79c5b3a885\"  alt=\"\"\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Resources\n\n1. [Creating Packages](https://dart.dev/guides/libraries/create-packages)\n\n2. [Publishing Packages](https://dart.dev/tools/pub/publishing)\n\n3. [How to draw and animate designs with Flutter CustomPaint Widget](https://blog.codemagic.io/flutter-custom-painter/)\n\n4. [CustomPaint Class](https://api.flutter.dev/flutter/widgets/CustomPaint-class.html)\n\n5. [CustomPainter Class](https://api.flutter.dev/flutter/rendering/CustomPainter-class.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Fcustom-polygon-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacker1649%2Fcustom-polygon-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Fcustom-polygon-package/lists"}