{"id":18002176,"url":"https://github.com/alex-melnyk/flutter_advanced_segment","last_synced_at":"2025-03-26T08:31:10.867Z","repository":{"id":39855939,"uuid":"316506629","full_name":"alex-melnyk/flutter_advanced_segment","owner":"alex-melnyk","description":"https://pub.dev/packages/flutter_advanced_segment","archived":false,"fork":false,"pushed_at":"2023-04-24T09:39:30.000Z","size":2611,"stargazers_count":24,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T11:52:27.927Z","etag":null,"topics":["flutter","segment"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_advanced_segment","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/alex-melnyk.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":"2020-11-27T13:19:15.000Z","updated_at":"2025-01-27T20:44:11.000Z","dependencies_parsed_at":"2024-06-21T15:33:57.999Z","dependency_job_id":"fafd4e6d-4d25-4809-a686-8fd9967922fc","html_url":"https://github.com/alex-melnyk/flutter_advanced_segment","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-melnyk%2Fflutter_advanced_segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-melnyk%2Fflutter_advanced_segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-melnyk%2Fflutter_advanced_segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-melnyk%2Fflutter_advanced_segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-melnyk","download_url":"https://codeload.github.com/alex-melnyk/flutter_advanced_segment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618699,"owners_count":20645048,"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","segment"],"created_at":"2024-10-29T23:20:20.878Z","updated_at":"2025-03-26T08:31:09.458Z","avatar_url":"https://github.com/alex-melnyk.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_advanced_segment\nAn advanced segment widget, that can be fully customized with bunch of properties, just try it and enjoy! \n\n![APP_ICON](./APP_ICON.png)\n\n| | |\n|---|---|\n| ![Flutter Advanced Segment](./PREVIEW_01.png) | ![Flutter Advanced Segment](./PREVIEW_02.png) |\n\n## Examples\n\n### Regular Segment\n\n```dart\n// Create a controller\nfinal _controller = AdvancedSegmentController('all');\n//...\nAdvancedSegment(\n  controller: _controller, // AdvancedSegmentController\n  segments: { // Map\u003cString, String\u003e\n    'all': 'All',\n    'starred': 'Starred',\n  },\n),\n//...\n``` \n\n### Customized Segment\n\n```dart\n// Create a controller\nfinal _controller = AdvancedSegmentController('all');\n//...\nAdvancedSegment(\n  controller: _controller, // AdvancedSegmentController\n  segments: { // Map\u003cString, String\u003e\n    'all': 'All',\n    'primary': 'Primary',\n    'secondary': 'Secondary',\n    'tertiary': 'Tertiary',\n  },\n  activeStyle: TextStyle( // TextStyle\n    color: Colors.white,\n    fontWeight: FontWeight.w600,\n  ),\n  inactiveStyle: TextStyle( // TextStyle\n    color: Colors.white54,\n  ),\n  backgroundColor: Colors.black26, // Color\n  sliderColor: Colors.white, // Color\n  sliderOffset: 2.0, // Double\n  borderRadius: const BorderRadius.all(Radius.circular(8.0)), // BorderRadius\n  itemPadding: const EdgeInsets.symmetric( // EdgeInsets\n    horizontal: 15,\n    vertical: 10,\n  ),\n  animationDuration: Duration(milliseconds: 250), // Duration\n  sliderShadow: const \u003cBoxShadow\u003e[\n    BoxShadow(\n      color: Colors.black26,\n      blurRadius: 8.0,\n    ),\n  ],\n),\n//...\n```\n\n## AdvancedSegment Parameters\n|Parameter|Description|Type|Default|\n|:--------|:----------|:---|:------|\n|`controller`|Manage AdvancedSegment state|*AdvancedSegmentController*||\n|`segments`|Map of presented segments|*Map\u003cString, String\u003e*|required|\n|`activeStyle`||*TextStyle*|fontWeight: FontWeight.w600|\n|`inactiveStyle`||*TextStyle*||\n|`backgroundColor`||*Color*|Colors.black26|\n|`sliderColor`||*Color*|Colors.white|\n|`sliderOffset`||*double*|2.0|\n|`borderRadius`||*BorderRadius*|Radius.circular(8.0)|\n|`itemPadding`||*EdgeInsets*|EdgeInsets.symmetric(h: 15, v: 10)|\n|`animationDuration`||*Duration*|Duration(milliseconds: 250)|\n|`sliderShadow`||*BoxShadow*|Shadow|\n\n\n# Demo\n\n![Flutter Advanced Segment Demo](./DEMO.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-melnyk%2Fflutter_advanced_segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-melnyk%2Fflutter_advanced_segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-melnyk%2Fflutter_advanced_segment/lists"}