Flutter app is moving back to start if minimized

In the Flutter app, navigating to the home screen occurs when the application is minimized by pressing the home button, causing the app to go into the background. This issue is specific to Samsung devices, as the app functions correctly on other Android devices and iPhones. It appears that the app’s state is not being maintained properly on Samsung devices.

The app is made with Provider and MVVM architecture. largeHeap is also set to true in manifest.