Skip to content

[cross_file_io] dart:io implementation of cross_file - #12876

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
bparrishMines:cross_file_io
Sep 17, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:mainfrom
bparrishMines:cross_file_io

Conversation

@bparrishMines

@bparrishMines bparrishMines commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Part of flutter/flutter#91869

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the 'cross_file_io' package, which provides a 'dart:io' implementation of 'cross_file' for Linux and Windows, complete with an example application and integration tests. Feedback on the changes highlights a potential integer underflow in the Windows runner's 'Utf8FromUtf16' utility function when 'WideCharToMultiByte' fails, as well as several instances of synchronous I/O operations ('existsSync' and 'lastModifiedSync') being used within asynchronous methods, which can block the main event loop.

Comment thread packages/cross_file/cross_file_io/example/windows/runner/utils.cpp
@bparrishMines bparrishMines changed the title cross file io implementation [cross_file_io] dart:io implementation of cross_file Sep 15, 2026

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 17, 2026
@auto-submit
auto-submit Bot merged commit 34c0119 into flutter:main Sep 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: cross_file platform-linux platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants