Skip to content

ScreenUtil().setWidth(65) error #349

@tianshaokai

Description

@tianshaokai

flutter 2.10.2 , Tools • Dart 2.16.1 • DevTools 2.9.2

The constructor being called isn't a const constructor. (Documentation) Try removing 'const' from the constructor invocation.
A value of type 'Null' can't be assigned to a parameter of type 'double' in a const constructor. (Documentation) Try using a subtype, or removing the keyword 'const'.
Arguments of a constant creation must be constant expressions. (Documentation) Try making the argument a valid constant, or use 'new' to call the constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions