Skip to content

Commit

Permalink
v1.10.1 (#330)
Browse files Browse the repository at this point in the history
* [327] Fix bin with wrong list of notes (#329)

* [326] Fix empty labels placeholder text (#328)
  • Loading branch information
maelchiotti authored Dec 23, 2024
1 parent 3f2a15b commit f27a81a
Show file tree
Hide file tree
Showing 13 changed files with 60 additions and 34 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.10.0 - 2024-12-21
## 1.10.1 - 2024-12-23

## Fixed

- Bin page not displaying the deleted notes
- Missing translation for "No labels" placeholder

## 1.10.0 - 2024-12-22

### Added

Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/230.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FIXED
- Bin page not displaying the deleted notes
- Missing translation for "No labels" placeholder
20 changes: 0 additions & 20 deletions fastlane/metadata/android/fr-FR/100.txt

This file was deleted.

3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/230.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CORRIGÉ
- Corbeille n'affiche pas les notes supprimées
- Traduction manquante pour le texte "Pas d'étiquette"
6 changes: 2 additions & 4 deletions lib/common/enums/localization_completion.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'package:dart_helper_utils/dart_helper_utils.dart';
import 'package:flutter/material.dart';

// ignore_for_file: public_member_api_docs

/// Lists the localization completion for every supported language.
enum LocalizationCompletion {
/// Czech.
Expand All @@ -24,13 +22,13 @@ enum LocalizationCompletion {
hi(Locale('hi'), .98),

/// Polish.
pl(Locale('pl'), .74),
pl(Locale('pl'), .73),

/// Portuguese.
pt(Locale('pt'), .74),

/// Russian.
ru(Locale('ru'), .98),
ru(Locale('ru'), .99),

/// Turkish.
tr(Locale('tr'), .98),
Expand Down
3 changes: 2 additions & 1 deletion lib/common/widgets/notes/notes_list.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
import '../../../providers/bin/bin_provider.dart';
import '../../constants/paddings.dart';
import '../../constants/separators.dart';
import '../../constants/sizes.dart';
Expand Down Expand Up @@ -76,7 +77,7 @@ class NotesList extends ConsumerWidget {
error: (exception, stackTrace) => ErrorPlaceholder(exception: exception, stackTrace: stackTrace),
loading: () => const LoadingPlaceholder(),
)
: ref.watch(notesProvider).when(
: ref.watch(binProvider).when(
data: (notes) => child(context, ref, notes),
error: (exception, stackTrace) => ErrorPlaceholder(exception: exception, stackTrace: stackTrace),
loading: () => const LoadingPlaceholder(),
Expand Down
16 changes: 9 additions & 7 deletions lib/common/widgets/placeholders/empty_placeholder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@ import '../../constants/constants.dart';
import '../../constants/paddings.dart';
import '../../constants/sizes.dart';

/// Placeholder widget for empty content.
/// Placeholder.
class EmptyPlaceholder extends StatelessWidget {
/// Default constructor.
/// Placeholder widget for pages with an empty content (no notes, labels or empty bin).
///
/// Displays a big icon and a short text indicating that the page is empty.
const EmptyPlaceholder({super.key, this.icon, this.text});

/// Empty notes lists.
EmptyPlaceholder.notes({super.key})
: icon = Icons.notes,
text = l.placeholder_notes;

/// Empty labels.
EmptyPlaceholder.labels({super.key})
: icon = Icons.label_outline,
text = l.placeholder_labels;

/// Empty bin.
EmptyPlaceholder.bin({super.key})
: icon = Icons.delete_outline,
text = l.placeholder_bin;

/// Empty labels.
const EmptyPlaceholder.labels({super.key})
: icon = Icons.label_outline,
text = 'No labels';

/// Icon to display.
final IconData? icon;

Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/translations/app_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@
"@placeholder_notes": {
"description": "Placeholder on the notes page when there are no notes."
},
"placeholder_labels": "Žádné štítky",
"@placeholder_labels": {
"description": "Placeholder on the labels page when there are no labels."
},
"placeholder_bin": "Žádné odstraněné poznámky",
"@placeholder_bin": {
"description": "Placeholder on the bin page when there are no notes."
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/translations/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@
"@placeholder_notes": {
"description": "Placeholder on the notes page when there are no notes."
},
"placeholder_labels": "No labels",
"@placeholder_labels": {
"description": "Placeholder on the labels page when there are no labels."
},
"placeholder_bin": "No deleted notes",
"@placeholder_bin": {
"description": "Placeholder on the bin page when there are no notes."
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/translations/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@
"@placeholder_notes": {
"description": "Placeholder on the notes page when there are no notes."
},
"placeholder_labels": "Aucune étiquette",
"@placeholder_labels": {
"description": "Placeholder on the labels page when there are no labels."
},
"placeholder_bin": "Aucune note supprimée",
"@placeholder_bin": {
"description": "Placeholder on the bin page when there are no notes."
Expand Down
16 changes: 16 additions & 0 deletions lib/l10n/translations/app_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,14 @@
"@settings_accessibility": {
"description": "Title of the settings page regarding the accessibility."
},
"settings_accessibility_text_size": "Размер шрифта",
"@settings_accessibility_text_size": {
"description": "Title of the accessibility settings section regarding the text size."
},
"settings_accessibility_text_color": "Цвет текста",
"@settings_accessibility_text_color": {
"description": "Title of the accessibility settings section regarding the text color."
},
"settings_accessibility_description": "Цвет текста, размер текста",
"@settings_accessibility_description": {
"description": "Description of the accessibility settings page."
Expand All @@ -467,6 +475,14 @@
"@settings_text_scaling": {
"description": "Title of the text scale setting tile."
},
"settings_bigger_titles": "Увеличенный заголовок",
"@settings_bigger_titles": {
"description": "Title of the setting tile to use bigger titles on the notes tiles."
},
"settings_bigger_titles_description": "Увеличить размер заголовка у заметки",
"@settings_bigger_titles_description": {
"description": "Description of the setting tile to use bigger titles on the notes tiles."
},
"settings_white_text_dark_mode": "Белый текст в тёмном режиме",
"@settings_white_text_dark_mode": {
"description": "Title of the text scale setting tile."
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/translations/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@
"@placeholder_notes": {
"description": "Placeholder on the notes page when there are no notes."
},
"placeholder_labels": "无标签",
"@placeholder_labels": {
"description": "Placeholder on the labels page when there are no labels."
},
"placeholder_bin": "没有删除的笔记",
"@placeholder_bin": {
"description": "Placeholder on the bin page when there are no notes."
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: localmaterialnotes
description: Simple, local, material design notes
repository: https://github.com/maelchiotti/LocalMaterialNotes

version: 1.10.0+22
version: 1.10.1+23
publish_to: none

environment:
Expand Down

0 comments on commit f27a81a

Please sign in to comment.