mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-27 04:03:16 +03:00
Fix lint warnings.
This commit is contained in:
parent
7d01daebdd
commit
e50fefe7e8
@ -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 (_) {
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user