refactor: Move logs to about dialog

This commit is contained in:
Christian Pauly 2021-06-26 10:43:07 +02:00
parent 323fe9ea92
commit b65a1383ae
2 changed files with 11 additions and 1 deletions

View File

@ -199,6 +199,11 @@ class AppRoutes {
widget: Login(),
buildTransition: _fadeTransition,
),
VWidget(
path: 'logs',
widget: LogViewer(),
buildTransition: _dynamicTransition,
),
],
),
];
@ -284,7 +289,7 @@ class AppRoutes {
],
),
VWidget(
path: '/logs',
path: 'logs',
widget: LogViewer(),
buildTransition: _dynamicTransition,
),

View File

@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:vrouter/vrouter.dart';
import '../config/app_config.dart';
@ -54,6 +55,10 @@ abstract class PlatformInfos {
onPressed: () => launch(AppConfig.emojiFontUrl),
child: Text(AppConfig.emojiFontName),
),
OutlinedButton(
onPressed: () => VRouter.of(context).push('logs'),
child: Text('Logs'),
),
SentrySwitchListTile(label: L10n.of(context).sendBugReports),
],
applicationIcon: Image.asset('assets/logo.png', width: 64, height: 64),