29 Commits

Author SHA1 Message Date
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
ea8cd35261 Fix deprecated methods 2023-02-09 16:00:29 +01:00
ca98da4029 Update deps and fix linting issues 2023-01-20 16:14:08 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
48ab9669c8 Convert more cases to use the ARB 2022-11-27 17:46:45 +01:00
6f2ce4a6b5 Port more uses of LocaleKeys to new translation system 2022-11-27 17:42:26 +01:00
b925da7a47 Use the generated localization instead of easy_localization
Not everywhere, but a large part of the code base.

This way, hot reloading will also reload the strings which makes for
such a better developer experience.
2022-11-19 03:02:01 +01:00
ae9228f65e Use super.key
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
7c1f92df88 Run dart fix --apply 2022-06-07 11:30:06 +02:00
6ca914fc9a Add a Widget test to Rename an existing Note
This is unfortunately failing.
2022-02-25 12:42:01 +01:00
3ede4634a3 StatefulWidget: Mark internal variables are private 2022-01-27 12:38:57 +01:00
4219adfc30 RenameDialog: Move logic to Repo class
I want all the domain logic to be in the Repo class, this way it can be
performed over another thread / connection. Also, it's far easier to
test this way.
2022-01-22 10:19:22 +01:00
a6eb613b5a Fix note renaming 2022-01-14 17:09:41 +01:00
e2b6d94eda analyzer: Fix unnecessry includes 2022-01-13 19:03:16 +01:00
015659d58f Allow a note to be renamed to whatever
Earlier one could never change a note type, and therefore its extension.
Now you can rename a note's filename to whatever and accordingly the
editor will change.

A warning message is shown when changing the file type.

Fixes #474
2021-11-15 12:39:12 +01:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
10bce9a35a LocaleKeys++ 2021-09-07 14:46:37 +02:00
2505d00dfb Replace dart:io with universal_io
Platform from dart:io cannot be used on the web for reasons. And this
way we get a fake File/Directory class which we can use for atleast
running the web version, even if it won't work.
2021-07-30 11:39:26 +02:00
53fd080214 Migrate some widgets to null safety 2021-05-17 23:03:52 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
9f2be5448f Migrate away from deprecated buttons
There are still some outlined buttons which need to be migrated, but
those aren't so trivial.
2021-03-24 15:36:53 +01:00
b3ea9c9565 Avoid using deprecated autovalidate 2020-10-02 16:17:05 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
a959101010 Make some strings translatable
Instead of hard-coding the strings.
2020-05-14 12:00:40 +02:00
9a77afcbfd Do not allow / in the filename
Fixes #102
2020-04-15 14:02:36 +02:00
3f40a2992a Add the concept of Editors
* We no longer have a separate editing and browsing view - This does
mean we loose the ability to quick flip between notes by swiping.
However, this is more how a note editor would behave. I do later want to
add that capability back.

* We have 2 editors for now - Markdown and Raw. By default we use the
Markdown editor which can be toggled between Preview / Edit mode.

I later want to add a rich text editor and a todo editor as well.
2020-01-29 00:04:24 +01:00
150543e065 RenameDialog: Do not accept a name that already exists 2020-01-27 23:27:45 +01:00
35f8559c74 Move RenameDialog to its own file
Also make it a bit more generic
2020-01-27 23:08:33 +01:00