Fix lint warnings.

This commit is contained in:
Dain Nilsson 2022-08-31 09:26:15 +02:00
parent 7d01daebdd
commit e50fefe7e8
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
2 changed files with 10 additions and 10 deletions

View File

@ -1,11 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:yubico_authenticator/app/state.dart';
import 'package:yubico_authenticator/cancellation_exception.dart';
import '../../app/message.dart';
import '../../app/shortcuts.dart';
import '../../app/state.dart';
import '../../cancellation_exception.dart';
import '../../widgets/menu_list_tile.dart';
import '../models.dart';
import '../state.dart';
@ -81,7 +80,8 @@ class AccountView extends ConsumerWidget with AccountMixin {
ref,
)
: getCode(ref);
await withContext((context) async => copyToClipboard(context, code));
await withContext(
(context) async => copyToClipboard(context, code));
},
);
} on CancellationException catch (_) {

View File

@ -41,12 +41,12 @@ class AppTheme {
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
onPrimary: Colors.white,
primary: primaryBlue,
foregroundColor: Colors.white,
backgroundColor: primaryBlue,
)),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
primary: Colors.grey.shade800,
backgroundColor: Colors.grey.shade800,
side: BorderSide(width: 1, color: Colors.grey.shade400),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
@ -127,12 +127,12 @@ class AppTheme {
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
onPrimary: Colors.black,
primary: primaryGreen,
foregroundColor: Colors.black,
backgroundColor: primaryGreen,
)),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
primary: Colors.white70,
foregroundColor: Colors.white70,
side: const BorderSide(width: 1, color: Colors.white12),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
@ -193,7 +193,7 @@ class AppTheme {
static ButtonStyle primaryOutlinedButtonStyle(BuildContext context) =>
OutlinedButton.styleFrom(
primary: Theme.of(context).colorScheme.onPrimary,
foregroundColor: Theme.of(context).colorScheme.onPrimary,
backgroundColor: Theme.of(context).colorScheme.primary,
side:
BorderSide(width: 1, color: Theme.of(context).colorScheme.primary),