Flutter中的主屏幕小部件 [英] Home Screen widget in Flutter

查看:222
本文介绍了Flutter中的主屏幕小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须构建一个flutter应用程序,该数据需要在主屏幕上显示手机(如果该应用程序处于后台模式).

到目前为止,除

之外,我还没有找到有关主屏幕小部件或如何快速创建应用小部件的任何相关信息.

我们可以在本机(Android/iOS)中构建应用程序小部件..因此,如果您有兴趣,可以对这张票进行投票.

I have to build a flutter app where the data need to be shown on home screen of the phone, if the app is in background mode.

Till now i have not found any relevant information regarding the home screen widget or how to create the app widget in flutter except the one that

we can build app widget in native(Android/iOS). Native widget in android

Do i need to handle app widget from the native code or is there a way to handle app widget in flutter.

解决方案

It's not official supported, but there are some packages, to do the basic stuff:

https://pub.dev/packages/home_widget

Android iOS

There is also a ticket in the Flutter repo: Explore home widgets for iOS 14. So you can upvote this ticket, if you are interested.

这篇关于Flutter中的主屏幕小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆