dyna

Creator: coderz1093

Last updated:

0 purchases

dyna Image
dyna Images

Languages

Categories

Add to Cart

Description:

dyna

Dyna #
Dyna wraps your app to provide ColorSchemes based on user wallpaper (currenly only on Android 12+) or given source color. You can plug these schemes right into your app and update your app's theme in real-time.
https://user-images.githubusercontent.com/2550945/147409734-d8417bef-8428-4109-a199-79ef12966aa6.mp4
Dyna(
builder: (context, ColorScheme light, ColorScheme dark) {
return MaterialApp(
title: 'Dyna Demo',
theme: AppTheme.make(light),
darkTheme: AppTheme.make(dark),
);
},
);
copied to clipboard
ColorPicker(
pickerColor: context.dyna.color ?? Colors.grey,
onColorChanged: (color) {
context.dyna.update(color);
},
),
copied to clipboard
Priority #

Dyna will use context.dyna.color to generate the ColorSchemes. If this value is null (default), Dyna will try to get a ColorScheme from the underlying platform (e.g. wallpaper based on Android). If the platform is not supported, Dyna will then use the given default color (to the Dyna widget) to generate the ColorSchemes. If none is provided, Dyna will use the package default color (kDynaDefaultColor).

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.