[auth] Update coach screen

This commit is contained in:
Neeraj Gupta 2024-09-17 09:05:15 +05:30
parent 9ce8470af5
commit fb4f5c2095
3 changed files with 9 additions and 4 deletions

View File

@ -155,7 +155,8 @@
"leaveFamily": "Leave family",
"leaveFamilyMessage": "Are you sure that you want to leave the family plan?",
"inFamilyPlanMessage": "You are on a family plan!",
"swipeHint": "Swipe left to edit or remove codes",
"hintForMobile": "Long press on a code to edit or remove.",
"hintForDesktop": "Right click on a code to edit or remove.",
"scan": "Scan",
"scanACode": "Scan a code",
"verify": "Verify",

View File

@ -9,7 +9,7 @@ class PreferenceService {
late final SharedPreferences _prefs;
static const kHasShownCoachMarkKey = "has_shown_coach_mark";
static const kHasShownCoachMarkKey = "has_shown_coach_mark_v2";
static const kShouldShowLargeIconsKey = "should_show_large_icons";
static const kShouldHideCodesKey = "should_hide_codes";
static const kShouldAutoFocusOnSearchBar = "should_auto_focus_on_search_bar";

View File

@ -4,6 +4,8 @@ import 'package:ente_auth/core/event_bus.dart';
import 'package:ente_auth/events/codes_updated_event.dart';
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/preference_service.dart';
import 'package:ente_auth/utils/platform_util.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CoachMarkWidget extends StatelessWidget {
@ -33,14 +35,16 @@ class CoachMarkWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
Icons.swipe_left,
Icons.info_outline,
size: 42,
),
const SizedBox(
height: 24,
),
Text(
l10n.swipeHint,
PlatformUtil.isDesktop()
? l10n.hintForDesktop
: l10n.hintForMobile,
style: Theme.of(context).textTheme.titleLarge,
),
const SizedBox(