{"id":32278328,"url":"https://github.com/jtans/zf_flutter_kit","last_synced_at":"2026-02-22T01:36:31.340Z","repository":{"id":59150300,"uuid":"251486266","full_name":"jtans/zf_flutter_kit","owner":"jtans","description":"A flutter suite library containing common components(button,text,dialog,slider,route page etc.) for easy use.","archived":false,"fork":false,"pushed_at":"2020-04-01T10:16:48.000Z","size":900,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T00:28:03.376Z","etag":null,"topics":["button","components","dialog","flutter","flutter-ui-kit","navigator","route","text","ui","uikit"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtans.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}},"created_at":"2020-03-31T03:01:40.000Z","updated_at":"2022-09-24T10:57:01.000Z","dependencies_parsed_at":"2022-09-13T11:00:29.378Z","dependency_job_id":null,"html_url":"https://github.com/jtans/zf_flutter_kit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jtans/zf_flutter_kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtans%2Fzf_flutter_kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtans%2Fzf_flutter_kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtans%2Fzf_flutter_kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtans%2Fzf_flutter_kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtans","download_url":"https://codeload.github.com/jtans/zf_flutter_kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtans%2Fzf_flutter_kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["button","components","dialog","flutter","flutter-ui-kit","navigator","route","text","ui","uikit"],"created_at":"2025-10-23T00:20:04.362Z","updated_at":"2026-02-22T01:36:31.335Z","avatar_url":"https://github.com/jtans.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zf_flutter_kit\n\nA flutter suite library containing common components(button,text,dialog,slider,route page etc.) for easy use.\n\n# Instructions for use\nFor more,see example project.\n\n# Installing\nUse this package as a library\n1. Depend on it\nAdd this to your package's pubspec.yaml file:\n```yaml\ndependencies:\n  zf_flutter_kit: ^0.0.2\n```\n\n2. Install it\nYou can install packages from the command line:\n\nwith Flutter:\n\n\n```yaml\nflutter pub get\n```\n\nAlternatively, your editor might support ```flutter pub get```. Check the docs for your editor to learn more.\n\n3. Import it\nNow in your Dart code, you can use:\n\n\n```dart\nimport 'package:zf_flutter_kit/zf_flutter_kit.dart';\n```\n\n# Screenshot\n\n## Widget\n### ZFButton\n```dart\n    ZFButton(\n      {this.text = '',\n      this.onPressed,\n      this.borderRadius = 8,\n      this.borderWidth = 1,\n      this.color = Colors.white,\n      this.highlightColor = _highlightColor,\n      this.textColor = _color,\n      this.highlightTextColor = Colors.white,\n      this.borderColor = _color,\n      this.highlightBorderColor = _highlightColor,\n      this.textStyle,\n      this.selected = false,\n      });\n```\n### Text、BaseWidget（a simple PageRoute）、Scrollview、slider etc.\n\n![widget](https://raw.githubusercontent.com/jtans/zf_flutter_kit/master/screenshot/Simulator%20Screen%20Shot%20-%20iPhone%2011%20Pro%20Max%20-%202020-03-31%20at%2015.02.59.png)\n\n## Dialog\n```dart\nZFAlertDialog.show(context, 'Your Title', 'Your Message',\n                onOkPressed: () {\n              return true; //return true to close, when press ok button\n            });\n```\n![image](https://raw.githubusercontent.com/jtans/zf_flutter_kit/master/screenshot/Simulator%20Screen%20Shot%20-%20iPhone%2011%20Pro%20Max%20-%202020-03-31%20at%2015.03.06.png)\n## custom dialog\n```dart\nZFAlertDialog.show(context, 'Your Title', 'Your Message',\n                onOkPressed: () {\n              return true;\n            }, footerContent: () {\n              return Container(\n                color: Colors.red,\n                width: 200,\n                height: 44,\n              );\n            }());\n```\n![image](https://raw.githubusercontent.com/jtans/zf_flutter_kit/master/screenshot/Simulator%20Screen%20Shot%20-%20iPhone%2011%20Pro%20Max%20-%202020-03-31%20at%2015.03.11.png)\n\n## custom dialog content\n```dart\nshowDialog(\n                context: context,\n                builder: (ctx) {\n                  return ZFDialog(\n                    cancelText: 'Cancel',\n                    okText: 'Ok',\n                    content: () {\n                      return Image.network(\n                          'https://www.baidu.com/img/bd_logo1.png');\n                    }(),\n                  );\n                });\n```\n![image](https://raw.githubusercontent.com/jtans/zf_flutter_kit/master/screenshot/Simulator%20Screen%20Shot%20-%20iPhone%2011%20Pro%20Max%20-%202020-03-31%20at%2015.03.16.png)\n\n## Navigator\n```dart\n//push open a page\nNavigator.of(context).zfpush(MinePage());\n\n//push open a webview page\nNavigator.of(context)\n                .zfopenWebView('https://github.com', 'Your web page title');\n```\n![image](https://raw.githubusercontent.com/jtans/zf_flutter_kit/master/screenshot/push.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtans%2Fzf_flutter_kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtans%2Fzf_flutter_kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtans%2Fzf_flutter_kit/lists"}