made 'View logs' visible in light theme in the 'Report bug' dialog box

This commit is contained in:
ashilkn 2022-06-07 13:14:45 +05:30
parent 17e5966404
commit ae5ab5bfd5

View file

@ -9,6 +9,7 @@ import 'package:flutter_email_sender/flutter_email_sender.dart';
import 'package:logging/logging.dart';
import 'package:path_provider/path_provider.dart';
import 'package:photos/core/error-reporting/super_logging.dart';
import 'package:photos/ente_theme_data.dart';
import 'package:photos/ui/common/dialogs.dart';
import 'package:photos/ui/log_file_viewer.dart';
import 'package:photos/utils/dialog_util.dart';
@ -35,19 +36,21 @@ Future<void> sendLogs(
children: [
Icon(
Icons.feed_outlined,
color: Colors.white.withOpacity(0.85),
color: Theme.of(context).iconTheme.color.withOpacity(0.85),
),
Padding(padding: EdgeInsets.all(4)),
Text(
"View logs",
style: TextStyle(
color: Colors.white.withOpacity(0.85),
),
fontFamily: "Inter",
color: Theme.of(context)
.colorScheme
.defaultTextColor
.withOpacity(0.85)),
),
],
),
onPressed: () async {
// routeToPage(context, LogFileViewer(SuperLogging.logFile));
showDialog(
context: context,
builder: (BuildContext context) {