Remove the external comunes-flutter library dependency and replace all its components with local implementations: - Utility functions: Created lib/utils/widget_utils.dart with compactWidgets() and ellipse() functions, replacing the comunes-flutter helpers with modern Dart null-safety patterns (whereType instead of where(notNull)) - Secret loader: Inlined as lib/utils/secret_loader.dart for loading JSON config - Layout widgets: Replaced CenteredRow/CenteredColumn with standard Row/Column with MainAxisAlignment.center - Intro screens: Copied AppIntroPage and MaterialAppWithIntro locally in lib/widgets/ with cleaned-up deprecated code patterns - Button widget: Created lib/widgets/rounded_btn.dart for the RoundedBtn used in activeFires.dart Changes span 20 files: - 5 new utility/widget files created - Updated imports in 15 files - Removed path dependency from pubspec.yaml - All functionality preserved, build verified with flutter pub get Impact: - Removes external dependency, simplifying project structure - Modern Dart patterns (proper null-safety) - Better code clarity with explicit widget properties - Easier onboarding (no 'what is comunes-flutter?' questions) |
||
|---|---|---|
| android | ||
| assets | ||
| images | ||
| ios | ||
| lib | ||
| res/values | ||
| test | ||
| .flutter-plugins-dependencies | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| build.yaml | ||
| fires_flutter.iml | ||
| fires_flutter_android.iml | ||
| LINT_CLEANUP_SUMMARY.md | ||
| LOCALIZATION_AUDIT.md | ||
| pubspec.yaml | ||
| README.md | ||
Tod@s contra el Fuego (All Against Fire) mobile
This is app that notifies about fires detected in an area of your interest. It helps the early detection of fires and facilitates local mobilization, while the professional extinction services arrive.
Install
Via Play
Development
This app is developed with flutter. So if you want to contribute, please install it.
You also needs a:
assets/private-settings.jsonseeassets/private-settings-sample.json.google-services.jsonprovided by firebase console (see also the sample).
Some json related code is generated via
flutter packages pub run build_runner build --delete-conflicting-outputs
also you can run with watch instead of build to build with any code change.
Generate apk with:
flutter build apk -t lib/mainProd.dart --flavor production
also you can run with -t lib/mainDev.dart --flavor development. More info about flavors here.
Testing
Run flutter test for doing unit testing.
Data source acknowledgements
We acknowledge the use of data and imagery from LANCE FIRMS operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.
License
GNU APLv3. See our LICENSE, for a complete text.
Thanks & other acknowlegments
(...)