LoginSignup
1
1

More than 3 years have passed since last update.

[Flutter] Flutter 2.0 Migration方法

Posted at

Migration

  • 方法
> dart migrate
  • Process
C:/Users/itsme/Documents/GitHub/flutter_migration> dart migrate
Migrating C:/Users/itsme/Documents/GitHub/flutter_migration

See https://dart.dev/go/null-safety-migration for a migration guide.

Analyzing project...
[------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\]
No analysis issues found.

Generating migration suggestions...
[-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]

Compiling instrumentation information...
[-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]

View the migration suggestions by visiting:

  http://127.0.0.1:59295/C:/Users/itsme/Documents/GitHub/flutter_migration?authToken=SLX1RWDeq6Y%3D

Use this interactive web view to review, improve, or apply the results.
When finished with the preview, hit ctrl-c to terminate this process.

If you make edits outside of the web view (in your IDE), use the 'Rerun from
sources' action.

migrateをすると、Null safety Previewのリンクかでます。

Proposed null safety changes

  • リンクはプロジェクトによって、違います。
http://127.0.0.1:59295/C:/Users/itsme/Documents/GitHub/flutter_migration?authToken=SLX1RWDeq6Y%3D

image.png

Apply Migration

image.png

  • マイグレーションにすると、environmentの変えます。

image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1