wip image previews
This commit is contained in:
parent
fc488bdb2e
commit
51fae2e7ef
|
@ -231,8 +231,8 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
|
||||||
visible: settings.isExperimentEnabled(FileSharingExperiment),
|
visible: settings.isExperimentEnabled(FileSharingExperiment),
|
||||||
child: Column(children:[
|
child: Column(children:[
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
title: Text("Image Previews and Profile Pics", style: TextStyle(color: settings.current().mainTextColor())),
|
title: Text(AppLocalizations.of(context)!.settingImagePreviews, style: TextStyle(color: settings.current().mainTextColor())),
|
||||||
subtitle: Text("Images"),
|
subtitle: Text(AppLocalizations.of(context)!.settingImagePreviewsDescription),
|
||||||
value: settings.isExperimentEnabled(ImagePreviewsExperiment),
|
value: settings.isExperimentEnabled(ImagePreviewsExperiment),
|
||||||
onChanged: (bool value) {
|
onChanged: (bool value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
@ -248,9 +248,9 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
|
||||||
secondary: Icon(Icons.attach_file, color: settings.current().mainTextColor()),
|
secondary: Icon(Icons.attach_file, color: settings.current().mainTextColor()),
|
||||||
),
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: settings.isExperimentEnabled(ImagePreviewsExperiment),
|
visible: settings.isExperimentEnabled(ImagePreviewsExperiment) && !Platform.isAndroid,
|
||||||
child: CwtchFolderPicker(
|
child: CwtchFolderPicker(
|
||||||
label:"Download folder",//todo:l18n
|
label: AppLocalizations.of(context)!.settingDownloadFolder,
|
||||||
initialValue: settings.downloadPath,
|
initialValue: settings.downloadPath,
|
||||||
onSave: (newVal) {
|
onSave: (newVal) {
|
||||||
settings.downloadPath = newVal;
|
settings.downloadPath = newVal;
|
||||||
|
|
Loading…
Reference in New Issue