[Flutter] Flutter 2.0 Migration 방법

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
    



    Apply Migration




  • 마이그레이션하면 환경이 변경됩니다.

  • 좋은 웹페이지 즐겨찾기