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
|
|
@ -18,18 +18,24 @@ abstract class MarkdownPage extends StatefulWidget {
|
|||
final String route;
|
||||
|
||||
@override
|
||||
_MarkdownPageState createState() =>
|
||||
_MarkdownPageState(title: title, file: file, route: route);
|
||||
_MarkdownPageState createState() => _MarkdownPageState();
|
||||
}
|
||||
|
||||
class _MarkdownPageState extends State<MarkdownPage> {
|
||||
_MarkdownPageState(
|
||||
{required this.title, required this.file, required this.route});
|
||||
final String title;
|
||||
final String route;
|
||||
final Future<String> file;
|
||||
_MarkdownPageState();
|
||||
late final String title;
|
||||
late final String route;
|
||||
late final Future<String> file;
|
||||
String pageData = '';
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
title = widget.title;
|
||||
route = widget.route;
|
||||
file = widget.file;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
file.then((String fileSync) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue