mirror of
https://github.com/ente-io/ente.git
synced 2025-05-29 14:01:19 +00:00
[auth] Update coach screen
This commit is contained in:
parent
9ce8470af5
commit
fb4f5c2095
@ -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",
|
||||
|
@ -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";
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user