shared_theme 0.1.2 copy "shared_theme: ^0.1.2" to clipboard
shared_theme: ^0.1.2 copied to clipboard

discontinued

Easily share a theme or set of themes between Flutter and the web.

Shared Theme #

Easily share a theme between Flutter and the web.

Synopsis #

A Theme is a ColorSet, FontSet, and an ElementSet, which are abstract containers for defining properties such as border, padding, etc.

Themes are typically combined into a single ThemeSet per application. ThemeSet adds support for bundled FontFaces, and ThemeSet.toString() returns an SCSS string that fully represents it.

In Flutter, a Theme is converted into Flutter's ThemeData by using the shared_theme_flutter package's themeData() function.

Example #

There is a complete example included, and in particular, see its ThemeSet definition.

Screenshots #

Mobile light Mobile dark
mobile-light mobile-dark
Web light Web dark
web-light web-dark
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Easily share a theme or set of themes between Flutter and the web.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on shared_theme