-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improvements (#10) * fix: "import" strings in french * fix: small improvements to routes * refactor: clean app/build.gradle * fix: Kotlin plugin import * feat: use floating snack bars * fix: decode imported file as UTF-8 * fix: use launchUrl instead of launchUrlString whenever possible * fix: padding at bottom of editor * chore: upgrade fleather version * fix: remove drawer on editor page * feat: use radio buttons where appropriate in settings dialogs * chore: bump app version * docs: remake screenshots * docs: add screenshots to README * Readme (#13) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * Icon (#14) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * ci: try to fix pub get for flutter_launcher_icons * Improvements (#12) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * feat: add hint text to the editor * feat: autofocus note body instead of title * feat: delete note if it is empty * feat: delete note if it is empty * feat: remove distracting transition between notes list / bin and the note editor * Icon (#14) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * ci: try to fix pub get for flutter_launcher_icons * chore: get dependencies * chore: format * chore: get dependencies * Banners (#15) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * feat: add hint text to the editor * feat: autofocus note body instead of title * feat: delete note if it is empty * feat: delete note if it is empty * feat: remove distracting transition between notes list / bin and the note editor * feat: update play store and github banners * Icon (#14) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * ci: try to fix pub get for flutter_launcher_icons * Improvements (#12) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * feat: add hint text to the editor * feat: autofocus note body instead of title * feat: delete note if it is empty * feat: delete note if it is empty * feat: remove distracting transition between notes list / bin and the note editor * Icon (#14) * docs: fix screenshots alts * docs: remove alternatives and update credits * Add "get it on" badges * feat: add adaptive icon including monochrome * ci: try to fix pub get for flutter_launcher_icons * chore: get dependencies * chore: format * chore: get dependencies * chore: format * Tiles (#17) * fix: exit selection mode when adding a note * fix: fix tiles background color when scrolling and improve selected coloring * fix: fix padding for fab by adding bottom system ui padding * Pubspec (#16) * chore: bump version * chore: upgrade dependencies and regenerate files * Tiles (#17) * fix: exit selection mode when adding a note * fix: fix tiles background color when scrolling and improve selected coloring * fix: fix padding for fab by adding bottom system ui padding * Fixes (#19) * feat: improve error handling and snackbar messages for export and import * fix: add note action crashing when the current route was not the notes list and when app was closed * fix: remove useless editor FocusNode * fix: action of quick action * fix: remove prints * style: enforce always_put_control_body_on_new_line and curly_braces_in_flow_control_structures (#21) * fix: editor no longer resets focus when page rebuilds (#22) * Add Turkish localization (#23) * feat: add turkish .arb file and generate strings * refactor: improve handling of hardcoded localizations * refactor: remove useless usePathUrlStrategy * docs: add Turkish to supported languages * docs: add credits for localizations and contributing section to README * fix: wrong locale in locale check for hardcoded strings * style: remove prints * docs: add localization section to new CONTRIBUTING.md * feat: add missing hardcoded localization * fix: set version to 1.2.0 instead of 1.2.1 (#24)
- Loading branch information
1 parent
5a6e31b
commit 2e6a2cd
Showing
69 changed files
with
978 additions
and
341 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Contributing | ||
|
||
## Localization | ||
|
||
In order to improve or add support for a language, please follow these steps: | ||
|
||
- Localized strings can be found in two different places: | ||
- The `app_XX.arb` file located in [`lib/l10n`](lib/l10n) (where `XX` corresponds to the language code), that contains the vast majority of all strings. Please make sure that you do not localize any parameter name (ex: `{parameter}`) and that you do escape single quotes (ex: `I''m ok` instead of `I'm ok`). | ||
- The [`hardcoded_localizations.dart`](lib/l10n/hardcoded_localizations.dart), that contains a few specific strings that need to be hardcoded. | ||
- Localized strings can be generated with the `flutter gen-l10n` command. Check that the [`unstranslated.txt`](lib/l10n/untranslated.txt) file is empty, otherwise it will indicate which strings you did not translate. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+885 Bytes
android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+885 Bytes
android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#2278e9</color> | ||
</resources> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,6 +1,9 @@ | ||
# dart run flutter_launcher_icons | ||
flutter_launcher_icons: | ||
image_path: "assets/logos/icon.png" | ||
android: "launcher_icon" | ||
min_sdk_android: 34 | ||
image_path: "assets/icons/icon.png" | ||
adaptive_icon_foreground: "assets/icons/icon_foreground.png" | ||
adaptive_icon_monochrome: "assets/icons/icon_foreground_monochrome.png" | ||
adaptive_icon_background: "#2278e9" | ||
android: true | ||
min_sdk_android: 21 | ||
ios: false |
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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
import 'package:localmaterialnotes/common/actions/select.dart'; | ||
import 'package:localmaterialnotes/common/routing/router.dart'; | ||
import 'package:localmaterialnotes/common/routing/router_route.dart'; | ||
import 'package:localmaterialnotes/models/note/note.dart'; | ||
import 'package:localmaterialnotes/providers/current_note/current_note_provider.dart'; | ||
import 'package:localmaterialnotes/providers/notes/notes_provider.dart'; | ||
|
||
Future<void> addNote(BuildContext context, WidgetRef ref, {String? content}) async { | ||
exitSelectionMode(ref); | ||
|
||
final note = content == null ? Note.empty() : Note.content(content); | ||
|
||
ref.read(currentNoteProvider.notifier).set(note); | ||
await ref.read(notesProvider.notifier).add(note); | ||
|
||
if (!context.mounted) return; | ||
if (!context.mounted) { | ||
return; | ||
} | ||
|
||
final route = RouterRoute.editor.fullPath!; | ||
final editorRoute = RouterRoute.editor.fullPath!; | ||
final editorParameters = EditorParameters.from({'readonly': false, 'autofocus': true}); | ||
|
||
// If the editor is already opened with another note, replace the route with the new editor | ||
RouterRoute.isEditor | ||
? context.pushReplacement(route, extra: editorParameters) | ||
: context.push(route, extra: editorParameters); | ||
? context.pushReplacement(editorRoute, extra: editorParameters) | ||
: context.push(editorRoute, extra: editorParameters); | ||
} |
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
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
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
Oops, something went wrong.