Skip to content

Commit

Permalink
fix: linux failed import snackbar (#954)
Browse files Browse the repository at this point in the history
Closes #934
  • Loading branch information
Feichtmeier authored Oct 14, 2024
1 parent 9d8063f commit 1ce62b1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/local_audio/view/failed_imports_content.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:watch_it/watch_it.dart';

import '../../extensions/build_context_x.dart';
import '../../common/view/snackbars.dart';
import '../../l10n/l10n.dart';
import '../../settings/settings_model.dart';
Expand All @@ -18,7 +17,6 @@ class FailedImportsContent extends StatelessWidget {

@override
Widget build(BuildContext context) {
final theme = context.theme;
return SizedBox(
height: 400,
width: 400,
Expand All @@ -32,8 +30,7 @@ class FailedImportsContent extends StatelessWidget {
padding: const EdgeInsets.all(10.0),
child: Text(
context.l10n.failedToImport,
style: TextStyle(
color: theme.colorScheme.onInverseSurface,
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
Expand All @@ -49,7 +46,6 @@ class FailedImportsContent extends StatelessWidget {
child: Text(
context.l10n.dontShowAgain,
overflow: TextOverflow.ellipsis,
style: TextStyle(color: theme.colorScheme.onInverseSurface),
),
),
],
Expand All @@ -59,10 +55,7 @@ class FailedImportsContent extends StatelessWidget {
itemCount: failedImports.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(
failedImports[index],
style: TextStyle(color: theme.colorScheme.onInverseSurface),
),
title: Text(failedImports[index]),
);
},
),
Expand Down

0 comments on commit 1ce62b1

Please sign in to comment.