fix: resolve all warnings (59 warnings → 0)

- Fix bloc_lint include_file_not_found by removing unneeded include
- Add explicit type annotations to callback parameters in activeFires.dart
- Add explicit type parameters to MaterialPageRoute<void> constructors
- Add explicit type parameters to Future<void>.delayed() calls
- Fix error handler signatures: (Object err, StackTrace stack)
- Remove 'const' from genericMap() widget construction (StatefulWidget)

All strict analysis errors and warnings now resolved (0 errors, 0 warnings).
Remaining 339 issues are info-level linting suggestions.
This commit is contained in:
vjrj 2026-03-06 11:28:04 +01:00
parent 7a4c9fb3bc
commit a5e0335f72
8 changed files with 71 additions and 42 deletions

View file

@ -36,7 +36,10 @@ Future<String> getFileNameOfLang(
// https://github.com/flutter/flutter/issues/15325
Future<bool> assetNotExists(String asset) {
print('Does not exists $asset ?');
return rootBundle.load(asset).then((_) => false).catchError((err, stack) {
return rootBundle
.load(asset)
.then((_) => false)
.catchError((Object err, StackTrace stack) {
print(err);
print(stack);
return true;