๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ18

Testing Flutter apps ํ”Œ๋Ÿฌํ„ฐ 3๊ฐ€์ง€ ์œ ํ˜•์˜ ํ…Œ์ŠคํŠธ ์ง€์› A unit test tests a single function, method, or class. A widget test (in other UI frameworks referred to as component test) tests a single widget. An integration test tests a complete app or a large part of an app. Unit test ๋‹จ์ผ ํ•จ์ˆ˜, ๋ฉ”์„œ๋“œ ๋˜๋Š” ํด๋ž˜์Šค๋ฅผ ํ…Œ์ŠคํŠธ ํ…Œ์ŠคํŠธ์˜ ๋ชฉํ‘œ๋Š” ๋‹ค์–‘ํ•œ ์กฐ๊ฑด์—์„œ ๋…ผ๋ฆฌ ๋‹จ์œ„์˜ ์ •ํ™•์„ฑ์„ ํ™•์ธ Widget test 2020. 9. 5.
how combine multiple stream with RxDart ์ŠคํŠธ๋ฆผ์ปจํŠธ๋กค๋Ÿฌ๋Š” 1๊ฐœ์˜ ์ŠคํŠธ๋ฆผ์ด ๊ธฐ๋ณธ๊ฐ’ stream to have more than one listener then you need to create a broadcast stream. ํ•˜๋‚˜ ์ด์ƒ์˜ ๋ฆฌ์Šค๋„ˆ๋ฅผ ๊ฐ€์ง€๋ ค๋ฉด ๋ธŒ๋กœ๋“œ ์บ์ŠคํŠธ ์ŠคํŠธ๋ฆผ ํ•„์š” listeners will only receive events from the moment they start listening to the string. ๋ฆฌ์Šค๋„ˆ๋Š” ๋ฌธ์ž์—ด์„ ๋“ฃ๊ธฐ ์‹œ์ž‘ํ•˜๋Š” ์ˆœ๊ฐ„๋ถ€ํ„ฐ ์ด๋ฒคํŠธ๋ฅผ ์ˆ˜์‹  2020. 9. 2.
Provider ๊ณต๋ถ€ ์ค‘ (ValueNotifier, ChangeNotifier ) Provider๋ฅผ ์ž์„ธํžˆ ๊ฐ€๋ฅด์น˜๋ ค๊ณ  ์ŠคํŠธ๋ฆผ์„ ๋ฐฐ์› ๊ตฌ๋‚˜๋ผ๋Š” ์ƒ๊ฐ ๋งŽ์ด ๋ฐฐ์šด๊ฑฐ ๊ฐ™์€๋ฐ๋„ ์ˆ˜์—…์ด ์•„์ง ๋ช‡์‹œ๊ฐ„ ๋‚จ์•„์žˆ๊ณ .. ์ € ๋ช‡์‹œ๊ฐ„์ด ๋‚ด๊ฐ€ ํ•˜๋ฉด ๋ช‡ ์ผ์ด ๋˜๋Š” ๋งˆ๋ฒ• ๊ทธ๋ž˜๋„ ๊พธ์ค€ํžˆ ํ•ด๋ด…์‹œ๋‹ค :) 2020. 8. 27.
ํ”Œ๋Ÿฌํ„ฐ Bloc ๊ณต๋ถ€ ์ค‘ (2/2) //stateless Widget์œผ๋กœ ๋ณ€๊ฒฝ ๋ถˆ๊ฐ€ == TextEditingController๊ฐ€ ์ƒํƒœ ์ถ”์ ํ•˜๊ธฐ์— ๋ถ€์ž‘์šฉ ๋ฐœ์ƒ ๊ฐ€๋Šฅ stateless Widget ๋ณ€๊ฒฝ ๊ฐ€๋Šฅ == ์ž…๋ ฅ ๊ตฌ์„ฑ์— ๋”ฐ๋ผ ํ•ญ์ƒ ๋™์ผํ•œ ๋ฐฉ์‹์œผ๋กœ ๋ณด์ด๊ณ  ๋™์ž‘ ํ•  ๋•Œ Flutter Engine ์œ„์ ฏ์—์„œ ์œ„์น˜๊ฐ€ ํ™”๋ฉด์—์„œ ๋ฐ”๋€Œ์ง€ ์•Š๊ณ  ๋ณ€๊ฒฝ์ด ํ•„์š”์—†์„์Œ ํ”Œ๋Ÿฌํ„ฐ๊ฐ€ ๊ฐ์ง€ํ•จ ์œ„์ ฏ์„ ๋‹ค์‹œ ๋นŒ๋“œํ•œ๋‹ค๊ณ  ํ•ด์„œ ์œ„์ ฏ์ด ๋ฐ˜๋“œ์‹œ ๋‹ค์‹œ ๊ทธ๋ ค์ง€๋Š”๊ฒŒ ์•„๋‹˜ the performance is optimal to sum up. in this case it is perfectly fine to use a stream builder. ์š”์•ฝํ•˜๋ฉด ์„ฑ๋Šฅ์ด ์ตœ์ . ์ด ๊ฒฝ์šฐ ์ŠคํŠธ๋ฆผ ๋นŒ๋”๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹๋‹ค. ๋ชจ๋ธ์ด ๋ณ€๊ฒฝ ๋  ๋•Œ ์ „์ฒด ํ˜•ํƒœ๋ฅผ ์žฌ ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•ด ํ•ญ์ƒ ์„ฑ๋Šฅ์— ๋Œ€ํ•ด ์ƒ๊ฐํ•˜.. 2020. 8. 26.