22 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
9bac502fb0 ProOverlay: Do not show it when in Pro mode 2023-01-20 12:32:08 +01:00
d6abbbb9b5 Remove the entire concept of Features
GitJournal is no longer going to be a product where it's paid per
feature. Instead it'll just be a paid one time thing.
2023-01-19 18:21:37 +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
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
68d3e95228 Implement Feature toggling based on payment expiry date
Instead of a boolean value
2022-01-17 17:38:37 +01:00
6230e2b3df Rename AppSettings to AppConfig
I just want all the 'Settings' classes to the UI. In the end it really
doesn't matter. This was probably a waste of 5 minutes.
2021-10-27 20:47:57 +02:00
7e0a77ace3 Fix many cases of 'avoid-ignoring-return-values'
Now that dart-code-metrics has been updated, this lint can finally be
used. So far all of these are false positives, in the sense that I don't
care about their return values.

I wish there was an easy way of marking functions whose return value
shouldn't ever be ignored.
2021-09-27 18:39:18 +02:00
905b05279d ProOverlay: Use the disabled color
It blends in a bit better.
2021-09-16 16:23:29 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
7012e2b533 Stop using deprecated accentColor
For Flutter 2.5
2021-09-13 17:32:33 +02:00
455844e9b0 LocaleKeys++ 2021-08-26 13:54:39 +02:00
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
53fd080214 Migrate some widgets to null safety 2021-05-17 23:03:52 +02:00
813b4c8436 Move analytics code to its own folder 2021-04-26 09:06:51 +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
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
706c086525 Make sure ProOverlay is only used with Pro features 2020-08-10 16:07:10 +02:00
c048ead8a9 Log every feature and how we reach the purchase page
We now have a list of all the features that are implemented, and we can
use that to show a kind of feature list which can be used to -

1. Move away from app rental model
2. Showcase a feature list; see WorkingCopy
2020-08-10 16:05:26 +02:00
9d55b449d3 Settings: Access it through the Provider
Make it a ChageNotifier and try to access it through the Provider
instead of like a global variable. This way, the state is better
managed and it'll be easier to split out Settings into smaller classes.
2020-08-09 01:29:22 +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
ef57e263ba ProSettingsOverlay -> ProOverlay
Also move it to its own file
2020-05-14 16:10:09 +02:00