mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-18 01:49:50 +01:00
refactor: Move logs to about dialog
This commit is contained in:
parent
323fe9ea92
commit
b65a1383ae
@ -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,
|
||||
),
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user