mirror of
https://github.com/ente-io/ente.git
synced 2025-06-05 08:35:49 +00:00
[auth] Update coach screen
This commit is contained in:
parent
9ce8470af5
commit
fb4f5c2095
@ -155,7 +155,8 @@
|
|||||||
"leaveFamily": "Leave family",
|
"leaveFamily": "Leave family",
|
||||||
"leaveFamilyMessage": "Are you sure that you want to leave the family plan?",
|
"leaveFamilyMessage": "Are you sure that you want to leave the family plan?",
|
||||||
"inFamilyPlanMessage": "You are on a 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",
|
"scan": "Scan",
|
||||||
"scanACode": "Scan a code",
|
"scanACode": "Scan a code",
|
||||||
"verify": "Verify",
|
"verify": "Verify",
|
||||||
|
@ -9,7 +9,7 @@ class PreferenceService {
|
|||||||
|
|
||||||
late final SharedPreferences _prefs;
|
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 kShouldShowLargeIconsKey = "should_show_large_icons";
|
||||||
static const kShouldHideCodesKey = "should_hide_codes";
|
static const kShouldHideCodesKey = "should_hide_codes";
|
||||||
static const kShouldAutoFocusOnSearchBar = "should_auto_focus_on_search_bar";
|
static const kShouldAutoFocusOnSearchBar = "should_auto_focus_on_search_bar";
|
||||||
|
@ -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/events/codes_updated_event.dart';
|
||||||
import 'package:ente_auth/l10n/l10n.dart';
|
import 'package:ente_auth/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/preference_service.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';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class CoachMarkWidget extends StatelessWidget {
|
class CoachMarkWidget extends StatelessWidget {
|
||||||
@ -33,14 +35,16 @@ class CoachMarkWidget extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
const Icon(
|
||||||
Icons.swipe_left,
|
Icons.info_outline,
|
||||||
size: 42,
|
size: 42,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
l10n.swipeHint,
|
PlatformUtil.isDesktop()
|
||||||
|
? l10n.hintForDesktop
|
||||||
|
: l10n.hintForMobile,
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
style: Theme.of(context).textTheme.titleLarge,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user