简体   繁体   English

是否可以使用支持小部件的 flutter 制作 android 启动器?

[英]Is it possible to make an android launcher using flutter with widgets support?

I want to create a custom home launcher for android.我想为 android 创建一个自定义主页启动器。 I'm wondering if I could do that with flutter.我想知道我是否可以用 flutter 做到这一点。 Are there any support regarding that?对此有任何支持吗? (Complete with wallpaper, widget, etc.) (配有壁纸、小部件等)

Yes of course you can make it with flutter.是的,当然您可以使用 flutter 来实现。

You need to edit AndroidManifest.xml file under <intent-filter> section:您需要在<intent-filter>部分下编辑AndroidManifest.xml文件:

<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />

that to ask the end user to use your Launcher always or just once.要求最终用户始终或仅使用一次您的启动器。 It is that easy !就是这么容易!

See this link Custome Android Launcher for more information.有关详细信息,请参阅此链接Custome Android Launcher

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM