Files
flutter_wisetronic/pubspec.yaml
peima 1a578c925d feat: Phase 2 — upgrade deps to null-safe, replace deprecated packages
- pubspec: bump all maintained deps to null-safe latest; flutter pub get resolves
- Remove 12 packages (0-ref or no null-safe): splashscreen, flappy_search_bar,
  searchable_dropdown, share, platform_detect, flutter_inappwebview, countdown,
  gender_selection, flutter_dash, smooth_star_rating, hovering, ffi
- Add flutter_rating_bar
- Keep discontinued-but-null-safe for now (Phase 5): pull_to_refresh, hive, catcher
- New null-safe custom components (API-compatible, callers change only imports):
  utils/countdown.dart, widgets/general/{hover_widget,gender_selection,
  smooth_star_rating,search_bar}.dart
- main.dart: drop dead SplashScreen _buildBody + _to field
- 23 consuming files: swap deprecated imports to local components

Null-safety migration + upgraded-API adaptation = Phase 3.
2026-07-24 03:10:12 +08:00

116 lines
3.5 KiB
YAML

name: flutter_wisetronic
description: Wisetronic website
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish -- this is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.1+2
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.29.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_web_plugins:
sdk: flutter
cupertino_icons: ^1.0.8
font_awesome_flutter: ^10.8.0
responsive_builder: ^0.7.1
fluro: ^2.0.5
flutter_redux: ^0.10.0
event_bus: ^2.0.0
cached_network_image: ^3.4.1
carousel_slider: ^5.0.0
badges: ^3.1.2
url_launcher: ^6.3.1
flutter_markdown: ^0.7.4
flutter_spinkit: ^5.2.1
dio: ^5.7.0
email_validator: ^3.0.0
path_provider: ^2.1.4
youtube_player_iframe: ^5.2.0
fluttertoast: ^8.2.8
percent_indicator: ^4.2.3
image_picker: ^1.1.2
photo_view: ^0.15.0
toggle_switch: ^2.3.0
pinput: ^5.0.0
google_maps_flutter: ^2.9.0
uuid: ^4.5.1
flutter_local_notifications: ^17.2.4
geolocator: ^12.0.0
url_strategy: ^0.3.0
universal_io: ^2.2.2
universal_html: ^2.2.4
# Replaces discontinued smooth_star_rating (no null-safe release).
flutter_rating_bar: ^4.0.1
# Discontinued but ship a null-safe release — KEPT for now to reach a runnable
# build with minimal churn. Scheduled for proper replacement in Phase 5:
# pull_to_refresh -> smart_refresher
# hive / hive_flutter -> hive_ce / hive_ce_flutter
# catcher -> catcher2
pull_to_refresh: ^2.0.0
hive: ^2.2.3
hive_flutter: ^1.1.0
catcher: ^0.8.0
# Removed in Phase 2 (no null-safe release and/or zero references):
# splashscreen, flappy_search_bar, searchable_dropdown, share, platform_detect,
# flutter_inappwebview, countdown, gender_selection, flutter_dash,
# smooth_star_rating, hovering, ffi
# Stripe payment deps removed in Phase 1 (switched to e-Transfer).
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.14.1
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/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
# To add assets to your application, add an assets section, like this:
assets:
- assets/
- assets/images/
- assets/tessdata/
fonts:
- family: wisetronic
fonts:
- asset: fonts/wisetronic.ttf
flutter_intl:
enabled: true
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/images/icon.png"