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)
117 lines
2.8 KiB
YAML
117 lines
2.8 KiB
YAML
name: fires_flutter
|
|
description: All Against Fire
|
|
|
|
environment:
|
|
sdk: ">=3.0.0 <4.0.0"
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
# i18n
|
|
flutter_localizations:
|
|
sdk: flutter
|
|
intl: ^0.20.2
|
|
|
|
# utils
|
|
timeago: ^3.6.1
|
|
get_it: ^7.6.7
|
|
sentry_flutter: ^7.18.0
|
|
flutter_markdown: ^0.7.0
|
|
url_launcher: ^6.2.5
|
|
package_info_plus: ^6.0.0
|
|
|
|
# net
|
|
http: ^1.2.1
|
|
dio: ^5.4.3+1
|
|
connectivity_plus: ^5.0.2
|
|
share_plus: ^7.2.2
|
|
|
|
# data
|
|
json_annotation: ^4.9.0
|
|
shared_preferences: ^2.2.3
|
|
objectid: ^2.1.0
|
|
|
|
# redux
|
|
redux: ^5.0.0
|
|
flutter_redux: ^0.10.0
|
|
|
|
# maps, geo, etc
|
|
flutter_map: ^6.1.0
|
|
latlong2: ^0.9.1
|
|
location: ^5.0.3
|
|
geocoding: ^2.1.1
|
|
|
|
# layout
|
|
padder: ^1.0.1
|
|
flutter_speed_dial: ^7.0.0
|
|
badges: ^3.1.2
|
|
flutter_spinkit: ^5.2.0
|
|
|
|
# firebase
|
|
firebase_core: ^2.27.1
|
|
firebase_messaging: ^14.7.19
|
|
|
|
# icons
|
|
cupertino_icons: ^1.0.8
|
|
community_material_icon: ^5.9.55
|
|
|
|
# reviews
|
|
in_app_review: ^2.0.9
|
|
|
|
meta: any
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
build_runner: ^2.4.8
|
|
json_serializable: ^6.7.1
|
|
test: ^1.25.2
|
|
flutter_lints: ^3.0.1
|
|
|
|
# For information on the generic Dart part of this file, see the
|
|
# following page: https://www.dartlang.org/tools/pub/pubspec
|
|
|
|
# The following section is specific to Flutter.
|
|
flutter:
|
|
|
|
# The following line ensures that the Material Icons font is
|
|
# included with your application, so that you can use the icons in
|
|
# the material Icons class.
|
|
uses-material-design: true
|
|
|
|
assets:
|
|
- assets/private-settings.json
|
|
- assets/private-settings-dev.json
|
|
- assets/pages/privacy-en.md
|
|
- assets/pages/privacy-es.md
|
|
- images/logo-200.png
|
|
- images/fire-marker-l.png
|
|
- images/fire-marker-m.png
|
|
- images/fire-marker-s.png
|
|
- images/fire-marker.png
|
|
- images/industry-marker-reg.png
|
|
- images/industry-marker.png
|
|
|
|
# An image asset can refer to one or more resolution-specific "variants", see
|
|
# https://flutter.io/assets-and-images/#resolution-aware.
|
|
|
|
# For details regarding adding assets from package dependencies, see
|
|
# https://flutter.io/assets-and-images/#from-packages
|
|
|
|
# To add custom fonts to your application, add a fonts section here,
|
|
# in this "flutter" section. Each entry in this list should have a
|
|
# "family" key with the font family name, and a "fonts" key with a
|
|
# list giving the asset and other descriptors. For example:
|
|
# fonts:
|
|
# - family: Schyler
|
|
# fonts:
|
|
# - asset: fonts/Schyler-Regular.ttf
|
|
# - asset: fonts/Schyler-Italic.ttf
|
|
# style: italic
|
|
# - family: Trajan Pro
|
|
# fonts:
|
|
# - asset: fonts/TrajanPro.ttf
|
|
# - asset: fonts/TrajanPro_Bold.ttf
|
|
# weight: 700
|
|
#
|
|
# For details regarding fonts from package dependencies,
|
|
# see https://flutter.io/custom-fonts/#from-packages
|