{"id":19811825,"url":"https://github.com/laurensk/platform_navigation","last_synced_at":"2026-06-08T01:02:31.087Z","repository":{"id":56837017,"uuid":"334496867","full_name":"laurensk/platform_navigation","owner":"laurensk","description":"Platform navigation for Flutter.","archived":false,"fork":false,"pushed_at":"2021-01-30T23:28:48.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-27T22:38:24.425Z","etag":null,"topics":["dart","dart-library","flutter","flutter-library","flutter-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/laurensk.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":"2021-01-30T19:41:30.000Z","updated_at":"2021-01-30T23:28:51.000Z","dependencies_parsed_at":"2022-08-20T11:31:13.316Z","dependency_job_id":null,"html_url":"https://github.com/laurensk/platform_navigation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laurensk/platform_navigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laurensk%2Fplatform_navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laurensk%2Fplatform_navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laurensk%2Fplatform_navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laurensk%2Fplatform_navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laurensk","download_url":"https://codeload.github.com/laurensk/platform_navigation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laurensk%2Fplatform_navigation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34043823,"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-07T02:00:07.652Z","response_time":124,"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-library","flutter","flutter-library","flutter-package"],"created_at":"2024-11-12T09:27:53.912Z","updated_at":"2026-06-08T01:02:31.067Z","avatar_url":"https://github.com/laurensk.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Platform Navigation\n\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/pub-1.0.1-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/flutter-%3E%3D1.17.0-blue.svg\" /\u003e\n  \u003ca href=\"https://docs.mathology.org\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/kefranabg/readme-md-generator/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis library allows you to implement navigation for iOS, Android and Web with ease! It is easy to use and intended to get started quickly. Please have a look at the example below.\n\n## Example\n\n```dart\nclass MyApp extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    if (kIsWeb) return getMaterialApp();\n    if (Platform.isIOS)\n      return getCupertinoApp();\n    else\n      return getMaterialApp();\n  }\n\n  getMaterialApp() {\n    return MaterialApp(\n      debugShowCheckedModeBanner: false,\n      title: 'Platform Navigation',\n      theme: ThemeData(brightness: Brightness.light, backgroundColor: Colors.white, accentColor: Colors.black),\n      darkTheme: ThemeData(brightness: Brightness.dark, backgroundColor: Colors.black, accentColor: Colors.white),\n      home: getNavigation(),\n    );\n  }\n\n  getCupertinoApp() {\n    return CupertinoApp(\n      debugShowCheckedModeBanner: false,\n      home: getNavigation(),\n      theme: CupertinoThemeData(),\n      title: 'Platform Navigation',\n    );\n  }\n\n  getNavigation() {\n    return PlatformNavigation(title: \"My App\", screens: [\n      PlatformScreen(\n          title: \"Home\",\n          child: Container(color: Colors.white, child: Center(child: Text(\"Welcome at Home!\"))),\n          materialIcon: Icons.home,\n          cupertinoIcon: CupertinoIcons.home),\n      PlatformScreen(\n          title: \"Settings\",\n          child: Center(child: Text(\"This is the settings screen.\")),\n          materialIcon: Icons.settings,\n          cupertinoIcon: CupertinoIcons.settings),\n      PlatformScreen(\n          title: \"About\",\n          child: Center(child: Text(\"About this app!\")),\n          materialIcon: Icons.info,\n          cupertinoIcon: CupertinoIcons.info)\n    ]);\n  }\n}\n```\n\n## Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/laurensk/platform_navigation/issues).\n\n## Show your support\n\nGive a ⭐️ on [GitHub](https://github.com/laurensk/platform_navigation) if this project helped you!\n\n## License\n\nCopyright © [Laurens Kropf](https://github.com/laurensk).\u003cbr /\u003e\nThis project is [MIT](https://github.com/laurensk/platform_navigation/blob/master/LICENSE) licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurensk%2Fplatform_navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurensk%2Fplatform_navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurensk%2Fplatform_navigation/lists"}