Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(utils): move formatRelative methods to AppLocalizationsExtension #196

Conversation

albertms10
Copy link
Owner

@albertms10 albertms10 commented Jan 27, 2023

As formatRelative methods depend on AppLocalizations, this PR moves them to AppLocalizationsExtension to keep all dependant methods and getters in the same place.

Additionally, the app_localizations_extension.dart file has been ignored from coverage, as there’s no straightforward way of testing its whole set of getters and methods.

@albertms10 albertms10 added the refactor The code needs to be refactored label Jan 27, 2023
@albertms10 albertms10 added this to the Version 0.9 milestone Jan 27, 2023
@albertms10 albertms10 self-assigned this Jan 27, 2023
@albertms10 albertms10 merged commit f7fc78f into main Jan 27, 2023
@albertms10 albertms10 deleted the refactor/move-format-relative-methods-to-app-localizations-extension branch January 27, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor The code needs to be refactored
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant