Can we create Android widgets in awe?

The fact that Flutter makes heavy use of the word widget makes it difficult to find documentation on this topic. On Android (I believe this is not possible in iOS), we can add widgets on our home panel, allowing you to see information related to the application, or run one-time actions without having to open the corresponding application.

Is it possible to build such "widgets" in Dart and Flutter? Or should I do this in java and somehow connect it using my flutter?

Can you share an example or resource containing one?

EDIT: I don't have any Android development experience, but it seems like using a stretch canvas can do the trick. I could find some canvas flat code , but I still cannot connect the dots.

EDIT 2: From this Github question , it looks like the widget entries on the Android home phone in flutter are not, because Flutter has its own rendering engine. I am keen on learning kotlin to do this, but if someone knew of good tutorials to help me with this, that would be very helpful.

+4
source share
1 answer

Like the OP mentioned in editing, this is currently not possible because Flutter uses its own rendering engine.

, ; , . Flutter , , , , !

- , , Java. Kotlin, . , , ​​android; Android Java, , Kotlin (The Kotlin runtime adds about 7,000 methods and ~1MB to your debug APK kotlin on android FAQ), , , , Kotlin/Java, , (, Java Kotlin, , , ).

, java/kotlin, , flutter .

+1

Source: https://habr.com/ru/post/1689878/


All Articles