add themeImage setting and use
This commit is contained in:
parent
111bceab5d
commit
238cddd7d3
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "cy",
|
"@@locale": "cy",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "da",
|
"@@locale": "da",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "de",
|
"@@locale": "de",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "el",
|
"@@locale": "el",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "en",
|
"@@locale": "en",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "es",
|
"@@locale": "es",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"deleteServerConfirmBtn": "¿Realmente desea borrar el servidor?",
|
"deleteServerConfirmBtn": "¿Realmente desea borrar el servidor?",
|
||||||
"defaultScalingText": "Factor de escala del texto",
|
"defaultScalingText": "Factor de escala del texto",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "fr",
|
"@@locale": "fr",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "it",
|
"@@locale": "it",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "ja",
|
"@@locale": "ja",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "ko",
|
"@@locale": "ko",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "lb",
|
"@@locale": "lb",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "nl",
|
"@@locale": "nl",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "no",
|
"@@locale": "no",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "pl",
|
"@@locale": "pl",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "pt",
|
"@@locale": "pt",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "pt_BR",
|
"@@locale": "pt_BR",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "ro",
|
"@@locale": "ro",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "ru",
|
"@@locale": "ru",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "sk",
|
"@@locale": "sk",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "sv",
|
"@@locale": "sv",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "sw",
|
"@@locale": "sw",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "tr",
|
"@@locale": "tr",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "uk",
|
"@@locale": "uk",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"@@locale": "uz",
|
"@@locale": "uz",
|
||||||
"@@last_modified": "2024-01-04T10:56:20+01:00",
|
"@@last_modified": "2024-01-10T06:54:15+01:00",
|
||||||
|
"settingsThemeImagesDescription": "Enable display of images from themes",
|
||||||
|
"settingsThemeImages": "Theme Images",
|
||||||
"settingsGroupAbout": "About",
|
"settingsGroupAbout": "About",
|
||||||
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
"localeUzbek": "Uzbek \/ Oʻzbekcha",
|
||||||
"profileOfflineAtStart": "Appear Offline at Startup",
|
"profileOfflineAtStart": "Appear Offline at Startup",
|
||||||
|
|
|
@ -43,6 +43,7 @@ class Settings extends ChangeNotifier {
|
||||||
Locale locale;
|
Locale locale;
|
||||||
late PackageInfo packageInfo;
|
late PackageInfo packageInfo;
|
||||||
OpaqueThemeType theme;
|
OpaqueThemeType theme;
|
||||||
|
bool _themeImages = false;
|
||||||
|
|
||||||
// explicitly set experiments to false until told otherwise...
|
// explicitly set experiments to false until told otherwise...
|
||||||
bool experimentsEnabled = false;
|
bool experimentsEnabled = false;
|
||||||
|
@ -92,6 +93,12 @@ class Settings extends ChangeNotifier {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool get themeImages => _themeImages;
|
||||||
|
set themeImages(bool newVal) {
|
||||||
|
_themeImages = newVal;
|
||||||
|
notifyListeners();
|
||||||
|
}
|
||||||
|
|
||||||
/// Get access to the current theme.
|
/// Get access to the current theme.
|
||||||
OpaqueThemeType current() {
|
OpaqueThemeType current() {
|
||||||
return theme;
|
return theme;
|
||||||
|
@ -127,6 +134,7 @@ class Settings extends ChangeNotifier {
|
||||||
handleUpdate(dynamic settings) {
|
handleUpdate(dynamic settings) {
|
||||||
// Set Theme and notify listeners
|
// Set Theme and notify listeners
|
||||||
this.setTheme(settings["Theme"], settings["ThemeMode"] ?? mode_dark);
|
this.setTheme(settings["Theme"], settings["ThemeMode"] ?? mode_dark);
|
||||||
|
_themeImages = settings["ThemeImages"] ?? false;
|
||||||
|
|
||||||
// Set Locale and notify listeners
|
// Set Locale and notify listeners
|
||||||
switchLocaleByCode(settings["Locale"]);
|
switchLocaleByCode(settings["Locale"]);
|
||||||
|
@ -469,6 +477,7 @@ class Settings extends ChangeNotifier {
|
||||||
"Locale": this.locale.toString(),
|
"Locale": this.locale.toString(),
|
||||||
"Theme": theme.theme,
|
"Theme": theme.theme,
|
||||||
"ThemeMode": theme.mode,
|
"ThemeMode": theme.mode,
|
||||||
|
"ThemeImages": _themeImages,
|
||||||
"PreviousPid": -1,
|
"PreviousPid": -1,
|
||||||
"BlockUnknownConnections": blockUnknownConnections,
|
"BlockUnknownConnections": blockUnknownConnections,
|
||||||
"NotificationPolicy": _notificationPolicy.toString(),
|
"NotificationPolicy": _notificationPolicy.toString(),
|
||||||
|
|
|
@ -144,6 +144,24 @@ class _GlobalSettingsAppearanceViewState extends State<GlobalSettingsAppearanceV
|
||||||
.current()
|
.current()
|
||||||
.mainTextColor),
|
.mainTextColor),
|
||||||
),
|
),
|
||||||
|
SwitchListTile(
|
||||||
|
title: Text(
|
||||||
|
AppLocalizations.of(context)!.settingsThemeImages),
|
||||||
|
subtitle: Text(AppLocalizations.of(context)!
|
||||||
|
.settingsThemeImagesDescription),
|
||||||
|
value: settings.themeImages,
|
||||||
|
onChanged: (bool value) {
|
||||||
|
settings.themeImages = value;// Save Settings...
|
||||||
|
saveSettings(context);
|
||||||
|
},
|
||||||
|
activeTrackColor: settings.theme.defaultButtonColor,
|
||||||
|
inactiveTrackColor:
|
||||||
|
settings.theme.defaultButtonDisabledColor,
|
||||||
|
secondary: Icon(Icons.image,
|
||||||
|
color: settings
|
||||||
|
.current()
|
||||||
|
.mainTextColor),
|
||||||
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(AppLocalizations.of(context)!
|
title: Text(AppLocalizations.of(context)!
|
||||||
.settingUIColumnPortrait),
|
.settingUIColumnPortrait),
|
||||||
|
|
|
@ -117,10 +117,10 @@ class _MessageListState extends State<MessageList> {
|
||||||
// Only show broken heart is the contact is offline...
|
// Only show broken heart is the contact is offline...
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: Provider.of<ContactInfoState>(outerContext).isOnline()
|
image: Provider.of<ContactInfoState>(outerContext).isOnline()
|
||||||
? (Provider.of<Settings>(context).theme.chatImage != null)
|
? (Provider.of<Settings>(context).themeImages && Provider.of<Settings>(context).theme.chatImage != null)
|
||||||
? DecorationImage(
|
? DecorationImage(
|
||||||
repeat: ImageRepeat.repeat,
|
repeat: ImageRepeat.repeat,
|
||||||
image: Provider.of<Settings>(context).theme.loadImage(Provider.of<Settings>(context).theme.chatImage, context: context),
|
image: Provider.of<Settings>(context, listen: false).theme.loadImage(Provider.of<Settings>(context, listen: false).theme.chatImage, context: context),
|
||||||
colorFilter: ColorFilter.mode(Provider.of<Settings>(context).theme.hilightElementColor.withOpacity(0.15), BlendMode.srcIn))
|
colorFilter: ColorFilter.mode(Provider.of<Settings>(context).theme.hilightElementColor.withOpacity(0.15), BlendMode.srcIn))
|
||||||
: null
|
: null
|
||||||
: DecorationImage(
|
: DecorationImage(
|
||||||
|
|
Loading…
Reference in New Issue