I'm encountering a problem while implementing navigation within a widget added to the device's home screen using the home_widget package in Flutter. The widget consists of two buttons: a profile button and a settings button.

Expected Behavior: Upon clicking the profile button, users should be navigated to the app's profile screen. Similarly, clicking the settings button should navigate users to the app's settings screen.
Current Issue: Despite implementing the necessary code to handle navigation within the widget using the home_widget package, I'm facing difficulties in achieving the desired navigation behavior. Clicking on the profile or settings button within the widget does not trigger the expected navigation.
Steps Taken:
- Utilized the home_widget package to enable widget creation and management on the home screen.
- Designed the widget to include a profile button.
- Configured the widget to handle navigation upon clicking the profile button using 'HomeWidgetLaunchIntent.getActivity'.
val pendingIntent = HomeWidgetLaunchIntent.getActivity(
context,
MainActivity::class.java
)
setOnClickPendingIntent(R.id.btnProfile, pendingIntent)
I'm seeking assistance in identifying a solution or workaround to pass data along with the navigation request within the home_widget package.