Skip to content

A Flutter app with simple homescreen widget(For Android) made using native(Kotlin) code.

Notifications You must be signed in to change notification settings

nandam2003/HomeScreen_widget_Flutter

Repository files navigation

widget_app

A New Flutter project.

Getting Started

This project adds a homescreen widget to Flutter app using the native code and method channels.

You can clone the repo from here.

Download APK.

I have coded the whole widget in kotlin and used sharedprefs for sharing data between app and the widget.

I used Method channels for communicate with the native kotlin code in the app.

The app comes with a simple widget which will show the count of no. of times the button is pressed.

And also when pressed on the widget will open the app even if it is not running in the background.

Customize

You can change the appereance of the widget by changing the xml file present at HomeScreen_widget_Flutter/android/app/src/main/res/layout/app_widget.xml

And the size of the widget can altered at HomeScreen_widget_Flutter/android/app/src/main/res/xml/app_widget_info.xml

ScreenShots

home screen widget widget_preview

About

A Flutter app with simple homescreen widget(For Android) made using native(Kotlin) code.

Resources

Stars

Watchers

Forks

Packages

No packages published