Skip to content

AB-060/flutter-homescreen-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Home Screen Widget

A Flutter project demonstrating how to create home screen widgets for Android, based on the official Google codelab.

Google Developer Badge Flutter Dart License: MIT

Overview

The app displays a list of news articles. A home screen widget shows the title, description, and a chart of the selected article.

Features

  • News article list
  • Android home screen widget
  • Widget update from the Flutter app
  • Display a Flutter chart as an image in the widget
  • Data sharing via SharedPreferences (home_widget package)

Tech Stack

Technology Usage
Flutter Main framework
Dart Programming language
Kotlin Native Android code
home_widget ^0.9.0 Flutter and Widget communication
shared_preferences ^2.5.4 Local storage
Genymotion Android emulator

Installation

Prerequisites

  • Flutter SDK installed
  • Genymotion or an Android device
  • VSCode or Android Studio

Steps

git clone https://github.com/AB-060/flutter-homescreen-widget.git
cd flutter-homescreen-widget
flutter pub get
flutter run

Completed Codelab Steps

Step Description Status
3 Create a basic home screen widget
4 Send Flutter data to the widget
6 Display a Flutter widget as an image

How to Test the Widget

  1. Run the app with flutter run
  2. On Genymotion or Android Studio, long press the home screen
  3. Select Widgets and search for homescreen_widgets
  4. Add the widget to the home screen
  5. Open an article in the app and tap Update Homescreen
  6. The widget displays the title, description, and chart!

Google Developer Badge

This project was completed as part of the official Google codelab: Adding a Home Screen widget to your Flutter App

Learning badge earned on April 3, 2026

Resources

Author

Abdallahi

About

Flutter home screen widget app built with home_widget package - Google Codelab

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors