mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +03:00
Change position of toggle sidebar icon
This commit is contained in:
parent
3b8e4571b6
commit
f84e24b60a
@ -678,26 +678,6 @@ class _AppPageState extends ConsumerState<AppPage> {
|
||||
},
|
||||
),
|
||||
actions: [
|
||||
if (hasManage &&
|
||||
(widget.keyActionsBuilder != null ||
|
||||
widget.detailViewBuilder != null))
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
child: IconButton(
|
||||
key: toggleDetailViewIconButtonKey,
|
||||
onPressed: () {
|
||||
ref
|
||||
.read(_detailViewVisibilityProvider.notifier)
|
||||
.toggleExpanded();
|
||||
},
|
||||
icon: const Icon(Symbols.view_sidebar),
|
||||
iconSize: 24,
|
||||
tooltip: showDetailView
|
||||
? l10n.s_collapse_sidebar
|
||||
: l10n.s_expand_sidebar,
|
||||
padding: const EdgeInsets.all(12),
|
||||
),
|
||||
),
|
||||
if (widget.actionButtonBuilder == null &&
|
||||
(widget.keyActionsBuilder != null &&
|
||||
(!hasManage || !showDetailView)))
|
||||
@ -729,6 +709,26 @@ class _AppPageState extends ConsumerState<AppPage> {
|
||||
padding: const EdgeInsets.all(12),
|
||||
),
|
||||
),
|
||||
if (hasManage &&
|
||||
(widget.keyActionsBuilder != null ||
|
||||
widget.detailViewBuilder != null))
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
child: IconButton(
|
||||
key: toggleDetailViewIconButtonKey,
|
||||
onPressed: () {
|
||||
ref
|
||||
.read(_detailViewVisibilityProvider.notifier)
|
||||
.toggleExpanded();
|
||||
},
|
||||
icon: const Icon(Symbols.view_sidebar),
|
||||
iconSize: 24,
|
||||
tooltip: showDetailView
|
||||
? l10n.s_collapse_sidebar
|
||||
: l10n.s_expand_sidebar,
|
||||
padding: const EdgeInsets.all(12),
|
||||
),
|
||||
),
|
||||
if (widget.actionButtonBuilder != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 12),
|
||||
|
Loading…
Reference in New Issue
Block a user