Migrate a Windows project to the idiomatic run loop

Platform integration

Windows

Migrate a Windows project to the idiomatic run loop

Migration steps

Flutter 2.5 replaced Windows apps’ run loop with an idiomatic
Windows message pump to reduce CPU usage.

Projects created before Flutter version 2.5 need to be
migrated to get this improvement. You should follow the
migration steps below if the windows/runner/run_loop.h
file exists in your project.

Migration steps

Note:
 As part of this migration, you must recreate your Windows project,
  which clobbers any custom changes to the
  files in the windows/runner folder.  The following steps
  include instructions for this scenario.

Your project can be updated using these steps:

Verify you are on Flutter version 2.5 or newer using flutter --version