๐Ÿ‘จ‍๐Ÿ’ป kimtongting
article thumbnail
[Flutter] flutter ์—๋Ÿฌ 'Cannot run with sound null safety' / 'don't support null safety' (feat. Android Studio)

Flutter ์—๋Ÿฌ Cannot run with sound null safety ์ด์Šˆ Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:http - package:http_parser For solutions, see https://dart.dev/go/unsound-null-safety FAILURE: Build failed with an exception. ์™€ ๊ฐ™์€ ์—๋Ÿฌ๋ฉ”์„ธ์ง€๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ํ•ด๊ฒฐ ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ Run - Edit Configurations ๋ฅผ ์„ ํƒํ•˜๊ณ ! --no-sound-null-safety ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  Ok ๋ฅผ ๋ˆ„๋ฅด๋ฉด ํ•ด๊ฒฐ!!

article thumbnail
flutter ๋กœ๋”ฉ ๋„์šฐ๊ธฐ

๋ชจ๋ฐ”์ผ ๊ฐœ๋ฐœ์„ ํ•˜๋‹ค๋ณด๋ฉด, ์•„์ง ๊ฐ’์ด ๋ถˆ๋Ÿฌ์™€์ง€์ง€ ์•Š์•˜์„ ๊ฒฝ์šฐ, ๋˜๋Š” ์™„๋ฃŒ ์ƒํƒœ๊ฐ€ ์•„๋‹ ๊ฒฝ์šฐ์— ๋กœ๋”ฉ์ฐฝ์„ ๋„์›Œ์•ผ ๋  ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์ด๋Ÿด ๋•์€ ๊ฐ„๋‹จํ•˜๊ฒŒ if ๋ฌธ์„ ์ž‘์„ฑํ•œ ํ›„, else ๋‹จ๊ณ„์—์„œ CircularProgressIndicator(); ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ, ๋กœ๋”ฉ์ฐฝ์„ ๋„์šฐ๋ฉด ๋œ๋‹ค.

article thumbnail
Flutter DEBUG ๋ผ๋ฒจ ์ œ๊ฑฐ

Shfit ๋‘๋ฒˆ ๋ˆŒ๋Ÿฌ์„œ ๊ฒ€์ƒ‰์ฐฝ ์‹คํ–‰ ํ›„, debugShowCheckedModeBanner ๊ฒ€์ƒ‰ app.dart ํŒŒ์ผ์˜ const CupertinoApp, const MaterialApp ๋‘ ๊ณณ ๋ชจ๋‘ this.debugShowCheckedModeBanner ๋ฅผ false ๋กœ ์ˆ˜์ •

article thumbnail
Flutter ์ž๋™์™„์„ฑ

Flutter๋Š” ์ฃผ๋กœ Android Studio IDE์—์„œ ๊ฐœ๋ฐœ๋œ๋‹ค. ๋‹จ์ˆœํ•œ ๊ฒƒ์„ ์ฐพ๊ณ  ๋ฐ˜๋ณต์ ์ธ ์ผ์„ ์‹ซ์–ดํ•˜๋Š” ๊ฐœ๋ฐœ์ž๋“ค์€ ๋Š˜ ์ž๋™์™„์„ฑ์„ ์ฐพ๊ฒŒ๋œ๋‹ค. ํด๋ž˜์Šค๋ฅผ ์ƒ์„ฑํ•  ๋•Œ, ์ผ์ผํžˆ ์น˜์ง€ ์•Š๋”๋ผ๋„ ์ž๋™์™„์„ฑ์ด ๋˜๋ฉด ์–ผ๋งˆ๋‚˜ ์ข‹์„๊นŒ.. ๋งˆ์น˜ java์˜ public static void main(String[] args)๊ณผ ๊ฐ™์ด ๋ง์ด๋‹ค. ๋ฌผ๋ก  ๋‹น์—ฐํžˆ ์ง€์›ํ•œ๋‹ค. stateless widget์ด๋‚˜ stateful widget์„ ์ด์šฉํ•  ๋•Œ, ์œ ์šฉํ•˜๋‹ค. #1. StateLess stless + Enter ์ด ๋ช…๋ น์–ด๋ฅผ ์น˜๊ฒŒ ๋˜๋ฉด, ์ด๋ ‡๊ฒŒ ์ž๋™์™„์„ฑ์ด ์ด๋ฃจ์–ด์ง€๊ณ , #2. StateFul stful + Enter ์ด ๋ช…๋ น์–ด๋ฅผ ์น˜๊ฒŒ ๋˜๋ฉด, ์ด๊ฒƒ ๋˜ํ•œ ์ž๋™์™„์„ฑ์ด ์ด๋ฃจ์–ด์ง„๋‹ค.