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

Fix/#123_marketAPI #153

Merged
merged 8 commits into from
Sep 11, 2023
Merged

Fix/#123_marketAPI #153

merged 8 commits into from
Sep 11, 2023

Conversation

urlotus
Copy link
Contributor

@urlotus urlotus commented Sep 11, 2023

๐Ÿคจ Motivation

๐Ÿ”‘ Key Changes

  • range ์˜ค๋ฅ˜
  • bad states ์˜ค๋ฅ˜ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ™ To Reviewers

  • ์ฃผ์„๊ณผ ์ฝ”๋ฉ˜ํŠธ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”!

@urlotus urlotus self-assigned this Sep 11, 2023
height: 124.spMin,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(10)),
image: marketBoard.imageUrls!.isEmpty ? null : DecorationImage(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋งˆ์ง€๋ง‰ ๊ฒŒ์‹œํŒ์ด Bad States๊ฐ€ ๋‚˜์˜จ ์ด์œ ๊ฐ€ ์ œ๋Œ€๋กœ ๋œ ๊ฐ’์„ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ–ˆ๋Š”๋ฐ ์ฐธ์กฐํ•ด์„œ ์ƒ๊ธด ์˜ค๋ฅ˜์ธ ์ค„ ์•Œ์•˜๋Š”๋ฐ ์ธ๋ฑ์Šค์™€ ๋ฆฌ์ŠคํŠธ ๊ธธ์ด ํ™•์ธํ•ด๋ณด๋‹ˆ๊นŒ ๋‹ค ๋งž๋”๋ผ๊ตฌ์š”
ํ˜น์‹œ ์ œ๋Œ€๋กœ ๋ฐ›์ง€ ์•Š์€ ๊ฐ’์ด ์žˆ๋‚˜ ํ•˜๊ณ  ์ถœ๋ ฅ์œผ๋กœ ํ•˜๋‚˜์”ฉ ์ฐ์–ด๋ณด๋‹ˆ๊นŒ ๋งจ ๋งˆ์ง€๋ง‰ ๊ฒŒ์‹œ๊ธ€์€ ์˜ˆ์ „์— ์ƒ์„ฑ๋œ ๊ฑฐ๋ผ image๊ฐ€ ๋น„์–ด์žˆ์—ˆ์Šต๋‹ˆ๋‹ค!
image๊ฐ€ ๋น„์–ด์žˆ์„ ๋•Œ์— ๋Œ€ํ•œ ์ƒํ˜ธ์ž‘์šฉ์ด ์—†์–ด์„œ Bad States ์˜ค๋ฅ˜๋ฅผ ๋ถ€๋ฅธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค
๋งˆ์ผ“์€ ์ด๋ฏธ์ง€๊ฐ€ ํ•„์ˆ˜์ง€๋งŒ ํ˜น์‹œ๋ผ๋„ ๋ชจ๋ฅผ ์ƒํ™ฉ์„ ์œ„ํ•ด ์ด๋ฏธ์ง€๊ฐ€ ๋น„์–ด์žˆ์œผ๋ฉด ์ฐธ์กฐํ•˜์ง€ ์•Š๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค!

Choose a reason for hiding this comment

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

ํ— ์ƒ๊ฐ๋ณด๋‹ค ํ—ˆ๋ฌดํ–ˆ๋˜ ์ด์œ ์ด๋„ค์š”...

}

getMoreBookmarksCounts(int page) async {
//๋ฐ›์•„์™€์„œ ๊ต์ฒดํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹Œ ์ถ”๊ฐ€๋ฅผ ํ•ด์•ผํ•˜๋ฏ€๋กœ addAll ์‚ฌ์šฉ
articleList!.addAll(await APIs.getMarketArticles(page));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋ฐ›์•„์™€์„œ ๊ต์ฒดํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹Œ ์ถ”๊ฐ€๋ฅผ ํ•ด์•ผํ•˜๋ฏ€๋กœ addAll ์‚ฌ์šฉ

final bookmarkProvider = Provider.of<BookmarksProvider>(context, listen: false);
// +1๋œ ํŽ˜์ด์ง€ ๋ถ๋งˆํฌ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋ฐ›์•„์˜จ๋‹ค.
// ๋ฐ›์•„์˜จ ๊ฒŒ์‹œ๊ธ€ ๋ฆฌ์ŠคํŠธ๋Š” addAll๋กœ ์ถ”๊ฐ€๋œ ๊ฒƒ์ด๋ฏ€๋กœ ๋ถ๋งˆํฌ ๋ฆฌ์ŠคํŠธ๋„ addAll๋กœ ์ถ”๊ฐ€ํ•ด์„œ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋กœ์งํ•„์š”
bookmarkProvider.getMoreBookmarksCounts(page);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋ฐ›์•„์˜จ ๊ฒŒ์‹œ๊ธ€ ๋ฆฌ์ŠคํŠธ๋Š” addAll๋กœ ์ถ”๊ฐ€๋œ ๊ฒƒ์ด๋ฏ€๋กœ ๋ถ๋งˆํฌ ๋ฆฌ์ŠคํŠธ๋„ addAll๋กœ ์ถ”๊ฐ€ํ•ด์„œ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋กœ์งํ•„์š”

Copy link

@KIM-JUHYEON-79 KIM-JUHYEON-79 left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹คใ…œใ…œ

@KIM-JUHYEON-79 KIM-JUHYEON-79 merged commit 5efeb88 into develop Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants