fix: resolve 2 remaining strict analysis errors

- introPage.dart: Convert fireItems to proper static function closure
- mainDrawer.dart: Convert unreadCount int to String for Text widget
This commit is contained in:
vjrj 2026-03-06 11:21:06 +01:00
parent 1864e5b105
commit 7a4c9fb3bc
61 changed files with 1386 additions and 1202 deletions

View file

@ -2,19 +2,19 @@ import 'package:flutter/material.dart';
/// Attribution widget for displaying map attribution text
class AttributionPluginWidget extends StatelessWidget {
final String text;
AttributionPluginWidget({this.text = ""});
const AttributionPluginWidget({super.key, this.text = ''});
final String text;
@override
Widget build(BuildContext context) {
var style = new TextStyle(
const TextStyle style = TextStyle(
fontSize: 12.0,
color: Colors.white,
);
return Padding(
padding: const EdgeInsets.all(5.0),
child: new Text(
child: Text(
text,
style: style,
),