mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
Change breakpoints for pinned OATH accounts
This commit is contained in:
parent
62729c2f68
commit
52903051f1
@ -26,7 +26,6 @@ import '../../app/shortcuts.dart';
|
||||
import '../../app/state.dart';
|
||||
import '../../core/state.dart';
|
||||
import '../../widgets/circle_timer.dart';
|
||||
import '../../widgets/custom_icons.dart';
|
||||
import '../features.dart' as features;
|
||||
import '../keys.dart' as keys;
|
||||
import '../models.dart';
|
||||
@ -90,7 +89,10 @@ class AccountHelper {
|
||||
ActionItem(
|
||||
key: keys.togglePinAction,
|
||||
feature: features.accountsPin,
|
||||
icon: pinned ? pushPinStrokeIcon : const Icon(Symbols.push_pin),
|
||||
icon: Icon(
|
||||
Symbols.push_pin,
|
||||
fill: pinned ? 1 : 0,
|
||||
),
|
||||
title: pinned ? l10n.s_unpin_account : l10n.s_pin_account,
|
||||
subtitle: l10n.l_pin_account_desc,
|
||||
intent: TogglePinIntent(credential),
|
||||
|
@ -34,7 +34,7 @@ class AccountList extends ConsumerWidget {
|
||||
builder: (context, constraints) {
|
||||
final width = constraints.maxWidth;
|
||||
int itemsPerRow = 1;
|
||||
if (width <= 500) {
|
||||
if (width <= 420) {
|
||||
// single column
|
||||
itemsPerRow = 1;
|
||||
} else if (width <= 620) {
|
||||
|
Loading…
Reference in New Issue
Block a user