{"id":26954624,"url":"https://github.com/evandersondev/routerfy","last_synced_at":"2025-04-03T02:18:35.860Z","repository":{"id":268728676,"uuid":"905184028","full_name":"evandersondev/routerfy","owner":"evandersondev","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-30T12:57:25.000Z","size":273,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T13:59:15.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/evandersondev.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-12-18T10:23:33.000Z","updated_at":"2024-12-30T12:57:28.000Z","dependencies_parsed_at":"2024-12-18T15:29:58.563Z","dependency_job_id":"f81faf29-8872-4bcc-9b92-1f847269484b","html_url":"https://github.com/evandersondev/routerfy","commit_stats":null,"previous_names":["evandersondev/routerfy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evandersondev%2Frouterfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evandersondev%2Frouterfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evandersondev%2Frouterfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evandersondev%2Frouterfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evandersondev","download_url":"https://codeload.github.com/evandersondev/routerfy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922227,"owners_count":20855345,"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":[],"created_at":"2025-04-03T02:18:35.289Z","updated_at":"2025-04-03T02:18:35.843Z","avatar_url":"https://github.com/evandersondev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"BrowserRoutes createBrowserRoutes() {\nreturn BrowserRoutes(\nchildren: [\nRoute(\npath: '/',\nbuilder: (context) =\u003e HomePage(),\n),\nRoute(\npath: '/login',\nbuilder: (context) =\u003e LoginPage(),\n),\nRoute(\npath: '/settings',\nbuilder: () =\u003e SettingsPage(),\nchildren: [\nRoute(path: '/profile', builder: (context) =\u003e ProfilePage()),\nRoute(path: '/themes', builder: (context) =\u003e ThemesPage()),\n]\n),\n]\n);\n}\n\nvoid main() {\nsetPathUrlStrategy();\n\nrunApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\nconst MyApp({super.key});\n\n@override\nWidget build(BuildContext context) {\nreturn RouterfyProvider(\nroutes: createBrowserRoutes(),\nchild: MaterialApp(\ntitle: 'Routerfy Example',\ninitialRoute: '/',\n),\n);\n}\n}\n\nclass HomePage extends StatefulWidget {\nconst HomePage({super.key});\n\n@override\nState\u003cHomePage\u003e createState() =\u003e \\_HomePageState();\n}\n\nclass \\_HomePageState extends State\u003cHomePage\u003e {\n@override\nWidget build(BuildContext context) {\nreturn Scaffold(\nbody: Center(\nchild: Column(\nspacing: 24,\nmainAxisAlignment: MainAxisAlignment.center,\ncrossAxisAlignment: CrossAxisAlignment.center,\nchildren: [\nText('HOME'),\nTextButton(\nonPressed: () {\nRouterfy.of(context).push('/login');\n},\nchild: Text('L O G I N')),\n],\n),\n),\n);\n}\n}\n\nclass SettingsPage extends StatefulWidget {\nconst SettingsPage({super.key});\n\n@override\nState\u003cSettingsPage\u003e createState() =\u003e \\_SettingsPageState();\n}\n\nclass \\_SettingsPageState extends State\u003cSettingsPage\u003e {\n@override\nWidget build(BuildContext context) {\nreturn Scaffold(\nbody: Row(\nmainAxisAlignment: MainAxisAlignment.spaceBetween,\ncrossAxisAlignment: CrossAxisAlignment.center,\nchildren: [\nText('SETTINGS'),\nRouterfyOutlet(),\n],\n),\n);\n}\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevandersondev%2Frouterfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevandersondev%2Frouterfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevandersondev%2Frouterfy/lists"}