devicetheme

Creator: coderz1093

Last updated:

0 purchases

devicetheme Image
devicetheme Images

Languages

Categories

Add to Cart

Description:

devicetheme

Device Theme #
A Flutter package to read and return the device theme and set app theme.
Usage #
import 'package:devicetheme/devicetheme.dart';
copied to clipboard
then
This will return the current device theme.
String platformTheme = await Devicetheme.platformTheme;
copied to clipboard
This will return saved value in SharedPreferences( if SharedPreferences is empty we will save current device theme)
String appTheme = await Devicetheme.appTheme;
copied to clipboard
This will set SharedPreferences theme value.
await Devicetheme.setAppTheme('light');
copied to clipboard
Getting Started #
This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.