Skip to content

Commit

Permalink
Add favorites tip card
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 23, 2024
1 parent be7f9f5 commit 8f4943d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Frontend/intn_defs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
6 changes: 5 additions & 1 deletion lib/Frontend/pages/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 {
Expand Down Expand Up @@ -55,7 +57,9 @@ class _ActionPageBuilderState extends ConsumerState<ActionPageBuilder> {
shrinkWrap: true,
children: [
AnimatedCrossFade(
firstChild: Container(),
firstChild: PageInfoCard(
text: actionsFavoriteTip(),
),
secondChild: GridView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
Expand Down

0 comments on commit 8f4943d

Please sign in to comment.