refactor: continue lint cleanup - 21 more issues fixed
- Fix always_specify_types (fireAlert, genericMap, mainCommon, firesApi) - Fix always_put_control_body_on_new_line (firesApi, placesAutocompleteUtils) - Fix unnecessary_import (remove redundant meta imports) Build: APK generated, 0 errors, 0 warnings
This commit is contained in:
parent
68ad4adbcf
commit
46305ee587
17 changed files with 1073 additions and 17 deletions
|
|
@ -5,7 +5,6 @@ import 'package:firebase_messaging/firebase_messaging.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
|
||||
import 'activeFires.dart';
|
||||
|
|
@ -211,7 +210,9 @@ class _HomePageState extends State<HomePage> {
|
|||
|
||||
void _showItemDialog(Map<String, dynamic> message, FireNotification notif) {
|
||||
final BuildContext? context = _scaffoldKey.currentContext;
|
||||
if (context == null) return;
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
showDialog<bool>(
|
||||
context: context,
|
||||
builder: (_) => _buildDialog(context, notif),
|
||||
|
|
@ -244,7 +245,9 @@ class _HomePageState extends State<HomePage> {
|
|||
|
||||
void _navigateToItemDetail(Map<String, dynamic> message) {
|
||||
final BuildContext? context = _scaffoldKey.currentContext;
|
||||
if (context == null) return;
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
// Clear away dialogs
|
||||
Navigator.popUntil(context, (Route<dynamic> route) => route is PageRoute);
|
||||
/* if (!notif.getRoute(store).isCurrent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue