imReker / FlutterHomeWidget

Flutter Home Widget app demonstrates how to create a home screen widget rendered by Flutter.
BSD 3-Clause "New" or "Revised" License
104 stars 17 forks source link

UI Widget not showing current 'time' #2

Closed toshi0383 closed 3 years ago

toshi0383 commented 3 years ago

Any ideas? I'm using Pixel 3a (API R) emulator. Screenshot_1610359747

imReker commented 3 years ago

Yes because the flutter code of UI widget does not show time :)

toshi0383 commented 3 years ago

Well, it does mate?

スクリーンショット 2021-01-11 22 27 29

If I change the initial value of String time, it shows up. Problem is, it's not updated at all?

imReker commented 3 years ago

You need update widget from Android side manually. Because the widget is not a normal Flutter app. Android init a new Flutter engine, engine run widget Flutter app, a screenshot is taken, Flutter app terminated, screenshot convert to Bitmap and send to Android widget system.