Android lock widget in Flutter?

Cut from / r / dartlang on Reddit:

I saw a Flotter / Dart Google IO presentation and decided I wanted to make a silly stupid Android app. It was very easy to get started, but I couldn't find anywhere how to make a simple lock widget.

Basically, I just want the app to periodically poll the JSON API and display some data on the android lock screen. Is this possible with Flutter now?

Disclaimer: I'm a python / golang developer for infrastructure / backend who never wrote anything about a mobile app.

+3


source to share


1 answer


App widget layouts are based on RemoteViews, which do not support many kinds of widget widgets. Since it FlutterView

extends SurfaceView

to access the low-level graphics API, it cannot be embedded in an application widget.



In quote CommonsWare: "At best you can try to write your own home screen implementation that does this." But this is a much larger project than you probably had in mind.

+3


source







All Articles