Updated onboarding, reformatted files, improved referenced documents view, updated error handling

This commit is contained in:
Anton Stubenbord
2022-11-03 22:15:36 +01:00
parent 2f2312d5f3
commit 40133b6e0e
117 changed files with 1788 additions and 1021 deletions

View File

@@ -16,7 +16,8 @@ class BiometricAuthenticationIntroSlide extends StatefulWidget {
_BiometricAuthenticationIntroSlideState();
}
class _BiometricAuthenticationIntroSlideState extends State<BiometricAuthenticationIntroSlide> {
class _BiometricAuthenticationIntroSlideState
extends State<BiometricAuthenticationIntroSlide> {
@override
Widget build(BuildContext context) {
//TODO: INTL
@@ -58,9 +59,12 @@ class _BiometricAuthenticationIntroSlideState extends State<BiometricAuthenticat
return ElevatedButton(
child: Text("Enable"),
onPressed: () {
final settings = BlocProvider.of<ApplicationSettingsCubit>(context).state;
final settings =
BlocProvider.of<ApplicationSettingsCubit>(context)
.state;
getIt<AuthenticationService>()
.authenticateLocalUser("Please authenticate to secure Paperless Mobile")
.authenticateLocalUser(
"Please authenticate to secure Paperless Mobile")
.then((isEnabled) {
if (!isEnabled) {
showSnackBar(context,

View File

@@ -1,25 +1,26 @@
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
class WelcomeIntroSlide extends StatelessWidget {
const WelcomeIntroSlide({super.key});
@override
Widget build(BuildContext context) {
//TODO: INTL
return Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"Welcome to Paperless Mobile!",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge,
textAlign: TextAlign.center,
),
Text(
"Manage and add your documents on the go!",
textAlign: TextAlign.center,
Padding(
padding: const EdgeInsets.all(16),
child: Text(
"Manage, share and create documents on the go without any compromises!",
textAlign: TextAlign.center,
style: TextStyle(color: Theme.of(context).hintColor),
),
),
Align(child: Image.asset("assets/logos/paperless_logo_green.png")),
],
);
}