Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidType for Enum type #91

Open
chutuananh2k opened this issue May 2, 2024 · 2 comments
Open

InvalidType for Enum type #91

chutuananh2k opened this issue May 2, 2024 · 2 comments

Comments

@chutuananh2k
Copy link

The generated file generate InvalidType for TextDirection which is an enum.

@CopyWith()
class AppThemeData {
  // ...
  final TextDirection? textDirection;
  const AppThemeData({
    this.textDirection
  });

  AppThemeData.Default()
      :  textDirection = TextDirection.ltr;
}
@Ali1Ammar
Copy link

in my code TextStyle is converted to InvalidType for unknown reason , while TextDirection is converted correctly ,
I think there is change at flutter or analyzer package which case this as It was working before

@Ali1Ammar
Copy link

for unknown reason after some re-generate the error is gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants