hcbpassos / double_back_to_close_app

A Flutter package that allows Android users to press the back-button twice to close the app.
BSD 2-Clause "Simplified" License
59 stars 17 forks source link

'WillPopScope' is deprecated and shouldn't be used. Use PopScope instead. #23

Open tursudog opened 8 months ago

tursudog commented 8 months ago

Hi there,

I was implementing WillPopScope solution from Stackoverflow question. Android studio complaining about that. I wanted you to inform you.

'WillPopScope' is deprecated and shouldn't be used. Use PopScope instead. This feature was deprecated after v3.12.0-1.0.pre. (Documentation) Try replacing the use of the deprecated member with the replacement. 'WillPopScope.new' is deprecated and shouldn't be used. Use PopScope instead. This feature was deprecated after v3.12.0-1.0.pre. (Documentation) Try replacing the use of the deprecated member with the replacement.