Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Polish onboarding (welcome, tips, reset)

Barnabasc49c3de6dc17
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index e52506fb..4a0cf62a 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -739,30 +739,16 @@
"noOutputDevicesFound": "No output devices found",
"welcomeToAbsorb": "Welcome to Absorb",
- "welcomeOverview": "Here's a quick overview of how things work.",
- "welcomeHomeTitle": "Home",
- "welcomeHomeBody": "Your personalized shelves from Audiobookshelf - continue listening, discover new titles, and browse your playlists and collections. Use the edit button in the top right to customize which sections appear and their order.",
- "welcomeLibraryTitle": "Library",
- "welcomeLibraryBody": "Browse your full library with tabs for books, series, and authors. Tap the active tab to open sort and filter options.",
+ "welcomeTagline": "An Audiobookshelf client.",
"welcomeAbsorbingTitle": "Absorbing",
- "welcomeAbsorbingBody": "Your active listening queue. Books you start playing automatically appear here as swipeable cards with full playback controls.",
- "welcomeQueueModesTitle": "Queue modes",
- "welcomeQueueModeOff": "Off - playback stops when a book finishes",
- "welcomeQueueModeManual": "Manual - auto-plays the next card in your queue",
- "welcomeQueueModeAuto": "Series - automatically finds and plays the next book in a series",
- "welcomeManagingQueueTitle": "Managing your queue",
- "welcomeManagingCoverTap": "Tap the cover art to play/pause (toggleable in Settings)",
- "welcomeManagingSwipeUp": "Swipe up on a card to open the full screen player, swipe down to dismiss",
- "welcomeManagingSwipeRight": "Swipe right on any book in a list sheet to quickly add it to your queue",
- "welcomeManagingReorder": "Tap the reorder icon to drag cards into your preferred order or swipe to remove",
- "welcomeManagingAdd": "Add books manually from any book's detail sheet",
- "welcomeManagingRemoveFinished": "Finished books are automatically removed from your queue",
- "welcomeMergeLibrariesTitle": "Merge libraries",
- "welcomeMergeLibrariesBody": "Enable in Settings to show all your libraries together in one queue",
- "welcomeDownloadsTitle": "Downloads & Offline",
- "welcomeDownloadsBody": "Download books for offline listening. Toggle offline mode with the airplane icon on the Absorbing screen. Your progress syncs back to the server automatically when you reconnect.",
- "welcomeSettingsTitle": "Settings",
- "welcomeSettingsBody": "Configure queue behavior, sleep timers, playback speed, local server connections, and more.",
+ "welcomeAbsorbingIntro": "We use \"absorb\" in place of \"play\" and \"listen\".",
+ "welcomeAbsorbingTabBullet": "Absorbing tab - what you're currently listening to",
+ "welcomeAbsorbButtonBullet": "Absorb button - start playback",
+ "welcomeFullyAbsorbBullet": "Fully Absorb - mark as finished",
+ "welcomeGettingAroundTitle": "Getting around",
+ "welcomeGettingAroundBody": "Tap any cover to open its details. Continue Listening cards are different - tap to play right away, press and hold to open details.",
+ "welcomeMakeItYoursTitle": "Make it yours",
+ "welcomeMakeItYoursBody": "Mess around in Settings to tune Absorb to your taste. Quick tip: on the Home page, tap the edit button in the top right to rearrange categories.",
"getStarted": "Get Started",
"showMore": "Show more",
@@ -1472,8 +1458,6 @@
"tipsSheetQuickBookmarksTitle": "Quick Bookmarks",
"tipsSheetQuickBookmarksDesc": "Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.",
- "tipsSheetEditBookmarksTitle": "Edit Bookmarks",
- "tipsSheetEditBookmarksDesc": "Long-press any bookmark in the bookmark sheet to edit its title and add notes.",
"tipsSheetCoverPlayPauseTitle": "Cover Play/Pause",
"tipsSheetCoverPlayPauseDesc": "Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it's tappable.",
"tipsSheetFullScreenPlayerTitle": "Full Screen Player",
@@ -1498,16 +1482,20 @@
"tipsSheetSeriesQueueModeDesc": "When you finish a book that's part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.",
"tipsSheetOfflineModeTitle": "Offline Mode",
"tipsSheetOfflineModeDesc": "Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.",
- "tipsSheetStopPlaybackTitle": "Stop Playback",
- "tipsSheetStopPlaybackDesc": "The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.",
- "tipsSheetDownloadOfflineTitle": "Download for Offline",
- "tipsSheetDownloadOfflineDesc": "Tap the download button in any book's detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.",
- "tipsSheetCustomizeHomeTitle": "Customize Home",
- "tipsSheetCustomizeHomeDesc": "Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.",
- "tipsSheetPlaylistsTitle": "Playlists",
- "tipsSheetPlaylistsDesc": "Create and manage playlists on your Audiobookshelf server and they'll appear as sections on your Home screen. Add books to playlists from any book's detail popup.",
- "tipsSheetCollectionsTitle": "Collections",
- "tipsSheetCollectionsDesc": "Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.",
+ "tipsSheetUpcomingReleasesTitle": "Upcoming Releases",
+ "tipsSheetUpcomingReleasesDesc": "Open the Library top-right menu to see new and upcoming books across all the series in your library, sorted by release date.",
+ "tipsSheetPerBookEqTitle": "Per-Book Equalizer",
+ "tipsSheetPerBookEqDesc": "Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.",
+ "tipsSheetPerBookSpeedTitle": "Per-Book Speed",
+ "tipsSheetPerBookSpeedDesc": "Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.",
+ "tipsSheetAutoSleepWindowTitle": "Auto Sleep Window",
+ "tipsSheetAutoSleepWindowDesc": "Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.",
+ "tipsSheetSleepFadeChimeTitle": "Sleep Fade and Chime",
+ "tipsSheetSleepFadeChimeDesc": "When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn't cut off mid-sentence.",
+ "tipsSheetCarModeTitle": "Car Mode",
+ "tipsSheetCarModeDesc": "Tap the car icon to switch to giant-button mode designed for safer use while driving.",
+ "tipsSheetAudibleSeriesTitle": "Audible Series Discovery",
+ "tipsSheetAudibleSeriesDesc": "Open a series and tap the search icon to pull the full series list from Audible, including missing entries and books you haven't started.",
"bookCardUnknownTitle": "Unknown Title",
"bookCardExplicitBadge": "E",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 6ad5d683..fee69cf9 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -3950,35 +3950,11 @@ abstract class AppLocalizations {
/// **'Welcome to Absorb'**
String get welcomeToAbsorb;
- /// No description provided for @welcomeOverview.
+ /// No description provided for @welcomeTagline.
///
/// In en, this message translates to:
- /// **'Here\'s a quick overview of how things work.'**
- String get welcomeOverview;
-
- /// No description provided for @welcomeHomeTitle.
- ///
- /// In en, this message translates to:
- /// **'Home'**
- String get welcomeHomeTitle;
-
- /// No description provided for @welcomeHomeBody.
- ///
- /// In en, this message translates to:
- /// **'Your personalized shelves from Audiobookshelf - continue listening, discover new titles, and browse your playlists and collections. Use the edit button in the top right to customize which sections appear and their order.'**
- String get welcomeHomeBody;
-
- /// No description provided for @welcomeLibraryTitle.
- ///
- /// In en, this message translates to:
- /// **'Library'**
- String get welcomeLibraryTitle;
-
- /// No description provided for @welcomeLibraryBody.
- ///
- /// In en, this message translates to:
- /// **'Browse your full library with tabs for books, series, and authors. Tap the active tab to open sort and filter options.'**
- String get welcomeLibraryBody;
+ /// **'An Audiobookshelf client.'**
+ String get welcomeTagline;
/// No description provided for @welcomeAbsorbingTitle.
///
@@ -3986,113 +3962,53 @@ abstract class AppLocalizations {
/// **'Absorbing'**
String get welcomeAbsorbingTitle;
- /// No description provided for @welcomeAbsorbingBody.
- ///
- /// In en, this message translates to:
- /// **'Your active listening queue. Books you start playing automatically appear here as swipeable cards with full playback controls.'**
- String get welcomeAbsorbingBody;
-
- /// No description provided for @welcomeQueueModesTitle.
+ /// No description provided for @welcomeAbsorbingIntro.
///
/// In en, this message translates to:
- /// **'Queue modes'**
- String get welcomeQueueModesTitle;
+ /// **'We use \"absorb\" in place of \"play\" and \"listen\".'**
+ String get welcomeAbsorbingIntro;
- /// No description provided for @welcomeQueueModeOff.
+ /// No description provided for @welcomeAbsorbingTabBullet.
///
/// In en, this message translates to:
- /// **'Off - playback stops when a book finishes'**
- String get welcomeQueueModeOff;
+ /// **'Absorbing tab - what you\'re currently listening to'**
+ String get welcomeAbsorbingTabBullet;
- /// No description provided for @welcomeQueueModeManual.
+ /// No description provided for @welcomeAbsorbButtonBullet.
///
/// In en, this message translates to:
- /// **'Manual - auto-plays the next card in your queue'**
- String get welcomeQueueModeManual;
+ /// **'Absorb button - start playback'**
+ String get welcomeAbsorbButtonBullet;
- /// No description provided for @welcomeQueueModeAuto.
+ /// No description provided for @welcomeFullyAbsorbBullet.
///
/// In en, this message translates to:
- /// **'Series - automatically finds and plays the next book in a series'**
- String get welcomeQueueModeAuto;
+ /// **'Fully Absorb - mark as finished'**
+ String get welcomeFullyAbsorbBullet;
- /// No description provided for @welcomeManagingQueueTitle.
+ /// No description provided for @welcomeGettingAroundTitle.
///
/// In en, this message translates to:
- /// **'Managing your queue'**
- String get welcomeManagingQueueTitle;
+ /// **'Getting around'**
+ String get welcomeGettingAroundTitle;
- /// No description provided for @welcomeManagingCoverTap.
+ /// No description provided for @welcomeGettingAroundBody.
///
/// In en, this message translates to:
- /// **'Tap the cover art to play/pause (toggleable in Settings)'**
- String get welcomeManagingCoverTap;
+ /// **'Tap any cover to open its details. Continue Listening cards are different - tap to play right away, press and hold to open details.'**
+ String get welcomeGettingAroundBody;
- /// No description provided for @welcomeManagingSwipeUp.
+ /// No description provided for @welcomeMakeItYoursTitle.
///
/// In en, this message translates to:
- /// **'Swipe up on a card to open the full screen player, swipe down to dismiss'**
- String get welcomeManagingSwipeUp;
+ /// **'Make it yours'**
+ String get welcomeMakeItYoursTitle;
- /// No description provided for @welcomeManagingSwipeRight.
+ /// No description provided for @welcomeMakeItYoursBody.
///
/// In en, this message translates to:
- /// **'Swipe right on any book in a list sheet to quickly add it to your queue'**
- String get welcomeManagingSwipeRight;
-
- /// No description provided for @welcomeManagingReorder.
- ///
- /// In en, this message translates to:
- /// **'Tap the reorder icon to drag cards into your preferred order or swipe to remove'**
- String get welcomeManagingReorder;
-
- /// No description provided for @welcomeManagingAdd.
- ///
- /// In en, this message translates to:
- /// **'Add books manually from any book\'s detail sheet'**
- String get welcomeManagingAdd;
-
- /// No description provided for @welcomeManagingRemoveFinished.
- ///
- /// In en, this message translates to:
- /// **'Finished books are automatically removed from your queue'**
- String get welcomeManagingRemoveFinished;
-
- /// No description provided for @welcomeMergeLibrariesTitle.
- ///
- /// In en, this message translates to:
- /// **'Merge libraries'**
- String get welcomeMergeLibrariesTitle;
-
- /// No description provided for @welcomeMergeLibrariesBody.
- ///
- /// In en, this message translates to:
- /// **'Enable in Settings to show all your libraries together in one queue'**
- String get welcomeMergeLibrariesBody;
-
- /// No description provided for @welcomeDownloadsTitle.
- ///
- /// In en, this message translates to:
- /// **'Downloads & Offline'**
- String get welcomeDownloadsTitle;
-
- /// No description provided for @welcomeDownloadsBody.
- ///
- /// In en, this message translates to:
- /// **'Download books for offline listening. Toggle offline mode with the airplane icon on the Absorbing screen. Your progress syncs back to the server automatically when you reconnect.'**
- String get welcomeDownloadsBody;
-
- /// No description provided for @welcomeSettingsTitle.
- ///
- /// In en, this message translates to:
- /// **'Settings'**
- String get welcomeSettingsTitle;
-
- /// No description provided for @welcomeSettingsBody.
- ///
- /// In en, this message translates to:
- /// **'Configure queue behavior, sleep timers, playback speed, local server connections, and more.'**
- String get welcomeSettingsBody;
+ /// **'Mess around in Settings to tune Absorb to your taste. Quick tip: on the Home page, tap the edit button in the top right to rearrange categories.'**
+ String get welcomeMakeItYoursBody;
/// No description provided for @getStarted.
///
@@ -7342,18 +7258,6 @@ abstract class AppLocalizations {
/// **'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.'**
String get tipsSheetQuickBookmarksDesc;
- /// No description provided for @tipsSheetEditBookmarksTitle.
- ///
- /// In en, this message translates to:
- /// **'Edit Bookmarks'**
- String get tipsSheetEditBookmarksTitle;
-
- /// No description provided for @tipsSheetEditBookmarksDesc.
- ///
- /// In en, this message translates to:
- /// **'Long-press any bookmark in the bookmark sheet to edit its title and add notes.'**
- String get tipsSheetEditBookmarksDesc;
-
/// No description provided for @tipsSheetCoverPlayPauseTitle.
///
/// In en, this message translates to:
@@ -7498,65 +7402,89 @@ abstract class AppLocalizations {
/// **'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.'**
String get tipsSheetOfflineModeDesc;
- /// No description provided for @tipsSheetStopPlaybackTitle.
+ /// No description provided for @tipsSheetUpcomingReleasesTitle.
///
/// In en, this message translates to:
- /// **'Stop Playback'**
- String get tipsSheetStopPlaybackTitle;
+ /// **'Upcoming Releases'**
+ String get tipsSheetUpcomingReleasesTitle;
- /// No description provided for @tipsSheetStopPlaybackDesc.
+ /// No description provided for @tipsSheetUpcomingReleasesDesc.
///
/// In en, this message translates to:
- /// **'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.'**
- String get tipsSheetStopPlaybackDesc;
+ /// **'Open the Library top-right menu to see new and upcoming books across all the series in your library, sorted by release date.'**
+ String get tipsSheetUpcomingReleasesDesc;
- /// No description provided for @tipsSheetDownloadOfflineTitle.
+ /// No description provided for @tipsSheetPerBookEqTitle.
///
/// In en, this message translates to:
- /// **'Download for Offline'**
- String get tipsSheetDownloadOfflineTitle;
+ /// **'Per-Book Equalizer'**
+ String get tipsSheetPerBookEqTitle;
- /// No description provided for @tipsSheetDownloadOfflineDesc.
+ /// No description provided for @tipsSheetPerBookEqDesc.
///
/// In en, this message translates to:
- /// **'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.'**
- String get tipsSheetDownloadOfflineDesc;
+ /// **'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.'**
+ String get tipsSheetPerBookEqDesc;
- /// No description provided for @tipsSheetCustomizeHomeTitle.
+ /// No description provided for @tipsSheetPerBookSpeedTitle.
///
/// In en, this message translates to:
- /// **'Customize Home'**
- String get tipsSheetCustomizeHomeTitle;
+ /// **'Per-Book Speed'**
+ String get tipsSheetPerBookSpeedTitle;
+
+ /// No description provided for @tipsSheetPerBookSpeedDesc.
+ ///
+ /// In en, this message translates to:
+ /// **'Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.'**
+ String get tipsSheetPerBookSpeedDesc;
+
+ /// No description provided for @tipsSheetAutoSleepWindowTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Auto Sleep Window'**
+ String get tipsSheetAutoSleepWindowTitle;
+
+ /// No description provided for @tipsSheetAutoSleepWindowDesc.
+ ///
+ /// In en, this message translates to:
+ /// **'Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.'**
+ String get tipsSheetAutoSleepWindowDesc;
- /// No description provided for @tipsSheetCustomizeHomeDesc.
+ /// No description provided for @tipsSheetSleepFadeChimeTitle.
///
/// In en, this message translates to:
- /// **'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.'**
- String get tipsSheetCustomizeHomeDesc;
+ /// **'Sleep Fade and Chime'**
+ String get tipsSheetSleepFadeChimeTitle;
- /// No description provided for @tipsSheetPlaylistsTitle.
+ /// No description provided for @tipsSheetSleepFadeChimeDesc.
///
/// In en, this message translates to:
- /// **'Playlists'**
- String get tipsSheetPlaylistsTitle;
+ /// **'When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn\'t cut off mid-sentence.'**
+ String get tipsSheetSleepFadeChimeDesc;
+
+ /// No description provided for @tipsSheetCarModeTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Car Mode'**
+ String get tipsSheetCarModeTitle;
- /// No description provided for @tipsSheetPlaylistsDesc.
+ /// No description provided for @tipsSheetCarModeDesc.
///
/// In en, this message translates to:
- /// **'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.'**
- String get tipsSheetPlaylistsDesc;
+ /// **'Tap the car icon to switch to giant-button mode designed for safer use while driving.'**
+ String get tipsSheetCarModeDesc;
- /// No description provided for @tipsSheetCollectionsTitle.
+ /// No description provided for @tipsSheetAudibleSeriesTitle.
///
/// In en, this message translates to:
- /// **'Collections'**
- String get tipsSheetCollectionsTitle;
+ /// **'Audible Series Discovery'**
+ String get tipsSheetAudibleSeriesTitle;
- /// No description provided for @tipsSheetCollectionsDesc.
+ /// No description provided for @tipsSheetAudibleSeriesDesc.
///
/// In en, this message translates to:
- /// **'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.'**
- String get tipsSheetCollectionsDesc;
+ /// **'Open a series and tap the search icon to pull the full series list from Audible, including missing entries and books you haven\'t started.'**
+ String get tipsSheetAudibleSeriesDesc;
/// No description provided for @bookCardUnknownTitle.
///
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 5a089faf..c8df0065 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -2134,90 +2134,38 @@ class AppLocalizationsEn extends AppLocalizations {
String get welcomeToAbsorb => 'Welcome to Absorb';
@override
- String get welcomeOverview => 'Here\'s a quick overview of how things work.';
-
- @override
- String get welcomeHomeTitle => 'Home';
-
- @override
- String get welcomeHomeBody =>
- 'Your personalized shelves from Audiobookshelf - continue listening, discover new titles, and browse your playlists and collections. Use the edit button in the top right to customize which sections appear and their order.';
-
- @override
- String get welcomeLibraryTitle => 'Library';
-
- @override
- String get welcomeLibraryBody =>
- 'Browse your full library with tabs for books, series, and authors. Tap the active tab to open sort and filter options.';
+ String get welcomeTagline => 'An Audiobookshelf client.';
@override
String get welcomeAbsorbingTitle => 'Absorbing';
@override
- String get welcomeAbsorbingBody =>
- 'Your active listening queue. Books you start playing automatically appear here as swipeable cards with full playback controls.';
-
- @override
- String get welcomeQueueModesTitle => 'Queue modes';
-
- @override
- String get welcomeQueueModeOff => 'Off - playback stops when a book finishes';
-
- @override
- String get welcomeQueueModeManual =>
- 'Manual - auto-plays the next card in your queue';
-
- @override
- String get welcomeQueueModeAuto =>
- 'Series - automatically finds and plays the next book in a series';
-
- @override
- String get welcomeManagingQueueTitle => 'Managing your queue';
-
- @override
- String get welcomeManagingCoverTap =>
- 'Tap the cover art to play/pause (toggleable in Settings)';
+ String get welcomeAbsorbingIntro =>
+ 'We use \"absorb\" in place of \"play\" and \"listen\".';
@override
- String get welcomeManagingSwipeUp =>
- 'Swipe up on a card to open the full screen player, swipe down to dismiss';
+ String get welcomeAbsorbingTabBullet =>
+ 'Absorbing tab - what you\'re currently listening to';
@override
- String get welcomeManagingSwipeRight =>
- 'Swipe right on any book in a list sheet to quickly add it to your queue';
+ String get welcomeAbsorbButtonBullet => 'Absorb button - start playback';
@override
- String get welcomeManagingReorder =>
- 'Tap the reorder icon to drag cards into your preferred order or swipe to remove';
+ String get welcomeFullyAbsorbBullet => 'Fully Absorb - mark as finished';
@override
- String get welcomeManagingAdd =>
- 'Add books manually from any book\'s detail sheet';
+ String get welcomeGettingAroundTitle => 'Getting around';
@override
- String get welcomeManagingRemoveFinished =>
- 'Finished books are automatically removed from your queue';
+ String get welcomeGettingAroundBody =>
+ 'Tap any cover to open its details. Continue Listening cards are different - tap to play right away, press and hold to open details.';
@override
- String get welcomeMergeLibrariesTitle => 'Merge libraries';
+ String get welcomeMakeItYoursTitle => 'Make it yours';
@override
- String get welcomeMergeLibrariesBody =>
- 'Enable in Settings to show all your libraries together in one queue';
-
- @override
- String get welcomeDownloadsTitle => 'Downloads & Offline';
-
- @override
- String get welcomeDownloadsBody =>
- 'Download books for offline listening. Toggle offline mode with the airplane icon on the Absorbing screen. Your progress syncs back to the server automatically when you reconnect.';
-
- @override
- String get welcomeSettingsTitle => 'Settings';
-
- @override
- String get welcomeSettingsBody =>
- 'Configure queue behavior, sleep timers, playback speed, local server connections, and more.';
+ String get welcomeMakeItYoursBody =>
+ 'Mess around in Settings to tune Absorb to your taste. Quick tip: on the Home page, tap the edit button in the top right to rearrange categories.';
@override
String get getStarted => 'Get Started';
@@ -4199,13 +4147,6 @@ class AppLocalizationsEn extends AppLocalizations {
String get tipsSheetQuickBookmarksDesc =>
'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';
- @override
- String get tipsSheetEditBookmarksTitle => 'Edit Bookmarks';
-
- @override
- String get tipsSheetEditBookmarksDesc =>
- 'Long-press any bookmark in the bookmark sheet to edit its title and add notes.';
-
@override
String get tipsSheetCoverPlayPauseTitle => 'Cover Play/Pause';
@@ -4291,39 +4232,53 @@ class AppLocalizationsEn extends AppLocalizations {
'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';
@override
- String get tipsSheetStopPlaybackTitle => 'Stop Playback';
+ String get tipsSheetUpcomingReleasesTitle => 'Upcoming Releases';
+
+ @override
+ String get tipsSheetUpcomingReleasesDesc =>
+ 'Open the Library top-right menu to see new and upcoming books across all the series in your library, sorted by release date.';
+
+ @override
+ String get tipsSheetPerBookEqTitle => 'Per-Book Equalizer';
+
+ @override
+ String get tipsSheetPerBookEqDesc =>
+ 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';
+
+ @override
+ String get tipsSheetPerBookSpeedTitle => 'Per-Book Speed';
@override
- String get tipsSheetStopPlaybackDesc =>
- 'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.';
+ String get tipsSheetPerBookSpeedDesc =>
+ 'Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.';
@override
- String get tipsSheetDownloadOfflineTitle => 'Download for Offline';
+ String get tipsSheetAutoSleepWindowTitle => 'Auto Sleep Window';
@override
- String get tipsSheetDownloadOfflineDesc =>
- 'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.';
+ String get tipsSheetAutoSleepWindowDesc =>
+ 'Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.';
@override
- String get tipsSheetCustomizeHomeTitle => 'Customize Home';
+ String get tipsSheetSleepFadeChimeTitle => 'Sleep Fade and Chime';
@override
- String get tipsSheetCustomizeHomeDesc =>
- 'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.';
+ String get tipsSheetSleepFadeChimeDesc =>
+ 'When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn\'t cut off mid-sentence.';
@override
- String get tipsSheetPlaylistsTitle => 'Playlists';
+ String get tipsSheetCarModeTitle => 'Car Mode';
@override
- String get tipsSheetPlaylistsDesc =>
- 'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.';
+ String get tipsSheetCarModeDesc =>
+ 'Tap the car icon to switch to giant-button mode designed for safer use while driving.';
@override
- String get tipsSheetCollectionsTitle => 'Collections';
+ String get tipsSheetAudibleSeriesTitle => 'Audible Series Discovery';
@override
- String get tipsSheetCollectionsDesc =>
- 'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.';
+ String get tipsSheetAudibleSeriesDesc =>
+ 'Open a series and tap the search icon to pull the full series list from Audible, including missing entries and books you haven\'t started.';
@override
String get bookCardUnknownTitle => 'Unknown Title';
@@ -4637,7 +4592,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get showTipsAgain => 'Show tips again';
@override
- String get showTipsAgainSubtitle => 'Bring back feature tips you\'ve dismissed';
+ String get showTipsAgainSubtitle =>
+ 'Bring back feature tips you\'ve dismissed';
@override
String get tipsRestored => 'Tips restored';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index a5f9ad20..68eac0c9 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -2063,80 +2063,36 @@ class AppLocalizationsZh extends AppLocalizations {
String get welcomeToAbsorb => '欢迎使用 Absorb';
@override
- String get welcomeOverview => '以下是功能快速介绍。';
-
- @override
- String get welcomeHomeTitle => '首页';
-
- @override
- String get welcomeHomeBody =>
- '来自 Audiobookshelf 的个性化书架 - 继续收听、发现新书目,并浏览您的播放列表和合集。使用右上角的编辑按钮自定义显示的版块及其顺序。';
-
- @override
- String get welcomeLibraryTitle => '媒体库';
-
- @override
- String get welcomeLibraryBody =>
- '通过书籍、系列和作者等标签页浏览您的完整媒体库。点击当前激活的标签页可以打开排序和筛选选项。';
+ String get welcomeTagline => '一个 Audiobookshelf 客户端。';
@override
String get welcomeAbsorbingTitle => '正在收听';
@override
- String get welcomeAbsorbingBody =>
- '你的活跃收听队列。你开始播放的书籍会自动以可滑动卡片的形式显示在这里,并带有完整的播放控制。';
-
- @override
- String get welcomeQueueModesTitle => '队列模式';
-
- @override
- String get welcomeQueueModeOff => '关闭 - 书籍播放完成后停止';
-
- @override
- String get welcomeQueueModeManual => '手动 - 自动播放队列中的下一张卡片';
-
- @override
- String get welcomeQueueModeAuto => '系列 - 自动查找并播放系列中的下一本书';
-
- @override
- String get welcomeManagingQueueTitle => '管理你的队列';
-
- @override
- String get welcomeManagingCoverTap => '点击封面以播放/暂停(可在设置中切换)';
+ String get welcomeAbsorbingIntro => '我们用 \"absorb\" 代替 \"播放\" 和 \"收听\"。';
@override
- String get welcomeManagingSwipeUp => '向上滑动卡片打开全屏播放器,向下滑动关闭';
+ String get welcomeAbsorbingTabBullet => '正在收听标签页 - 你当前正在收听的内容';
@override
- String get welcomeManagingSwipeRight => '在列表中向右滑动任意书籍,即可快速加入队列';
+ String get welcomeAbsorbButtonBullet => 'Absorb 按钮 - 开始播放';
@override
- String get welcomeManagingReorder => '点击排序图标拖动卡片到你喜欢的顺序,或滑动移除';
+ String get welcomeFullyAbsorbBullet => 'Fully Absorb - 标记为已完成';
@override
- String get welcomeManagingAdd => '从任何书籍的详情页手动添加书籍';
+ String get welcomeGettingAroundTitle => '界面操作';
@override
- String get welcomeManagingRemoveFinished => '播放完成的书籍会自动从队列中移除';
+ String get welcomeGettingAroundBody =>
+ '点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。';
@override
- String get welcomeMergeLibrariesTitle => '合并媒体库';
+ String get welcomeMakeItYoursTitle => '个性化设置';
@override
- String get welcomeMergeLibrariesBody => '在设置中启用,在一个队列中显示所有媒体库的内容';
-
- @override
- String get welcomeDownloadsTitle => '下载与离线';
-
- @override
- String get welcomeDownloadsBody =>
- '下载书籍以离线收听。通过“正在收听”屏幕上的飞机图标切换离线模式。您的进度会在重新连接后自动同步回服务器。';
-
- @override
- String get welcomeSettingsTitle => '设置';
-
- @override
- String get welcomeSettingsBody => '配置队列行为、睡眠定时器、播放速度、本地服务器连接等更多选项。';
+ String get welcomeMakeItYoursBody =>
+ '在设置中自定义 Absorb 以符合你的喜好。小提示:在首页,点击右上角的编辑按钮可以调整分类顺序。';
@override
String get getStarted => '开始使用';
@@ -4118,13 +4074,6 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetQuickBookmarksDesc =>
'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';
- @override
- String get tipsSheetEditBookmarksTitle => 'Edit Bookmarks';
-
- @override
- String get tipsSheetEditBookmarksDesc =>
- 'Long-press any bookmark in the bookmark sheet to edit its title and add notes.';
-
@override
String get tipsSheetCoverPlayPauseTitle => 'Cover Play/Pause';
@@ -4210,39 +4159,53 @@ class AppLocalizationsZh extends AppLocalizations {
'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';
@override
- String get tipsSheetStopPlaybackTitle => 'Stop Playback';
+ String get tipsSheetUpcomingReleasesTitle => 'Upcoming Releases';
+
+ @override
+ String get tipsSheetUpcomingReleasesDesc =>
+ 'Open the Library top-right menu to see new and upcoming books across all the series in your library, sorted by release date.';
+
+ @override
+ String get tipsSheetPerBookEqTitle => 'Per-Book Equalizer';
+
+ @override
+ String get tipsSheetPerBookEqDesc =>
+ 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';
+
+ @override
+ String get tipsSheetPerBookSpeedTitle => 'Per-Book Speed';
@override
- String get tipsSheetStopPlaybackDesc =>
- 'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.';
+ String get tipsSheetPerBookSpeedDesc =>
+ 'Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.';
@override
- String get tipsSheetDownloadOfflineTitle => 'Download for Offline';
+ String get tipsSheetAutoSleepWindowTitle => 'Auto Sleep Window';
@override
- String get tipsSheetDownloadOfflineDesc =>
- 'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.';
+ String get tipsSheetAutoSleepWindowDesc =>
+ 'Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.';
@override
- String get tipsSheetCustomizeHomeTitle => 'Customize Home';
+ String get tipsSheetSleepFadeChimeTitle => 'Sleep Fade and Chime';
@override
- String get tipsSheetCustomizeHomeDesc =>
- 'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.';
+ String get tipsSheetSleepFadeChimeDesc =>
+ 'When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn\'t cut off mid-sentence.';
@override
- String get tipsSheetPlaylistsTitle => 'Playlists';
+ String get tipsSheetCarModeTitle => 'Car Mode';
@override
- String get tipsSheetPlaylistsDesc =>
- 'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.';
+ String get tipsSheetCarModeDesc =>
+ 'Tap the car icon to switch to giant-button mode designed for safer use while driving.';
@override
- String get tipsSheetCollectionsTitle => 'Collections';
+ String get tipsSheetAudibleSeriesTitle => 'Audible Series Discovery';
@override
- String get tipsSheetCollectionsDesc =>
- 'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.';
+ String get tipsSheetAudibleSeriesDesc =>
+ 'Open a series and tap the search icon to pull the full series list from Audible, including missing entries and books you haven\'t started.';
@override
String get bookCardUnknownTitle => 'Unknown Title';
diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb
index f22fda06..a8f5a746 100644
--- a/lib/l10n/app_zh.arb
+++ b/lib/l10n/app_zh.arb
@@ -739,30 +739,16 @@
"noOutputDevicesFound": "未找到输出设备",
"welcomeToAbsorb": "欢迎使用 Absorb",
- "welcomeOverview": "以下是功能快速介绍。",
- "welcomeHomeTitle": "首页",
- "welcomeHomeBody": "来自 Audiobookshelf 的个性化书架 - 继续收听、发现新书目,并浏览您的播放列表和合集。使用右上角的编辑按钮自定义显示的版块及其顺序。",
- "welcomeLibraryTitle": "媒体库",
- "welcomeLibraryBody": "通过书籍、系列和作者等标签页浏览您的完整媒体库。点击当前激活的标签页可以打开排序和筛选选项。",
+ "welcomeTagline": "一个 Audiobookshelf 客户端。",
"welcomeAbsorbingTitle": "正在收听",
- "welcomeAbsorbingBody": "你的活跃收听队列。你开始播放的书籍会自动以可滑动卡片的形式显示在这里,并带有完整的播放控制。",
- "welcomeQueueModesTitle": "队列模式",
- "welcomeQueueModeOff": "关闭 - 书籍播放完成后停止",
- "welcomeQueueModeManual": "手动 - 自动播放队列中的下一张卡片",
- "welcomeQueueModeAuto": "系列 - 自动查找并播放系列中的下一本书",
- "welcomeManagingQueueTitle": "管理你的队列",
- "welcomeManagingCoverTap": "点击封面以播放/暂停(可在设置中切换)",
- "welcomeManagingSwipeUp": "向上滑动卡片打开全屏播放器,向下滑动关闭",
- "welcomeManagingSwipeRight": "在列表中向右滑动任意书籍,即可快速加入队列",
- "welcomeManagingReorder": "点击排序图标拖动卡片到你喜欢的顺序,或滑动移除",
- "welcomeManagingAdd": "从任何书籍的详情页手动添加书籍",
- "welcomeManagingRemoveFinished": "播放完成的书籍会自动从队列中移除",
- "welcomeMergeLibrariesTitle": "合并媒体库",
- "welcomeMergeLibrariesBody": "在设置中启用,在一个队列中显示所有媒体库的内容",
- "welcomeDownloadsTitle": "下载与离线",
- "welcomeDownloadsBody": "下载书籍以离线收听。通过“正在收听”屏幕上的飞机图标切换离线模式。您的进度会在重新连接后自动同步回服务器。",
- "welcomeSettingsTitle": "设置",
- "welcomeSettingsBody": "配置队列行为、睡眠定时器、播放速度、本地服务器连接等更多选项。",
+ "welcomeAbsorbingIntro": "我们用 \"absorb\" 代替 \"播放\" 和 \"收听\"。",
+ "welcomeAbsorbingTabBullet": "正在收听标签页 - 你当前正在收听的内容",
+ "welcomeAbsorbButtonBullet": "Absorb 按钮 - 开始播放",
+ "welcomeFullyAbsorbBullet": "Fully Absorb - 标记为已完成",
+ "welcomeGettingAroundTitle": "界面操作",
+ "welcomeGettingAroundBody": "点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。",
+ "welcomeMakeItYoursTitle": "个性化设置",
+ "welcomeMakeItYoursBody": "在设置中自定义 Absorb 以符合你的喜好。小提示:在首页,点击右上角的编辑按钮可以调整分类顺序。",
"getStarted": "开始使用",
"showMore": "显示更多",
diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart
index 846a6cc3..81cdba47 100644
--- a/lib/screens/settings_screen.dart
+++ b/lib/screens/settings_screen.dart
@@ -8,7 +8,6 @@ import 'package:file_picker/file_picker.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:just_audio/just_audio.dart' show AudioPlayer;
-import 'package:shared_preferences/shared_preferences.dart';
import '../providers/auth_provider.dart';
import '../providers/library_provider.dart';
import '../services/audio_player_service.dart';
@@ -29,6 +28,8 @@ import '../widgets/absorb_slider.dart';
import '../widgets/collapsible_section.dart';
import '../widgets/overlay_toast.dart';
import '../widgets/tips_sheet.dart';
+import '../widgets/feature_hint.dart';
+import '../widgets/welcome_sheet.dart';
import '../l10n/app_localizations.dart';
class SettingsScreen extends StatefulWidget {
@@ -1772,16 +1773,13 @@ class _SettingsScreenState extends State<SettingsScreen> {
subtitle: Text(l.showTipsAgainSubtitle,
style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
onTap: () async {
- final prefs = await SharedPreferences.getInstance();
- for (final key in prefs.getKeys()) {
- if (key.startsWith('hint_')) {
- await prefs.remove(key);
- }
- }
- if (mounted) {
- showOverlayToast(context, l.tipsRestored,
- icon: Icons.lightbulb_outline_rounded);
- }
+ await FeatureHint.resetAll();
+ if (!mounted) return;
+ showOverlayToast(context, l.tipsRestored,
+ icon: Icons.lightbulb_outline_rounded);
+ // Re-trigger the welcome dialog without an app
+ // restart. resetAll() already cleared the flag.
+ WelcomeSheet.showIfNeeded(context);
},
),
const Divider(height: 1, indent: 16, endIndent: 16),
diff --git a/lib/widgets/feature_hint.dart b/lib/widgets/feature_hint.dart
index 55cec8f4..e123e92d 100644
--- a/lib/widgets/feature_hint.dart
+++ b/lib/widgets/feature_hint.dart
@@ -21,6 +21,23 @@ class FeatureHint extends StatefulWidget {
this.padding = const EdgeInsets.fromLTRB(20, 8, 20, 4),
});
+ /// Bumped whenever [resetAll] runs, so live hint widgets re-read their
+ /// dismissed state instead of staying hidden until the next cold start.
+ static final ValueNotifier<int> resetTick = ValueNotifier<int>(0);
+
+ /// Wipe all dismissal flags (and the welcome-dialog flag) and notify any
+ /// currently-mounted hints to reappear without an app restart.
+ static Future<void> resetAll() async {
+ final prefs = await SharedPreferences.getInstance();
+ for (final key in prefs.getKeys()) {
+ if (key.startsWith('hint_')) {
+ await prefs.remove(key);
+ }
+ }
+ await prefs.remove('has_seen_welcome');
+ resetTick.value = resetTick.value + 1;
+ }
+
@override
State<FeatureHint> createState() => _FeatureHintState();
}
@@ -31,10 +48,20 @@ class _FeatureHintState extends State<FeatureHint> {
@override
void initState() {
super.initState();
- SharedPreferences.getInstance().then((prefs) {
- if (!mounted) return;
- setState(() => _dismissed = prefs.getBool(widget.prefKey) ?? false);
- });
+ _readState();
+ FeatureHint.resetTick.addListener(_readState);
+ }
+
+ @override
+ void dispose() {
+ FeatureHint.resetTick.removeListener(_readState);
+ super.dispose();
+ }
+
+ Future<void> _readState() async {
+ final prefs = await SharedPreferences.getInstance();
+ if (!mounted) return;
+ setState(() => _dismissed = prefs.getBool(widget.prefKey) ?? false);
}
Future<void> _dismiss() async {
diff --git a/lib/widgets/tips_sheet.dart b/lib/widgets/tips_sheet.dart
index e37933fb..d8db6ad2 100644
--- a/lib/widgets/tips_sheet.dart
+++ b/lib/widgets/tips_sheet.dart
@@ -34,11 +34,6 @@ void showTipsSheet(BuildContext context) {
title: l.tipsSheetQuickBookmarksTitle,
desc: l.tipsSheetQuickBookmarksDesc,
),
- _tipCard(cs, tt,
- icon: Icons.edit_note_rounded,
- title: l.tipsSheetEditBookmarksTitle,
- desc: l.tipsSheetEditBookmarksDesc,
- ),
_tipCard(cs, tt,
icon: Icons.touch_app_rounded,
title: l.tipsSheetCoverPlayPauseTitle,
@@ -100,29 +95,39 @@ void showTipsSheet(BuildContext context) {
desc: l.tipsSheetOfflineModeDesc,
),
_tipCard(cs, tt,
- icon: Icons.stop_rounded,
- title: l.tipsSheetStopPlaybackTitle,
- desc: l.tipsSheetStopPlaybackDesc,
+ icon: Icons.upcoming_rounded,
+ title: l.tipsSheetUpcomingReleasesTitle,
+ desc: l.tipsSheetUpcomingReleasesDesc,
+ ),
+ _tipCard(cs, tt,
+ icon: Icons.equalizer_rounded,
+ title: l.tipsSheetPerBookEqTitle,
+ desc: l.tipsSheetPerBookEqDesc,
+ ),
+ _tipCard(cs, tt,
+ icon: Icons.speed_rounded,
+ title: l.tipsSheetPerBookSpeedTitle,
+ desc: l.tipsSheetPerBookSpeedDesc,
),
_tipCard(cs, tt,
- icon: Icons.download_rounded,
- title: l.tipsSheetDownloadOfflineTitle,
- desc: l.tipsSheetDownloadOfflineDesc,
+ icon: Icons.bedtime_rounded,
+ title: l.tipsSheetAutoSleepWindowTitle,
+ desc: l.tipsSheetAutoSleepWindowDesc,
),
_tipCard(cs, tt,
- icon: Icons.dashboard_customize_rounded,
- title: l.tipsSheetCustomizeHomeTitle,
- desc: l.tipsSheetCustomizeHomeDesc,
+ icon: Icons.notifications_active_rounded,
+ title: l.tipsSheetSleepFadeChimeTitle,
+ desc: l.tipsSheetSleepFadeChimeDesc,
),
_tipCard(cs, tt,
- icon: Icons.playlist_play_rounded,
- title: l.tipsSheetPlaylistsTitle,
- desc: l.tipsSheetPlaylistsDesc,
+ icon: Icons.directions_car_rounded,
+ title: l.tipsSheetCarModeTitle,
+ desc: l.tipsSheetCarModeDesc,
),
_tipCard(cs, tt,
- icon: Icons.collections_bookmark_rounded,
- title: l.tipsSheetCollectionsTitle,
- desc: l.tipsSheetCollectionsDesc,
+ icon: Icons.search_rounded,
+ title: l.tipsSheetAudibleSeriesTitle,
+ desc: l.tipsSheetAudibleSeriesDesc,
),
],
),
diff --git a/lib/widgets/welcome_sheet.dart b/lib/widgets/welcome_sheet.dart
index fb40a398..aa02c33c 100644
--- a/lib/widgets/welcome_sheet.dart
+++ b/lib/widgets/welcome_sheet.dart
@@ -3,11 +3,12 @@ import 'package:shared_preferences/shared_preferences.dart';
import '../l10n/app_localizations.dart';
-/// Shows a one-time welcome sheet explaining the Absorbing system.
+/// Shows a one-time welcome dialog explaining the Absorb terminology and a
+/// couple of essential gestures. Kept short on purpose - the previous version
+/// was a long modal sheet that users tended to dismiss without reading.
class WelcomeSheet {
static const _prefKey = 'has_seen_welcome';
- /// Show the welcome sheet if the user hasn't seen it before.
static Future<void> showIfNeeded(BuildContext context) async {
final prefs = await SharedPreferences.getInstance();
if (prefs.getBool(_prefKey) == true) return;
@@ -16,18 +17,15 @@ class WelcomeSheet {
// Small delay so the app finishes its initial layout first
await Future.delayed(const Duration(milliseconds: 800));
if (!context.mounted) return;
- showModalBottomSheet(
+ showDialog<void>(
context: context,
- isScrollControlled: true,
- useSafeArea: true,
- backgroundColor: Colors.transparent,
- builder: (_) => const _WelcomeContent(),
+ builder: (_) => const _WelcomeDialog(),
);
}
}
-class _WelcomeContent extends StatelessWidget {
- const _WelcomeContent();
+class _WelcomeDialog extends StatelessWidget {
+ const _WelcomeDialog();
@override
Widget build(BuildContext context) {
@@ -35,203 +33,125 @@ class _WelcomeContent extends StatelessWidget {
final tt = Theme.of(context).textTheme;
final l = AppLocalizations.of(context)!;
- return Container(
- constraints: BoxConstraints(
- maxHeight: MediaQuery.of(context).size.height * 0.85,
- ),
- decoration: BoxDecoration(
- color: cs.surface,
- borderRadius: const BorderRadius.vertical(top: Radius.circular(24)),
- ),
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- const SizedBox(height: 12),
- Center(
- child: Container(
- width: 40, height: 4,
- decoration: BoxDecoration(
- color: cs.onSurface.withValues(alpha: 0.2),
- borderRadius: BorderRadius.circular(2),
- ),
- ),
- ),
- Flexible(
- child: SingleChildScrollView(
- padding: EdgeInsets.fromLTRB(24, 20, 24,
- 32 + MediaQuery.of(context).viewPadding.bottom),
- child: Column(
+ return AlertDialog(
+ titlePadding: const EdgeInsets.fromLTRB(24, 20, 24, 8),
+ contentPadding: const EdgeInsets.fromLTRB(24, 0, 24, 8),
+ title: Row(children: [
+ Icon(Icons.waves_rounded, color: cs.primary, size: 26),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Text(l.welcomeToAbsorb,
+ style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),
+ ),
+ ]),
+ content: SingleChildScrollView(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(l.welcomeTagline,
+ style: tt.bodySmall
+ ?.copyWith(color: cs.onSurface.withValues(alpha: 0.6))),
+ const SizedBox(height: 18),
+ _section(
+ cs, tt,
+ icon: Icons.menu_book_rounded,
+ title: l.welcomeAbsorbingTitle,
+ body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- // Header
- Row(
- children: [
- Icon(Icons.waves_rounded, color: cs.primary, size: 28),
- const SizedBox(width: 12),
- Text(l.welcomeToAbsorb,
- style: tt.headlineSmall?.copyWith(
- fontWeight: FontWeight.w700,
- )),
- ],
- ),
- const SizedBox(height: 8),
- Text(
- l.welcomeOverview,
- style: tt.bodyMedium?.copyWith(
- color: cs.onSurface.withValues(alpha: 0.6),
- ),
- ),
- const SizedBox(height: 24),
-
- _section(cs, tt,
- icon: Icons.home_rounded,
- title: l.welcomeHomeTitle,
- body: l.welcomeHomeBody,
- ),
-
- _section(cs, tt,
- icon: Icons.library_books_rounded,
- title: l.welcomeLibraryTitle,
- body: l.welcomeLibraryBody,
- ),
-
- _section(cs, tt,
- icon: Icons.waves_rounded,
- title: l.welcomeAbsorbingTitle,
- body: l.welcomeAbsorbingBody,
- ),
-
- _subsection(cs, tt,
- title: l.welcomeQueueModesTitle,
- items: [
- l.welcomeQueueModeOff,
- l.welcomeQueueModeManual,
- l.welcomeQueueModeAuto,
- ],
- ),
-
- _subsection(cs, tt,
- title: l.welcomeManagingQueueTitle,
- items: [
- l.welcomeManagingCoverTap,
- l.welcomeManagingSwipeUp,
- l.welcomeManagingSwipeRight,
- l.welcomeManagingReorder,
- l.welcomeManagingAdd,
- l.welcomeManagingRemoveFinished,
- ],
- ),
-
- _subsection(cs, tt,
- title: l.welcomeMergeLibrariesTitle,
- items: [
- l.welcomeMergeLibrariesBody,
- ],
- ),
-
- _section(cs, tt,
- icon: Icons.download_rounded,
- title: l.welcomeDownloadsTitle,
- body: l.welcomeDownloadsBody,
- ),
-
- _section(cs, tt,
- icon: Icons.settings_rounded,
- title: l.welcomeSettingsTitle,
- body: l.welcomeSettingsBody,
- ),
-
- const SizedBox(height: 16),
- SizedBox(
- width: double.infinity,
- child: FilledButton(
- onPressed: () => Navigator.pop(context),
- style: FilledButton.styleFrom(
- padding: const EdgeInsets.symmetric(vertical: 14),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(14),
- ),
- ),
- child: Text(l.getStarted),
- ),
- ),
+ Text(l.welcomeAbsorbingIntro,
+ style: tt.bodySmall?.copyWith(
+ color: cs.onSurface.withValues(alpha: 0.7),
+ height: 1.45,
+ )),
+ const SizedBox(height: 6),
+ _bullet(cs, tt, l.welcomeAbsorbingTabBullet),
+ _bullet(cs, tt, l.welcomeAbsorbButtonBullet),
+ _bullet(cs, tt, l.welcomeFullyAbsorbBullet),
],
),
),
- ),
- ],
+ _section(
+ cs, tt,
+ icon: Icons.touch_app_rounded,
+ title: l.welcomeGettingAroundTitle,
+ body: Text(l.welcomeGettingAroundBody,
+ style: tt.bodySmall?.copyWith(
+ color: cs.onSurface.withValues(alpha: 0.7),
+ height: 1.45,
+ )),
+ ),
+ _section(
+ cs, tt,
+ icon: Icons.settings_rounded,
+ title: l.welcomeMakeItYoursTitle,
+ body: Text(l.welcomeMakeItYoursBody,
+ style: tt.bodySmall?.copyWith(
+ color: cs.onSurface.withValues(alpha: 0.7),
+ height: 1.45,
+ )),
+ ),
+ ],
+ ),
),
+ actions: [
+ FilledButton(
+ onPressed: () => Navigator.pop(context),
+ child: Text(l.getStarted),
+ ),
+ ],
);
}
Widget _section(ColorScheme cs, TextTheme tt, {
required IconData icon,
required String title,
- required String body,
+ required Widget body,
}) {
return Padding(
- padding: const EdgeInsets.only(bottom: 20),
+ padding: const EdgeInsets.only(bottom: 14),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(children: [
- Icon(icon, size: 18, color: cs.primary),
+ Icon(icon, size: 16, color: cs.primary),
const SizedBox(width: 8),
- Text(title, style: tt.titleSmall?.copyWith(
- fontWeight: FontWeight.w600,
- )),
+ Text(title,
+ style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),
]),
- const SizedBox(height: 6),
+ const SizedBox(height: 4),
Padding(
- padding: const EdgeInsets.only(left: 26),
- child: Text(body, style: tt.bodySmall?.copyWith(
- color: cs.onSurface.withValues(alpha: 0.7),
- height: 1.5,
- )),
+ padding: const EdgeInsets.only(left: 24),
+ child: body,
),
],
),
);
}
- Widget _subsection(ColorScheme cs, TextTheme tt, {
- required String title,
- required List<String> items,
- }) {
+ Widget _bullet(ColorScheme cs, TextTheme tt, String text) {
return Padding(
- padding: const EdgeInsets.only(left: 26, bottom: 16),
- child: Column(
+ padding: const EdgeInsets.only(top: 4),
+ child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text(title, style: tt.labelMedium?.copyWith(
- fontWeight: FontWeight.w600,
- color: cs.onSurface.withValues(alpha: 0.8),
- )),
- const SizedBox(height: 4),
- ...items.map((item) => Padding(
- padding: const EdgeInsets.only(top: 3),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Padding(
- padding: const EdgeInsets.only(top: 6, right: 8),
- child: Container(
- width: 4, height: 4,
- decoration: BoxDecoration(
- color: cs.onSurface.withValues(alpha: 0.4),
- shape: BoxShape.circle,
- ),
- ),
- ),
- Expanded(
- child: Text(item, style: tt.bodySmall?.copyWith(
- color: cs.onSurface.withValues(alpha: 0.6),
- height: 1.4,
- )),
- ),
- ],
+ Padding(
+ padding: const EdgeInsets.only(top: 6, right: 8),
+ child: Container(
+ width: 4, height: 4,
+ decoration: BoxDecoration(
+ color: cs.onSurface.withValues(alpha: 0.4),
+ shape: BoxShape.circle,
+ ),
),
- )),
+ ),
+ Expanded(
+ child: Text(text,
+ style: tt.bodySmall?.copyWith(
+ color: cs.onSurface.withValues(alpha: 0.7),
+ height: 1.4,
+ )),
+ ),
],
),
);