refactor: fix remaining lint warnings and deprecated APIs
- Fix deprecated @ignore in json_serializable models (appState, yourLocation) - Fix empty catch blocks in compassMapPlugin, globalFiresBottomStats, locationUtils - Fix no_logic_in_create_state in firesApp, markdownPage, slider - Fix use_build_context_synchronously in fireAlert - Fix only_throw_errors in firesApi (8 instances) - Exclude generated .g.dart files from analysis - Update deprecated nullable: false to @JsonSerializable() Build: APK generated successfully, 0 errors, 0 warnings
This commit is contained in:
parent
948a609619
commit
862d423f6b
14 changed files with 96 additions and 69 deletions
|
|
@ -24,13 +24,15 @@ class _CompassMapPluginWidgetState extends State<CompassMapPluginWidget> {
|
|||
try {
|
||||
_mapController = MapController.of(context);
|
||||
_initRotationMonitoring();
|
||||
} catch (e) {
|
||||
} catch (_) {
|
||||
// Ignore - MapController may not be available yet
|
||||
}
|
||||
}
|
||||
|
||||
void _initRotationMonitoring() {
|
||||
// Check rotation periodically (every 100ms) to detect changes
|
||||
_rotationCheckTimer = Timer.periodic(const Duration(milliseconds: 100), (_) {
|
||||
_rotationCheckTimer =
|
||||
Timer.periodic(const Duration(milliseconds: 100), (_) {
|
||||
_checkRotation();
|
||||
});
|
||||
|
||||
|
|
@ -59,7 +61,8 @@ class _CompassMapPluginWidgetState extends State<CompassMapPluginWidget> {
|
|||
try {
|
||||
final MapController controller = MapController.of(context);
|
||||
controller.rotate(0);
|
||||
} catch (e) {
|
||||
} catch (_) {
|
||||
// Ignore - MapController may not be available
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue