gskinnerTeam / flutter-folio

A platform adaptive Flutter app for desktop, mobile and web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to run localy on MacOS, @nullable can't be used as an annotation

knightuniverse opened this issue · comments

The error is

lib/data/app_user.freezed.dart:49:4: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.

  @nullable

   ^

My MacOS version is

macOS Catalina 10.15.7

Flutter version

Flutter 2.1.0-10.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision cc9b78fc5c (8 天前) • 2021-02-25 13:26:03 -0800
Engine • revision a252ec09b7
Tools • Dart 2.13.0 (build 2.13.0-77.0.dev)

pls have a look at the attachment for all errors

error.log

commented

I met same error
lib/data/book_data.freezed.dart:1739:8: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.
@nullable TextAlign align}) = _$_BoxStyle;
image