Skip to content

Support timeout parameter in FirebaseHttpFileService - #538

Draft
an920107 wants to merge 1 commit into
Baseflow:mainfrom
an920107:feature/firebase-timeout
Draft

an920107 wants to merge 1 commit into
Baseflow:mainfrom
an920107:feature/firebase-timeout

Conversation

@an920107

@an920107 an920107 commented Oct 2, 2026

Copy link
Copy Markdown

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Feature: support the download timeout introduced in #482 in FirebaseHttpFileService.

⤵️ What is the current behavior?

FirebaseHttpFileService.get accepts only headers and ignores them, so it cannot forward a timeout to the underlying HttpFileService.

🆕 What is the new behavior (if this is a feature change)?

FirebaseHttpFileService.get now accepts Duration? timeout and forwards both headers and timeout to super.get, so Firebase-backed downloads honour the timeout (and custom headers) like HttpFileService does.

Depends on #482 (flutter_cache_manager 3.5.0); the dependency constraint is raised to ^3.5.0.

💥 Does this PR introduce a breaking change?

No. The new parameter is optional and behavior is unchanged when timeout is not set.

🐛 Recommendations for testing

CI runs flutter analyze and flutter test for this package. Note that flutter pub get needs flutter_cache_manager 3.5.0 to be published, so CI stays red until #482 is released.

📝 Links to relevant issues/docs

Follow-up to #482. Related: #141.

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current main
  • Version bumped and dated CHANGELOG entry added

- Add optional `timeout` parameter to `FirebaseHttpFileService.get`
- Forward `headers` and `timeout` to `super.get`
- Update `flutter_cache_manager` dependency constraint to `^3.5.0`
- Bump version to 2.2.0 and update CHANGELOG.md
@an920107 an920107 mentioned this pull request Oct 2, 2026
3 of 5 tasks
@an920107 an920107 changed the title feat: support timeout parameter in FirebaseHttpFileService Support timeout parameter in FirebaseHttpFileService Oct 2, 2026
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.

1 participant