-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the description from OpenLibrary #261
Conversation
lib/ui/search_ol_editions_screen/search_ol_editions_screen.dart
Outdated
Show resolved
Hide resolved
Hi @fabix please rebase your branch as it does not work on Flutter 3.10.5 after I updated master. If that's a problem let me know and I will try to just take the changes you made there. |
is it ok now? |
@@ -192,6 +194,7 @@ class _SearchOLEditionsScreenState extends State<SearchOLEditionsScreen> { | |||
onPressed: () => _saveEdition( | |||
result: item, | |||
cover: item.covers![0], | |||
work: item.works![0].key, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not null safe. What do you think about:
work: item.works != null && item.works!.isNotEmpty ? item.works![0].key : null,
@@ -40,6 +40,7 @@ class _SearchOLScreenState extends State<SearchOLScreen> | |||
required String title, | |||
String? subtitle, | |||
required String author, | |||
String? description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not necessary as description will be downloaded on the AddBookScreen.
@@ -50,6 +51,7 @@ class _SearchOLScreenState extends State<SearchOLScreen> | |||
title: title, | |||
subtitle: subtitle, | |||
author: author, | |||
description: description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as line 43
Tested, works good. Just please check the review comments. |
Changes done. To be honest, it's the first time I write in dart (and modify an Android app), so it's far from perfect 😄 ... |
It's good, don't worry and thank you for the contributions |
No description provided.