localizely / intl_utils

Dart package that creates a binding between your translations from .arb files and your Flutter app
BSD 3-Clause "New" or "Revised" License
134 stars 78 forks source link

Generate missing type for parameter #92

Closed manhpv-1697 closed 1 year ago

manhpv-1697 commented 1 year ago

Im using intl_utils 2.7.0. Lib generate file with issue

Screen Shot 2022-10-19 at 00 05 16

SDk: >=2.18.2 <3.3.4

lzoran commented 1 year ago

Hi @manhpv-1697,

According to the attached image and error messages, I assume that these errors have something with the analyzer configuration (analysis_options.yaml file).

If that is a case, excluding generated files from the analysis should solve the problem.

The analysis_options.yaml file:

include: package:flutter_lints/flutter.yaml

analyzer:
  strong-mode:
    implicit-casts: false
    implicit-dynamic: false
  exclude: [lib/generated/**] # Add this line

Hope it helps!

manhpv-1697 commented 1 year ago

@lzoran thank u so much !