Skip to content

Conversation

@FinnPL
Copy link
Owner

@FinnPL FinnPL commented Apr 13, 2023

πŸ€– Generated by Copilot at 1711a8d

Summary

πŸŒπŸ› οΈπŸš—

This pull request introduces the go_router package to the app and configures it to handle routing and navigation. It also enables deep linking for the app on both Android and iOS platforms, which allows users to open the app from web links. Additionally, it improves the code formatting, readability, and functionality of some files, and fixes some typos.

We're deep linking to the dark abyss
We're routing through the paths of doom
We're fixing typos in the code of death
We're formatting colors for the gloom

Walkthrough

  • Enable deep linking for the app by adding meta-data and intent-filter to AndroidManifest.xml (link) and setting FlutterDeepLinkingEnabled key and URL schemes in Info.plist (link)
  • Use go_router package to configure routing and navigation logic for the app by importing the package (link, link), replacing MaterialApp widget with MaterialApp.router widget (link, link), and defining routes and redirect function for different views (link)
  • Add a new method to check user's authentication status by verifying token and expiration date in LocalServices class (link)
  • Add a new method to fetch a single post with a given ID from the backend API in RemoteService class (link)
  • Fix a typo in the name of the getFormattedDate method in LocalServices class (link) and CommentWidget class (link)
  • Use go_router package to navigate to search page with a named route instead of a material page route in the onPressed callback of the search icon button in buildAppBar function (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants