devicetheme 0.0.2 copy "devicetheme: ^0.0.2" to clipboard
devicetheme: ^0.0.2 copied to clipboard

outdated

A new flutter plugin project.

Device Theme #

A Flutter package to read and return the device theme and set app theme.

Usage #

import 'package:devicetheme/devicetheme.dart';

then

This will return the current device theme.

String platformTheme = await Devicetheme.platformTheme;

This will return saved value in SharedPreferences( if SharedPreferences is empty we will save current device theme)

String appTheme = await Devicetheme.appTheme;

This will set SharedPreferences theme value.

await Devicetheme.setAppTheme('light');

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.

1
likes
0
pub points
0%
popularity

Publisher

verified publishereastglint.com

A new flutter plugin project.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on devicetheme