mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 04:12:30 -06:00
feat: Fix hive errors, change provider hierarchy for blocs, translate strings
This commit is contained in:
@@ -15,12 +15,8 @@ class ApplicationSettingsPage extends StatelessWidget {
|
||||
actions: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Tooltip(
|
||||
triggerMode: TooltipTriggerMode.tap,
|
||||
message: "These settings apply to all accounts", //TODO: INTL
|
||||
child: Icon(Icons.info_outline),
|
||||
),
|
||||
),
|
||||
child: const Icon(Icons.public),
|
||||
)
|
||||
],
|
||||
),
|
||||
body: ListView(
|
||||
|
||||
@@ -13,12 +13,8 @@ class SecuritySettingsPage extends StatelessWidget {
|
||||
actions: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Tooltip(
|
||||
triggerMode: TooltipTriggerMode.tap,
|
||||
message: "These settings apply to the current user only", //TODO: INTL
|
||||
child: Icon(Icons.info_outline),
|
||||
),
|
||||
),
|
||||
child: const Icon(Icons.person_outline),
|
||||
)
|
||||
],
|
||||
),
|
||||
body: ListView(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:paperless_mobile/generated/l10n/app_localizations.dart';
|
||||
|
||||
class SwitchingAccountsPage extends StatelessWidget {
|
||||
const SwitchingAccountsPage({super.key});
|
||||
@@ -6,17 +7,19 @@ class SwitchingAccountsPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
return false;
|
||||
},
|
||||
onWillPop: () async => false,
|
||||
child: Material(
|
||||
child: Center(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CircularProgressIndicator(),
|
||||
Text("Switching accounts. Please wait..."),
|
||||
const CircularProgressIndicator(),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
S.of(context)!.switchingAccountsPleaseWait,
|
||||
style: Theme.of(context).textTheme.labelLarge,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user