gskinnerTeam / flutter-folio

A platform adaptive Flutter app for desktop, mobile and web.
MIT License
3.85k stars 787 forks source link

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

Open knightuniverse opened 3 years ago

knightuniverse commented 3 years ago

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

zxy-c commented 3 years ago

I met same error lib/data/bookdata.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