feat(home): drop calendar card — drawer entry is enough
Remove the "this month" card from the home menu; the calendar stays reachable from the drawer and the /calendar route is unchanged. Also drop the now-unused calendar.homeSubtitle i18n key (en/es/pt/ast) and regenerate slang.
This commit is contained in:
parent
6cff0d0b11
commit
a476f17cdf
10 changed files with 2 additions and 24 deletions
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"calendar": {
|
||||
"title": "Esti mes",
|
||||
"homeSubtitle": "Qué semar y facer agora",
|
||||
"filterChip": "Esti mes",
|
||||
"nothing": "Nada anotao pa {month}."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"calendar": {
|
||||
"title": "This month",
|
||||
"homeSubtitle": "What to sow and do now",
|
||||
"filterChip": "This month",
|
||||
"nothing": "Nothing noted for {month}."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"calendar": {
|
||||
"title": "Este mes",
|
||||
"homeSubtitle": "Qué sembrar y hacer ahora",
|
||||
"filterChip": "Este mes",
|
||||
"nothing": "Nada anotado para {month}."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"calendar": {
|
||||
"title": "Este mês",
|
||||
"homeSubtitle": "O que semear e fazer agora",
|
||||
"filterChip": "Este mês",
|
||||
"nothing": "Nada anotado para {month}."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
/// To regenerate, run: `dart run slang`
|
||||
///
|
||||
/// Locales: 4
|
||||
/// Strings: 1864 (466 per locale)
|
||||
/// Strings: 1860 (465 per locale)
|
||||
///
|
||||
/// Built on 2026-07-11 at 04:40 UTC
|
||||
/// Built on 2026-07-11 at 04:45 UTC
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ class _Translations$calendar$ast extends Translations$calendar$en {
|
|||
|
||||
// Translations
|
||||
@override String get title => 'Esti mes';
|
||||
@override String get homeSubtitle => 'Qué semar y facer agora';
|
||||
@override String get filterChip => 'Esti mes';
|
||||
@override String nothing({required Object month}) => 'Nada anotao pa ${month}.';
|
||||
}
|
||||
|
|
@ -1227,7 +1226,6 @@ extension on TranslationsAst {
|
|||
dynamic _flatMapFunction(String path) {
|
||||
return switch (path) {
|
||||
'calendar.title' => 'Esti mes',
|
||||
'calendar.homeSubtitle' => 'Qué semar y facer agora',
|
||||
'calendar.filterChip' => 'Esti mes',
|
||||
'calendar.nothing' => ({required Object month}) => 'Nada anotao pa ${month}.',
|
||||
'app.title' => 'Tanemaki',
|
||||
|
|
|
|||
|
|
@ -94,9 +94,6 @@ class Translations$calendar$en {
|
|||
/// en: 'This month'
|
||||
String get title => 'This month';
|
||||
|
||||
/// en: 'What to sow and do now'
|
||||
String get homeSubtitle => 'What to sow and do now';
|
||||
|
||||
/// en: 'This month'
|
||||
String get filterChip => 'This month';
|
||||
|
||||
|
|
@ -2146,7 +2143,6 @@ extension on Translations {
|
|||
dynamic _flatMapFunction(String path) {
|
||||
return switch (path) {
|
||||
'calendar.title' => 'This month',
|
||||
'calendar.homeSubtitle' => 'What to sow and do now',
|
||||
'calendar.filterChip' => 'This month',
|
||||
'calendar.nothing' => ({required Object month}) => 'Nothing noted for ${month}.',
|
||||
'app.title' => 'Tanemaki',
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ class _Translations$calendar$es extends Translations$calendar$en {
|
|||
|
||||
// Translations
|
||||
@override String get title => 'Este mes';
|
||||
@override String get homeSubtitle => 'Qué sembrar y hacer ahora';
|
||||
@override String get filterChip => 'Este mes';
|
||||
@override String nothing({required Object month}) => 'Nada anotado para ${month}.';
|
||||
}
|
||||
|
|
@ -1229,7 +1228,6 @@ extension on TranslationsEs {
|
|||
dynamic _flatMapFunction(String path) {
|
||||
return switch (path) {
|
||||
'calendar.title' => 'Este mes',
|
||||
'calendar.homeSubtitle' => 'Qué sembrar y hacer ahora',
|
||||
'calendar.filterChip' => 'Este mes',
|
||||
'calendar.nothing' => ({required Object month}) => 'Nada anotado para ${month}.',
|
||||
'app.title' => 'Tanemaki',
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ class _Translations$calendar$pt extends Translations$calendar$en {
|
|||
|
||||
// Translations
|
||||
@override String get title => 'Este mês';
|
||||
@override String get homeSubtitle => 'O que semear e fazer agora';
|
||||
@override String get filterChip => 'Este mês';
|
||||
@override String nothing({required Object month}) => 'Nada anotado para ${month}.';
|
||||
}
|
||||
|
|
@ -1226,7 +1225,6 @@ extension on TranslationsPt {
|
|||
dynamic _flatMapFunction(String path) {
|
||||
return switch (path) {
|
||||
'calendar.title' => 'Este mês',
|
||||
'calendar.homeSubtitle' => 'O que semear e fazer agora',
|
||||
'calendar.filterChip' => 'Este mês',
|
||||
'calendar.nothing' => ({required Object month}) => 'Nada anotado para ${month}.',
|
||||
'app.title' => 'Tanemaki',
|
||||
|
|
|
|||
|
|
@ -102,14 +102,6 @@ class HomeScreen extends StatelessWidget {
|
|||
onTap: () => context.push('/inventory'),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_OutlinedMenuCard(
|
||||
key: const Key('home.calendar'),
|
||||
icon: Icons.calendar_month,
|
||||
label: t.calendar.title,
|
||||
subtitle: t.calendar.homeSubtitle,
|
||||
onTap: () => context.push('/calendar'),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_OutlinedMenuCard(
|
||||
key: const Key('home.market'),
|
||||
icon: Icons.storefront_outlined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue