Flutter Flustered - Android Home Screen Widget Setup
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- This video shows how to quickly setup an Android Home Screen Widget to a new Flutter Project. We also show how to add the method of Launching your Flutter App when clicking on the Home Screen Widget, and how to pass a simple String data from your Flutter App to your Home Screen Widget. We will be using the home_widget (v0.5.0) package for this project.
The versions used in this video are:
• Android Studio: Android Studio Jellyfish | 2023.3.1 (May 2024)
• Flutter: 3.19.6 • channel stable (April 2024)
• Kotlin: 1.9.23
• Gradle Plugin: 8.4.0
• Gradle: gradle-8.6-all.zip
• home_widget package: 0.5.0
0:00 Summary
0:33 Quick Initial Setup
5:25 Click to Launch
9:44 Pass Data from App to Widget
This guide is so AWESOME! Thank you for this buddy!
This is so impressive
You know how to teach
You should explore more on that talent.
This is very impressive.
How can I make the widget set on the home screen from my app though?
I don't want the use setting it up like that
Please explore this talent
This is good content
You could have a look at Request Pin Widget function (pub.dev/packages/home_widget#request-pin-widget).
I have not tried this yet, and this is very dependent on the device the user is using. So I wouldn't rely on this fully.
2nd question
I can't see widget when I use app>new>
I can't see many of the options
Normally I don't use android studio for flutter or anything
What do u Suggest I do
If you're in the Flutter Project window, it won't display many of the Android-only functions. You'll need to open the android module as a separate window to have the option to add the App Widget