mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 14:08:00 -06:00
feat: Migrations, new saved views interface
This commit is contained in:
@@ -37,9 +37,16 @@ class AddTagPage extends StatelessWidget {
|
||||
.withOpacity(1.0),
|
||||
readOnly: true,
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
FormBuilderField<bool>(
|
||||
name: Tag.isInboxTagKey,
|
||||
title: Text(S.of(context)!.inboxTag),
|
||||
initialValue: false,
|
||||
builder: (field) {
|
||||
return CheckboxListTile(
|
||||
value: field.value,
|
||||
title: Text(S.of(context)!.inboxTag),
|
||||
onChanged: (value) => field.didChange(value),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -38,10 +38,16 @@ class EditTagPage extends StatelessWidget {
|
||||
colorPickerType: ColorPickerType.materialPicker,
|
||||
readOnly: true,
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
initialValue: tag.isInboxTag,
|
||||
FormBuilderField<bool>(
|
||||
name: Tag.isInboxTagKey,
|
||||
title: Text(S.of(context)!.inboxTag),
|
||||
initialValue: tag.isInboxTag,
|
||||
builder: (field) {
|
||||
return CheckboxListTile(
|
||||
value: field.value,
|
||||
title: Text(S.of(context)!.inboxTag),
|
||||
onChanged: (value) => field.didChange(value),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -137,10 +137,16 @@ class _LabelFormState<T extends Label> extends State<LabelForm<T>> {
|
||||
initialValue: widget.initialValue?.match,
|
||||
onChanged: (val) => setState(() => _errors = {}),
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
FormBuilderField<bool>(
|
||||
name: Label.isInsensitiveKey,
|
||||
initialValue: widget.initialValue?.isInsensitive ?? true,
|
||||
title: Text(S.of(context)!.caseIrrelevant),
|
||||
builder: (field) {
|
||||
return CheckboxListTile(
|
||||
value: field.value,
|
||||
title: Text(S.of(context)!.caseIrrelevant),
|
||||
onChanged: (value) => field.didChange(value),
|
||||
);
|
||||
},
|
||||
),
|
||||
...widget.additionalFields,
|
||||
].padded(),
|
||||
|
||||
Reference in New Issue
Block a user