fzwallpaper 1.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 75

Fzwallpaper #

Fzwallpaper is a plugin to apply a wallpaper in android. And its only available for Android.

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

fzwallpaper: <latest_version>

💰 Donations #

This project needs you! If you would like to support this project's further upgradations, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!

Paypal

For All Developers

  • Donate $5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate $10: Wow, I am stunned. Let me take you to the movies.
  • Donate $15: I really appreciate your work, let's grab some lunch!
  • Donate $20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate $25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate $30: I really really want to support this project, great job!
  • Donate $35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate $40: I want to learn more let's connect, Dinner is on me!
  • Donate $45: Many many thanks for the flutter project in dart language.
  • Donate $50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate $60: Let me buy u some Storage Server, about say 100 GB!
  • Donate $70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate $80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate $90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate $100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate $299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate $799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate $1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate $2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate $2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate $3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate $7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

For UK Developers

  • Donate £5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate £10: Wow, I am stunned. Let me take you to the movies.
  • Donate £15: I really appreciate your work, let's grab some lunch!
  • Donate £20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate £25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate £30: I really really want to support this project, great job!
  • Donate £35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate £40: I want to learn more let's connect, Dinner is on me!
  • Donate £45: Many many thanks for the flutter project in dart language.
  • Donate £50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate £60: Let me buy u some Storage Server, about say 100 GB!
  • Donate £70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate £80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate £90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate £100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate £299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate £799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate £1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate £2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate £2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate £3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate £7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!

Developed By #

Parth Aggarwal CEO & Developer of Frazile Inc.

1.0.2 #

  • Wallpaper Plugin to Apply wallpaper on HomeScreen, LockScreen and Both.
  • Minor Bugs Fixed

1.0.1 #

  • Wallpaper Plugin to Apply wallpaper on HomeScreen, LockScreen and Both.
  • Minor Bugs Fixed

1.0.0 #

  • Wallpaper Plugin to Apply wallpaper on HomeScreen, LockScreen and Both.

example/lib/main.dart

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:fzwallpaper/fzwallpaper.dart';

void main() =>
    runApp(MaterialApp(debugShowCheckedModeBanner: false, home: MyApp()));

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String home = "Home Screen", lock = "Lock Screen", both = "Both Screen";
  Stream<String> progressString;
  String res;
  bool downloading = false;
List<String> images = [
    "https://images.unsplash.com/photo-1525943837837-af668e09139d?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjk4MjkzfQ",
    "https://images.unsplash.com/photo-1478465726282-ddb11650c80b?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjk4MjkzfQ",
    "https://images.unsplash.com/photo-1532635248-cdd3d399f56c?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjk4MjkzfQ"
  ];
  var result = "Waiting to set Fzwallpaper";
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
          margin: EdgeInsets.only(top: 20),
          width: MediaQuery.of(context).size.width,
          height: MediaQuery.of(context).size.height,
          child: SingleChildScrollView(
            child: Column(
              children: <Widget>[
                Stack(
                  children: <Widget>[
                    Image.network(
                      images[0],
                      fit: BoxFit.fitWidth,
                    ),
                    Positioned(
                      left: 10,
                      bottom: 0,
                      child: RaisedButton(
                        onPressed: () {
                          progressString =
                              Fzwallpaper.imageDownloadProgress(images[0]);
                          progressString.listen((data) {
                            setState(() {
                              res = data;
                              downloading = true;
                            });
                            print("DataReceived: " + data);
                          }, onDone: () async {
                            home = await Fzwallpaper.homeScreen();
                            setState(() {
                              downloading = false;
                              home = home;
                            });
                            print("Task Done");
                          }, onError: (error) {
                            setState(() {
                              downloading = false;
                            });
                            print("Some Error");
                          });
                        },
                        textColor: Colors.white,
                        padding: const EdgeInsets.all(0.0),
                        child: Center(
                          child: Container(
                            decoration: const BoxDecoration(
                              gradient: LinearGradient(
                                colors: <Color>[
                                  Color(0xFF0D47A1),
                                  Color(0xFF1976D2),
                                  Color(0xFF42A5F5),
                                ],
                              ),
                            ),
                            padding: const EdgeInsets.all(10.0),
                            child: Text(home, style: TextStyle(fontSize: 16)),
                          ),
                        ),
                      ),
                    ),
                    Dialog()
                  ],
                ),
                Stack(
                  children: <Widget>[
                    Image.network(
                      images[1],
                      fit: BoxFit.fitWidth,
                    ),
                    Positioned(
                      left: 10,
                      bottom: 0,
                      child: RaisedButton(
                        onPressed: () {
                          progressString =
                              Fzwallpaper.imageDownloadProgress(images[1]);
                          progressString.listen((data) {
                            setState(() {
                              res = data;
                              downloading = true;
                            });
                            print("DataReceived: " + data);
                          }, onDone: () async {
                            lock = await Fzwallpaper.lockScreen();
                            setState(() {
                              downloading = false;
                              lock = lock;
                            });
                            print("Task Done");
                          }, onError: (error) {
                            setState(() {
                              downloading = false;
                            });
                            print("Some Error");
                          });
                        },
                        textColor: Colors.white,
                        padding: const EdgeInsets.all(0.0),
                        child: Center(
                          child: Container(
                            decoration: const BoxDecoration(
                              gradient: LinearGradient(
                                colors: <Color>[
                                  Color(0xFF0D47A1),
                                  Color(0xFF1976D2),
                                  Color(0xFF42A5F5),
                                ],
                              ),
                            ),
                            padding: const EdgeInsets.all(10.0),
                            child: Text(lock, style: TextStyle(fontSize: 14)),
                          ),
                        ),
                      ),
                    ),
                    Dialog()
                  ],
                ),
                Stack(
                  children: <Widget>[
                    Image.network(
                      images[2],
                      fit: BoxFit.fitWidth,
                    ),
                    Positioned(
                      left: 10,
                      bottom: 0,
                      child: RaisedButton(
                        onPressed: () {
                          progressString =
                              Fzwallpaper.imageDownloadProgress(images[2]);
                          progressString.listen((data) {
                            setState(() {
                              res = data;
                              downloading = true;
                            });
                            print("DataReceived: " + data);
                          }, onDone: () async {
                            both = await Fzwallpaper.bothScreen();
                            setState(() {
                              downloading = false;
                              both = both;
                            });
                            print("Task Done");
                          }, onError: (error) {
                            setState(() {
                              downloading = false;
                            });
                            print("Some Error");
                          });
                        },
                        textColor: Colors.white,
                        padding: const EdgeInsets.all(0.0),
                        child: Center(
                          child: Container(
                            decoration: const BoxDecoration(
                              gradient: LinearGradient(
                                colors: <Color>[
                                  Color(0xFF0D47A1),
                                  Color(0xFF1976D2),
                                  Color(0xFF42A5F5),
                                ],
                              ),
                            ),
                            padding: const EdgeInsets.all(10.0),
                            child: Text(both, style: TextStyle(fontSize: 14)),
                          ),
                        ),
                      ),
                    ),
                    Dialog()
                  ],
                ),
              ],
            ),
          )),
    );
  }

  Widget Dialog() {
    return Positioned(
      top: 200,
      left: 70,
      child: downloading
          ? Container(
              height: 120.0,
              width: 200.0,
              child: Card(
                color: Colors.black,
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    CircularProgressIndicator(),
                    SizedBox(height: 20.0),
                    Text(
                      "Downloading File : $res",
                      style: TextStyle(color: Colors.white),
                    )
                  ],
                ),
              ),
            )
          : Text(""),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fzwallpaper: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fzwallpaper/fzwallpaper.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform android

Because:

  • package:fzwallpaper/fzwallpaper.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_linux/path_provider_linux.dart that declares support for platforms: linux

Package does not support Flutter platform ios

Because:

  • package:fzwallpaper/fzwallpaper.dart that declares support for platforms: android

Package does not support Flutter platform linux

Because:

  • package:fzwallpaper/fzwallpaper.dart that declares support for platforms: android

Package does not support Flutter platform macos

Because:

  • package:fzwallpaper/fzwallpaper.dart that declares support for platforms: android

Package does not support Flutter platform web

Because:

  • package:fzwallpaper/fzwallpaper.dart that declares support for platforms: android

Package does not support Flutter platform windows

Because:

  • package:fzwallpaper/fzwallpaper.dart that declares support for platforms: android

Package not compatible with SDK dart

Because:

  • fzwallpaper that is a package requiring null.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
dio ^3.0.9 3.0.9
flutter 0.0.0
path_provider ^1.6.10 1.6.11
Transitive dependencies
charcode 1.1.3
collection 1.14.12 1.14.13
file 5.2.1
http_parser 3.1.4
intl 0.16.1
meta 1.1.8 1.2.2
path 1.7.0
path_provider_linux 0.0.1+2
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
platform 2.2.1
plugin_platform_interface 1.0.2
process 3.0.13
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
xdg_directories 0.1.0
Dev dependencies
flutter_test