todos-contra-el-fuego-mobile/lib/introPage.dart
vjrj 68ad4adbcf refactor: continue lint cleanup - 96 more issues fixed
- Add @immutable to classes with ==/hashCode (homePage, basicLocation, fireNotification, yourLocation, monitoredAreas)
- Fix camel_case_types (genericMap → GenericMap)
- Fix avoid_dynamic_calls (firesApi - typed responses)
- Fix use_build_context_synchronously (locationUtils)
- Fix always_put_control_body_on_new_line (4 reducers)
- Fix always_specify_types (placesAutocompleteUtils, reducers)
- Fix eol_at_end_of_file (4 files)
- Fix prefer_function_declarations_over_variables (introPage)
- Fix flutter_style_todos (fireMapReducer)

Build: APK generated, 0 errors, 0 warnings
2026-03-07 11:17:01 +01:00

28 lines
966 B
Dart

import 'package:comunes_flutter/comunes_flutter.dart';
import 'package:flutter/material.dart';
import 'generated/i18n.dart';
import 'homePage.dart';
class IntroPage extends AppIntroPage {
IntroPage({super.key})
: super(
items: _fireItems,
onIntroFinish: (BuildContext context) =>
Navigator.pushNamed(context, HomePage.routeName));
static String routeName = '/intro';
static List<AppIntroItem> _fireItems(BuildContext context) => <AppIntroItem>[
AppIntroItem(
icon: Icons.location_on, title: S.of(context).chooseAPlace),
AppIntroItem(
icon: Icons.panorama_fish_eye,
title: S.of(context).chooseAWatchRadio),
AppIntroItem(
icon: Icons.whatshot,
title: S.of(context).getAlertsOfFiresinThatArea),
AppIntroItem(
icon: Icons.notifications_active,
title: S.of(context).alertWhenThereIsAFire)
];
}