Skip to content
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

Merged
merged 5 commits into from
Jun 24, 2023
Merged

Conversation

fabix
Copy link
Contributor

@fabix fabix commented Apr 23, 2023

No description provided.

@mateusz-bak
Copy link
Owner

mateusz-bak commented Jun 15, 2023

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.

@fabix
Copy link
Contributor Author

fabix commented Jun 18, 2023

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,
Copy link
Owner

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,
Copy link
Owner

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,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as line 43

@mateusz-bak
Copy link
Owner

Tested, works good. Just please check the review comments.

@fabix
Copy link
Contributor Author

fabix commented Jun 24, 2023

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 😄 ...

@mateusz-bak
Copy link
Owner

It's good, don't worry and thank you for the contributions

@mateusz-bak mateusz-bak merged commit 5224133 into mateusz-bak:master Jun 24, 2023
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants