Added translations, fixed inbox, minor updates to pages

This commit is contained in:
Anton Stubenbord
2023-02-03 00:27:14 +01:00
parent ba5a1fcbc7
commit 3f305ce1d6
24 changed files with 982 additions and 177 deletions

View File

@@ -11,7 +11,7 @@ import 'package:paperless_mobile/core/repository/state/impl/document_type_reposi
import 'package:paperless_mobile/core/repository/state/impl/storage_path_repository_state.dart';
import 'package:paperless_mobile/core/repository/state/impl/tag_repository_state.dart';
import 'package:paperless_mobile/core/widgets/hint_card.dart';
import 'package:paperless_mobile/core/widgets/paperless_logo.dart';
import 'package:paperless_mobile/extensions/flutter_extensions.dart';
import 'package:paperless_mobile/features/login/bloc/authentication_cubit.dart';
import 'package:paperless_mobile/features/settings/bloc/application_settings_cubit.dart';
import 'package:paperless_mobile/generated/l10n.dart';
@@ -25,8 +25,12 @@ class AccountSettingsDialog extends StatelessWidget {
return AlertDialog(
scrollable: true,
contentPadding: EdgeInsets.zero,
icon: const PaperlessLogo.green(),
title: const Text(" Your Accounts"),
title: Row(
children: [
const CloseButton(),
Text(S.of(context).accountSettingsTitle),
],
),
content: BlocBuilder<PaperlessServerInformationCubit,
PaperlessServerInformationState>(
builder: (context, state) {
@@ -55,28 +59,27 @@ class AccountSettingsDialog extends StatelessWidget {
onTap: () {},
),
Divider(),
OutlinedButton(
FilledButton(
style: ButtonStyle(
backgroundColor: MaterialStatePropertyAll(
Theme.of(context).colorScheme.error,
),
),
child: Text(
S.of(context).appDrawerLogoutLabel,
style: TextStyle(
color: Theme.of(context).colorScheme.error,
color: Theme.of(context).colorScheme.onError,
),
),
onPressed: () async {
await _onLogout(context);
Navigator.of(context).maybePop();
},
),
).padded(16),
],
);
},
),
actions: [
TextButton(
child: Text(S.of(context).genericActionCloseLabel),
onPressed: () => Navigator.pop(context),
),
],
);
}

View File

@@ -47,11 +47,11 @@ class _LanguageSelectionSettingState extends State<LanguageSelectionSetting> {
),
RadioOption(
value: 'cs',
label: _languageOptions['cs']! + " *",
label: _languageOptions['cs']! + "*",
),
RadioOption(
value: 'tr',
label: _languageOptions['tr']! + " *",
label: _languageOptions['tr']! + "*",
)
],
initialValue: context