atsign-foundation / at_widgets

Flutter widgets which aid in building applications using Atsign's technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
52 stars 33 forks source link

Fix: 'onPopInvoked' is deprecated and shouldn't be used. Use onPopInvokedWithResult instead. #864

Open CurtlyCritchlow opened 3 weeks ago

CurtlyCritchlow commented 3 weeks ago

Which at_widget package you find issue with?

at_sync_ui_flutter

On what platforms did you experience the issue?

MacOS

What version are you using?

package: 1.0.11

What happened?

On the beta channel the below info message is shown during info • 'onPopInvoked' is deprecated and shouldn't be used. Use onPopInvokedWithResult instead. This feature was deprecated after v3.22.0-12.0.pre • lib/at_sync_material.dart:302:9 • deprecated_member_use.

On the stable channel the method `onPopInvokedWithResult' is not defined so this info message should be resolved when beta becomes stable

Steps to reproduce

Run flutter analyze on the at_sync_ui_flutter.

Additional info

No response

Relevant log output

No response

Flutter analyze output

Analyzing at_sync_ui_flutter...                                 

   info • 'onPopInvoked' is deprecated and shouldn't be used. Use onPopInvokedWithResult instead. This feature was deprecated after v3.22.0-12.0.pre • lib/at_sync_material.dart:302:9 • deprecated_member_use

1 issue found. (ran in 14.9s)

### Flutter doctor output

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.23.0-0.1.pre, on macOS 14.5 23F79
    darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android
    SDK version 34.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.90.1)
[✓] Connected device (5 available)            
[✓] Network resources

• No issues found!