From 8f4943da683e5cdd273abfd0ed0d609c3f7ca7db Mon Sep 17 00:00:00 2001 From: Codel1417 <13484789+Codel1417@users.noreply.github.com> Date: Thu, 23 May 2024 12:31:12 -0400 Subject: [PATCH] Add favorites tip card --- lib/Frontend/intn_defs.dart | 2 ++ lib/Frontend/pages/actions.dart | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Frontend/intn_defs.dart b/lib/Frontend/intn_defs.dart index e309750b..e1484853 100644 --- a/lib/Frontend/intn_defs.dart +++ b/lib/Frontend/intn_defs.dart @@ -316,3 +316,5 @@ String doubleBackToClose() => Intl.message("Press again to exit ", name: 'double String noLongerSupported() => Intl.message("This gear is no longer supported. Some app features may not work", name: 'noLongerSupported', desc: 'Warning message which appears for unsupported gear on the manage gear page'); String mandatoryOtaRequired() => Intl.message("A firmware update is required for this app to support your gear", name: 'mandatoryOtaRequired', desc: 'Warning message which appears for gear which have old firmware on the manage gear page'); + +String actionsFavoriteTip() => Intl.message("Long press an action to favorite", name: 'actionsFavoriteTip', desc: 'tip message which appears when no actions are favorited on the actions page'); diff --git a/lib/Frontend/pages/actions.dart b/lib/Frontend/pages/actions.dart index 58f01559..31abd98e 100644 --- a/lib/Frontend/pages/actions.dart +++ b/lib/Frontend/pages/actions.dart @@ -8,6 +8,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:multi_listenable_builder/multi_listenable_builder.dart'; import 'package:multi_value_listenable_builder/multi_value_listenable_builder.dart'; import 'package:sentry_hive/sentry_hive.dart'; +import 'package:tail_app/Frontend/pages/triggers.dart'; import '../../Backend/Bluetooth/bluetooth_manager.dart'; import '../../Backend/Definitions/Action/base_action.dart'; @@ -16,6 +17,7 @@ import '../../Backend/action_registry.dart'; import '../../Backend/device_registry.dart'; import '../../Backend/move_lists.dart'; import '../../constants.dart'; +import '../intn_defs.dart'; import 'home.dart'; class ActionPage extends ConsumerWidget { @@ -55,7 +57,9 @@ class _ActionPageBuilderState extends ConsumerState { shrinkWrap: true, children: [ AnimatedCrossFade( - firstChild: Container(), + firstChild: PageInfoCard( + text: actionsFavoriteTip(), + ), secondChild: GridView.builder( shrinkWrap: true, physics: const NeverScrollableScrollPhysics(),