Skip to content

Latest commit

ย 

History

History
83 lines (59 loc) ยท 1.73 KB

File metadata and controls

83 lines (59 loc) ยท 1.73 KB

๐ŸŒ Device Wallpaper Flutter Plugin

English | ็ฎ€ไฝ“ไธญๆ–‡


Pub Version Platform License


๐Ÿ“˜ Project Overview

A Flutter plugin for retrieving device wallpapers on Android, supporting both static and live wallpapers.
The plugin provides an easy-to-use API to access the current wallpaper and convert it into Uint8List PNG bytes.

โœจ Key Features

  • โœ… Get Wallpaper Data (PNG format)
  • โœ… Static Wallpaper Support
  • โœ… Live Wallpaper Support (thumbnail for API 27+)
  • โœ… Android Only
  • โœ… Simple, Minimal API

๐Ÿ› ๏ธ Installation Guide

Requirements

  • Flutter SDK: ^3.3.0
  • Dart SDK: ^3.9.2
  • Android SDK: API 21+

Install

dependencies:
  device_wallpaper_flutter: ^1.0.1
flutter pub get

๐Ÿš€ Usage Instructions

Import:

import 'package:device_wallpaper_flutter/device_wallpaper_flutter.dart';

Get wallpaper:

final Uint8List? wallpaper = await DeviceWallpaperFlutter.getWallpaper();

Full example

(Chinese example above is identical; keep consistency)


๐Ÿ“š API Reference

DeviceWallpaperFlutter.getWallpaper()

  • Returns Future<Uint8List?>
  • Platforms: Android only
  • Behavior:
    • Static wallpaper โ†’ full bitmap
    • Live wallpaper โ†’ thumbnail (API 27+)
    • No wallpaper โ†’ null

๐Ÿค Contribution Guidelines

  • Fork โ†’ Branch โ†’ Commit โ†’ Push โ†’ PR
  • Run flutter analyze before submitting
  • Use clear English commit messages