minor changes
This commit is contained in:
parent
0227325781
commit
9d2954d717
5 changed files with 6 additions and 8 deletions
|
@ -52,7 +52,7 @@ extension ExtraEntryAction on EntryAction {
|
||||||
// in app actions
|
// in app actions
|
||||||
case EntryAction.toggleFavourite:
|
case EntryAction.toggleFavourite:
|
||||||
// different data depending on toggle state
|
// different data depending on toggle state
|
||||||
return null;
|
return context.l10n.entryActionAddFavourite;
|
||||||
case EntryAction.delete:
|
case EntryAction.delete:
|
||||||
return context.l10n.entryActionDelete;
|
return context.l10n.entryActionDelete;
|
||||||
case EntryAction.export:
|
case EntryAction.export:
|
||||||
|
@ -93,7 +93,7 @@ extension ExtraEntryAction on EntryAction {
|
||||||
// in app actions
|
// in app actions
|
||||||
case EntryAction.toggleFavourite:
|
case EntryAction.toggleFavourite:
|
||||||
// different data depending on toggle state
|
// different data depending on toggle state
|
||||||
return null;
|
return AIcons.favourite;
|
||||||
case EntryAction.delete:
|
case EntryAction.delete:
|
||||||
return AIcons.delete;
|
return AIcons.delete;
|
||||||
case EntryAction.export:
|
case EntryAction.export:
|
||||||
|
|
|
@ -44,7 +44,7 @@ class AppShortcutService {
|
||||||
await platform.invokeMethod('pin', <String, dynamic>{
|
await platform.invokeMethod('pin', <String, dynamic>{
|
||||||
'label': label,
|
'label': label,
|
||||||
'iconBytes': iconBytes,
|
'iconBytes': iconBytes,
|
||||||
'filters': filters.map((filter) => filter.toJson()).toList(),
|
'filters': filters.where((filter) => filter != null).map((filter) => filter.toJson()).toList(),
|
||||||
});
|
});
|
||||||
} on PlatformException catch (e) {
|
} on PlatformException catch (e) {
|
||||||
debugPrint('pin failed with code=${e.code}, exception=${e.message}, details=${e.details}');
|
debugPrint('pin failed with code=${e.code}, exception=${e.message}, details=${e.details}');
|
||||||
|
|
|
@ -367,7 +367,7 @@ class _CollectionAppBarState extends State<CollectionAppBar> with SingleTickerPr
|
||||||
|
|
||||||
if (name == null || name.isEmpty) return;
|
if (name == null || name.isEmpty) return;
|
||||||
|
|
||||||
unawaited(AppShortcutService.pin(name, coverEntry, collection.filters));
|
unawaited(AppShortcutService.pin(name, coverEntry, filters));
|
||||||
}
|
}
|
||||||
|
|
||||||
void _goToSearch() {
|
void _goToSearch() {
|
||||||
|
|
|
@ -10,10 +10,9 @@ class OverlayButton extends StatelessWidget {
|
||||||
|
|
||||||
const OverlayButton({
|
const OverlayButton({
|
||||||
Key key,
|
Key key,
|
||||||
@required this.scale,
|
this.scale = kAlwaysCompleteAnimation,
|
||||||
@required this.child,
|
@required this.child,
|
||||||
}) : assert(scale != null),
|
}) : super(key: key);
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
|
@ -94,7 +94,6 @@ class _PanoramaPageState extends State<PanoramaPage> {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.all(8) + EdgeInsets.only(right: mqPadding.right, bottom: mqPadding.bottom),
|
padding: EdgeInsets.all(8) + EdgeInsets.only(right: mqPadding.right, bottom: mqPadding.bottom),
|
||||||
child: OverlayButton(
|
child: OverlayButton(
|
||||||
scale: kAlwaysCompleteAnimation,
|
|
||||||
child: ValueListenableBuilder<SensorControl>(
|
child: ValueListenableBuilder<SensorControl>(
|
||||||
valueListenable: _sensorControl,
|
valueListenable: _sensorControl,
|
||||||
builder: (context, sensorControl, child) {
|
builder: (context, sensorControl, child) {
|
||||||
|
|
Loading…
Reference in a new issue