Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to navigate to another screen in a flutter on tap of the home widget. #242

Open
ashwaniRoshan opened this issue Mar 28, 2024 · 0 comments

Comments

@ashwaniRoshan
Copy link

ashwaniRoshan commented Mar 28, 2024

I'm encountering difficulty in implementing screen navigation within a Flutter app when tapping on a home widget. Despite configuring the widget to respond to taps and trigger navigation to another screen, the expected behavior of navigating to the desired screen is not occurring.

Expectation:
I expected that upon clicking the profile button within the widget, the app would navigate users to the app's profile screen. Additionally, I anticipated being able to pass data along with the navigation request to determine which screen to navigate to.

Outcome:
However, the implemented code only results in opening the app when the profile button is clicked. I haven't found a way to pass any type of data with the navigation request, making it challenging to determine the destination screen for navigation.

`val pendingIntent = HomeWidgetLaunchIntent.getActivity(
context,
MainActivity::class.java
)

setOnClickPendingIntent(R.id.btnProfile, pendingIntent)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant