-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
535 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
language: | ||
strict-casts: true | ||
strict-inference: true | ||
strict-raw-types: true | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at | ||
# https://dart-lang.github.io/linter/lints/index.html. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options | ||
prefer_single_quotes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
arb-dir: lib/localizations | ||
template-arb-file: app_en.arb | ||
output-localization-file: app_localizations.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
|
||
/// Gets the `AppLocalizations` of the context, must only be called within a | ||
/// app with `localizationsDelegates` or will crash. This is used for obtaining | ||
/// a string that is in the language of the current context. | ||
/// | ||
/// Example: | ||
/// ```dart | ||
/// Text(locale(context).helloWorld) | ||
/// ``` | ||
AppLocalizations locale(BuildContext context) { | ||
return AppLocalizations.of(context)!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"startTyping": "Start typing…", | ||
"@startTyping": { | ||
"description": "Hint text on a black entry" | ||
}, | ||
"previousEntries": "Previous Entries", | ||
"@previousEntries": { | ||
"description": "Previous Entries page title" | ||
}, | ||
"entryDate": "{date}", | ||
"@entryDate": { | ||
"description": "A date for a previous entry", | ||
"placeholders": { | ||
"date": { | ||
"type": "DateTime", | ||
"format": "yMMMd" | ||
} | ||
} | ||
}, | ||
"settings": "Settings", | ||
"@settings": { | ||
"description": "Settings page title" | ||
}, | ||
"theme": "Theme", | ||
"@theme": { | ||
"description": "Label for theme setting" | ||
}, | ||
"lightTheme": "Light", | ||
"@lightTheme": { | ||
"description": "Label for light theme option" | ||
}, | ||
"systemTheme": "System", | ||
"@systemTheme": { | ||
"description": "Label for system theme option" | ||
}, | ||
"darkTheme": "Dark", | ||
"@darkTheme": { | ||
"description": "Label for dark theme option" | ||
}, | ||
"fontSize": "Font size", | ||
"@fontSize": { | ||
"description": "Label for font size setting" | ||
}, | ||
"checkSpelling": "Check spelling", | ||
"@checkSpelling": { | ||
"description": "Label for spell checking setting" | ||
}, | ||
"colorScheme": "Color scheme", | ||
"@colorScheme": { | ||
"description": "Label for color scheme setting" | ||
}, | ||
"filenameFormat": "Filename format", | ||
"@filenameFormat": { | ||
"description": "Label for filename format setting" | ||
}, | ||
"changeSaveFolder": "Change path to save folder", | ||
"@changeSaveFolder": { | ||
"description": "Button to change save folder" | ||
}, | ||
"exportEntries": "Export diary entries", | ||
"@exportEntries": { | ||
"description": "Button to export previous entries" | ||
}, | ||
"resetSettings": "Reset settings (individually selectable)", | ||
"@resetSettings": { | ||
"description": "Button to reset settings" | ||
}, | ||
"cancel": "Cancel", | ||
"@cancel": { | ||
"description": "Cancel action" | ||
}, | ||
"unsavedChanges": "You have unsaved changes", | ||
"@unsavedChanges": { | ||
"description": "Dialog when attempting to close with unsaved changes on desktop" | ||
}, | ||
"save": "Save", | ||
"@save": { | ||
"description": "Button to save changes" | ||
}, | ||
"discardChanges": "Don't save", | ||
"@discardChanges": { | ||
"description": "Button to discard changes" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"startTyping": "Empezar a escribir…", | ||
"previousEntries": "Entradas Anteriores", | ||
"entryDate": "{date}", | ||
"settings": "Ajustes", | ||
"theme": "Tema de colores", | ||
"lightTheme": "Claro", | ||
"systemTheme": "Automático", | ||
"darkTheme": "Oscuro", | ||
"fontSize": "Tamaño de fuente", | ||
"checkSpelling": "Revisar la ortografía", | ||
"colorScheme": "Color de la aplicación", | ||
"filenameFormat": "Formato de nombre de archivo", | ||
"changeSaveFolder": "Cambiar la ruta a la carpeta para guardar datos", | ||
"exportEntries": "Exportar entradas del diario", | ||
"resetSettings": "Reiniciar ajustes", | ||
"cancel": "Cancelar", | ||
"unsavedChanges": "Tiene cambios sin guardar", | ||
"save": "Guardar cambios", | ||
"discardChanges": "Descartar" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"startTyping": "Введите текст…", | ||
"previousEntries": "Предыдущий Записи", | ||
"entryDate": "{date}", | ||
"settings": "Настройки", | ||
"theme": "Тема", | ||
"lightTheme": "Светлая", | ||
"systemTheme": "По умолчанию", | ||
"darkTheme": "Тёмная", | ||
"fontSize": "Размер шрифта", | ||
"checkSpelling": "Проверять орфографию", | ||
"colorScheme": "Цвет приложения", | ||
"filenameFormat": "Формат имени файла", | ||
"changeSaveFolder": "Изменить путь к папке сохранения данных", | ||
"exportEntries": "Экспортировать записи ежедневника", | ||
"resetSettings": "Восстановить настройки по умолчанию (выбор для каждой настройки)", | ||
"cancel": "Отменить", | ||
"unsavedChanges": "У вас есть несохраненные изменения", | ||
"save": "Сохранять", | ||
"discardChanges": "Не сохранять" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.