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.
This commit is contained in:
144
pubspec.yaml
144
pubspec.yaml
@@ -2,7 +2,7 @@ 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.
|
||||
# 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.
|
||||
@@ -29,72 +29,60 @@ dependencies:
|
||||
flutter_web_plugins:
|
||||
sdk: flutter
|
||||
|
||||
cupertino_icons: ^1.0.8
|
||||
font_awesome_flutter: ^10.8.0
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.1
|
||||
font_awesome_flutter: ^9.1.0
|
||||
|
||||
responsive_builder: ^0.4.1
|
||||
fluro: ^2.0.3
|
||||
flutter_redux: ^0.8.2
|
||||
responsive_builder: ^0.7.1
|
||||
fluro: ^2.0.5
|
||||
flutter_redux: ^0.10.0
|
||||
event_bus: ^2.0.0
|
||||
cached_network_image: ^3.1.0 #^2.5.1
|
||||
pull_to_refresh: ^2.0.0 #^1.5.0
|
||||
splashscreen: ^1.3.5
|
||||
carousel_slider: ^4.0.0
|
||||
badges: ^2.0.1
|
||||
url_launcher: ^6.1.5 #^6.0.9 #^5.7.10
|
||||
# flutter_html: ^2.1.1
|
||||
flutter_markdown: ^0.6.4 #^0.5.1
|
||||
hive: ^2.0.4 #^1.4.4+1
|
||||
hive_flutter: ^1.1.0 #^0.3.1
|
||||
flutter_spinkit: ^5.0.0
|
||||
dio: ^4.0.0 #^3.0.10
|
||||
searchable_dropdown: ^1.1.3
|
||||
email_validator: ^2.0.1
|
||||
flappy_search_bar: ^1.7.2
|
||||
flutter_launcher_icons: ^0.9.1 #^0.8.1
|
||||
# package_info: ^2.0.2
|
||||
catcher: ^0.6.8 #^0.4.2
|
||||
share: ^2.0.4 #^0.6.5+4
|
||||
universal_io: ^2.0.4 #^1.0.2
|
||||
path_provider: ^2.0.2 #^1.6.28
|
||||
# path_provider: ^2.0.1
|
||||
platform_detect: ^2.0.0
|
||||
flutter_inappwebview: ^5.3.2 #^4.0.0+4
|
||||
youtube_player_iframe: ^2.2.1 #^1.2.0+2
|
||||
fluttertoast: ^8.0.8 #^7.1.8
|
||||
percent_indicator: ^4.2.2 #^3.0.1
|
||||
image_picker: ^0.8.0+3 #^0.6.7+22
|
||||
countdown: ^0.1.0
|
||||
gender_selection: ^1.0.0
|
||||
# uni_links: ^0.5.1 #^0.4.0
|
||||
photo_view: ^0.12.0
|
||||
flutter_dash: ^0.0.1
|
||||
smooth_star_rating: ^1.1.1
|
||||
# tesseract_ocr: ^0.3.1
|
||||
# local_auth: ^1.1.0
|
||||
toggle_switch: ^1.2.0
|
||||
pinput: ^1.2.0
|
||||
google_maps_flutter: ^2.0.6 #^1.2.0
|
||||
# Stripe removed — switched to e-Transfer. See UPGRADE_NOTES.md.
|
||||
uuid: ^3.0.4 #^2.2.2
|
||||
ffi: ^1.0.0
|
||||
# firebase_messaging: ^10.0.4 #^7.0.3
|
||||
flutter_local_notifications: ^8.1.1 #^4.0.1+2
|
||||
geolocator: ^7.4.0 #^6.2.1
|
||||
url_strategy: ^0.2.0
|
||||
hovering: ^1.0.4
|
||||
universal_html: ^2.0.8
|
||||
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
|
||||
|
||||
#dev_dependencies:
|
||||
# flutter_test:
|
||||
# sdk: flutter
|
||||
# Replaces discontinued smooth_star_rating (no null-safe release).
|
||||
flutter_rating_bar: ^4.0.1
|
||||
|
||||
#dependency_overrides:
|
||||
# webview_flutter: ^3.0.4
|
||||
# path: ^1.8.0
|
||||
# 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
|
||||
@@ -112,42 +100,16 @@ flutter:
|
||||
- assets/
|
||||
- assets/images/
|
||||
- assets/tessdata/
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||
|
||||
# For details regarding adding assets from package dependencies, see
|
||||
# https://flutter.dev/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 the font. For
|
||||
# example:
|
||||
fonts:
|
||||
- family: wisetronic
|
||||
fonts:
|
||||
- asset: fonts/wisetronic.ttf
|
||||
# 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.dev/custom-fonts/#from-packages
|
||||
|
||||
flutter_intl:
|
||||
enabled: true
|
||||
|
||||
flutter_icons:
|
||||
android: "launcher_icon"
|
||||
ios: true
|
||||
image_path: "assets/images/icon.png"
|
||||
image_path: "assets/images/icon.png"
|
||||
|
||||
Reference in New Issue
Block a user