V
V
VarIzo2020-12-13 13:43:42
Android
VarIzo, 2020-12-13 13:43:42

How to create home screen widget with flutter?

Good day.
I am just starting to learn android development, I have never faced such tasks before.
The problem of Google in this case comes down to the fact that all widgets are in flutter.
What needs to be added / changed in a simple flutter project (one button and one event on it) so that it would be possible to display a widget on the main screen on the phone that would perform the same functionality as the button inside the application?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Morozov, 2020-12-22
@fanofmarta

Look in this repository: https://github.com/hemanthrajv/flutter_home_screen...
I googled it myself but didn't find anything.
Today I found it.
Answer: using only flutter - no way to create.
Using Java - it is possible.
An example code is in the repository, link above. If you need to change or modify - read the documentation, I think you can handle it, and it won't be superfluous.
In any case, I wish you good luck, unsubscribe when it turns out.

V
virtusha, 2021-02-16
@virtusha

Here's another one: https://pub.dev/packages/home_widget
I haven't tried it myself yet. Please let me know, did you get something?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question