Skip to content

Changes for Flutter 2 #6

@AndrewM-

Description

@AndrewM-

To get the project to work in Flutter 2 I had to make a couple of changes to the supporting packages:

    • In picture_stream.dart, I changed the word 'DiagnosticableMixin' to 'Diagnosticable'
    • In picture_provider.dart I chanded line 49 or 50 to locale: context != null ? Localizations.localeOf(context) : null,

For item 2, Flutter 2 handles nulls differently and the NullOK flag has to be removed. More info here: https://docs.google.com/document/d/1LKBL0S1uyhACDiUXILhLKFZH8Cpl_w3mXjHgaE8_--U/edit#heading=h.pub7jnop54q0

To get at these files, find the import statement in home_screen.dart import 'package:flutter_svg/flutter_svg.dart'; and use the goto definition menu option (VS Code). This will take you to flutter_svg.dart which lists the packages in items 1 and 2. Open the definition to see the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions