Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0249e1b

Browse filesBrowse files
Fix rebase artifacts
1 parent 2b07aa5 commit 0249e1b
Copy full SHA for 0249e1b

File tree

Expand file treeCollapse file tree

2 files changed

+12
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-2
lines changed

‎lib/settings/settings_editors.dart

Copy file name to clipboardExpand all lines: lib/settings/settings_editors.dart
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class SettingsEditorsScreenState extends State<SettingsEditorsScreen> {
8484
),
8585
ProOverlay(
8686
child: SwitchListTile(
87-
title: Text(context.loc.featureSingleJournalEntry),
87+
title: Text(context.loc.singleJournalEntry),
8888
value: settings.journalEditorSingleNote,
8989
onChanged: (bool newVal) {
9090
settings.journalEditorSingleNote = newVal;

‎lib/settings/widgets/settings_list_preference.dart

Copy file name to clipboardExpand all lines: lib/settings/widgets/settings_list_preference.dart
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class ListPreference extends StatelessWidget {
4242
title: title,
4343
options: options,
4444
currentOption: currentOption,
45+
actionsBuilder: actionsBuilder,
46+
optionLabelBuilder: optionLabelBuilder,
4547
),
4648
);
4749

@@ -58,12 +60,18 @@ class ListPreferenceSelectionDialog extends StatelessWidget {
5860
final List<String> options;
5961
final String? currentOption;
6062
final String title;
63+
final List<Widget> Function(BuildContext context, String? currentOption)?
64+
actionsBuilder;
65+
final Widget Function(String? currentOption, String option)?
66+
optionLabelBuilder;
6167

6268
const ListPreferenceSelectionDialog({
6369
super.key,
6470
required this.options,
6571
this.currentOption,
6672
required this.title,
73+
this.actionsBuilder,
74+
this.optionLabelBuilder,
6775
});
6876

6977
@override
@@ -80,7 +88,9 @@ class ListPreferenceSelectionDialog extends StatelessWidget {
8088
children: [
8189
for (var o in options)
8290
_LabeledRadio(
83-
label: o,
91+
label: optionLabelBuilder != null
92+
? optionLabelBuilder!(currentOption, o)
93+
: Text(o),
8494
value: o,
8595
groupValue: currentOption,
8696
onChanged: (String? val) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.