Skip to content

Phase 1: Code quality improvements - debugPrint + localization - #79

Open
i4RP wants to merge 1 commit into
bsogulcan:mainfrom
i4RP:devin/1771658628-code-quality-and-favorites
Open

Phase 1: Code quality improvements - debugPrint + localization#79
i4RP wants to merge 1 commit into
bsogulcan:mainfrom
i4RP:devin/1771658628-code-quality-and-favorites

Conversation

@i4RP

@i4RP i4RP commented Feb 21, 2026

Copy link
Copy Markdown

Summary

Phase 1 code quality improvements for the Another IPTV Player app.

Changes

1. Replace debug print() with debugPrint()

  • Replaced all print() statements with debugPrint() across 13 files
  • Added package:flutter/foundation.dart imports where needed
  • Files: controllers, repositories, services, utils, screens, widgets

2. Localize hardcoded Turkish strings

  • Replaced hardcoded Turkish strings with ARB localization keys
  • content_states.dart: Error message and retry button
  • search_screen.dart: Series not found message
  • player_widget.dart: Channel overlay titles, content type display names
  • video_favorite_widget.dart: Favorite toggle tooltip

3. Add 20 new localization keys

  • Added keys to all 10 language ARB files (EN, TR, AR, DE, ES, FR, HI, PT, RU, ZH)
  • Keys: series_not_found, just_now, time formats, error messages, favorites UI strings
  • Regenerated localization files with flutter gen-l10n

Verification

  • flutter analyze passes with no new errors

Link to Devin run: https://app.devin.ai/sessions/8a252fa3eda1489c8e801a2d1c337db5
Requested by: DAR (@i4RP)

…) across all files - Localize hardcoded Turkish strings with ARB keys - Add 20 new localization keys to all 10 language ARB files - Regenerate localization files with flutter gen-l10n

Co-Authored-By: DAR <shoei0205@gmail.com>
@bsogulcan

Copy link
Copy Markdown
Owner

That's great, thank you for your contribution <3

After adding package:flutter/src/foundation, the Category class became ambiguous and project cannot build. Dart can no longer determine which Category type should be used.

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