Mobile (14) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Flutter] Riverpod ์ ๋ฆฌ.. Provider ํ์ ์ํ ๋ณ๊ฒฝ ๊ฐ๋ฅ?์ฌ์ฉ ์์Provider (@riverpod ๊ธฐ๋ณธ ํจ์)โ ์ฝ๊ธฐ๋ง ๊ฐ๋ฅref.watch(isLoadingProvider)StateProviderโ ๊ฐ๋ฅref.read(isLoadingProvider.notifier).state = true;@riverpod class (StateNotifier)โ ๊ฐ๋ฅref.read(isLoadingProvider.notifier).set(true); provider๋ฅผ ์ ์ํ๋ ๊ตฌ๋ฌธ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:(์ํ๋ฅผ ์ฝ๊ธฐ๋ง ํ ์ ์๋ ๋ถ๋ณ ๊ฐ)@riverpodResult myFunction(Ref ref) { } ์ด๋ ธํ ์ด์ ๋ ํจ์(annotated function)์ด๋ ธํ ์ด์ ๋ ํจ์์ ์ด๋ฆ์ ๋ฐ๋ผ provider์ ์ํธ์์ฉํ๋ ๋ฐฉ์์ด ๊ฒฐ์ .. [Flutter] Erros.. Error: Dart library 'dart:ui' is not available on this platform. ์ด๋ ํ๋ฌํฐ ํ๋ก์ ํธ๋ฅผ ๋คํธ ํ๋ก์ ํธ ์ปดํ์ผํ๋ ๊ฒ์ผ๋ก ์ธํ ์ด ์๋ชป ๋ง์ถฐ์ ธ ์์ด์ ๊ทธ๋ ๋ค. vscode๋ผ๋ฉด ํฐ๋ฏธ๋์ flutter run ์ ์ง์ ์ ๋ ฅํ๋ฉด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ค. ์ถ์ฒ https://nx006.tistory.com/8 [Flutter] Error: Dart library 'dart:ui' is not available on this platform. ํด๊ฒฐ ๋ฐฉ๋ฒ ์ฒ์ ํ๋ฌํฐ๋ฅผ ์์ํ์์ ๋ ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋จ๋ ๊ฒฝ์ฐ๊ฐ ์๋ค. Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' .. [Flutter] Write your first Flutter app, part 1 ์ถ์ฒ https://docs.flutter.dev/get-started/codelab Write your first Flutter app, part 1 How to write a web-based app in Flutter. docs.flutter.dev ์คํํธ์ ํ์ฌ์ ์ ์๋ ์ด๋ฆ์ ์์ฑํ๋ ๊ฐ๋จํ ์ฑ ๊ตฌํ ์ฌ์ฉ์๋ ์ด๋ฆ ์ ํ, ์ทจ์, ๊ฐ์ฅ ์ข์ ์ด๋ฆ ์ ์ฅ ๊ฐ๋ฅ ์ฝ๋๋ ํ ๋ฒ์ 10๊ฐ์ ์ด๋ฆ์ ๋๋ฆฌ๊ฒ ์์ฑํจ ์ฌ์ฉ์๊ฐ ์คํฌ๋กค ํ๋ฉด ๋ ๋ง์ ์ด๋ฆ์ด ์์ฑ๋จ ์คํฌ๋กค ์ ํ ์์ Part 1 ์์ ๋ฐฐ์ธ ๋ด์ฉ iOS, Android, ๋ฐ์คํฌํฑ(์: Windows) ๋ฐ ์น์์ ์์ฐ์ค๋ฝ๊ฒ ๋ณด์ด๋ Flutter ์ฑ์ ์์ฑํ๋ ๋ฐฉ๋ฒ Flutter ์ฑ์ ๊ธฐ๋ณธ ๊ตฌ์กฐ ๊ธฐ๋ฅ ํ์ฅ์ ์ํ ํจํค์ง ์ฐพ๊ธฐ ๋ฐ ์ฌ์ฉ ๋ ๋น ๋ฅธ ๊ฐ๋ฐ ์ฃผ๊ธฐ๋ฅผ.. [Flutter] HTML ์ฝ์ ๋ฏธ๋ฆฌ๋ณด๊ธฐํ ์ ์๋ ์์ค ์ฃผ์ http://dart.dev/tools/dartdoc dartdoc API reference generation tool. dart.dev /// ๋ฉ์๋๋ ํด๋์ค ์ ์ ์์ ์์ฑํ๋ฉด dartdoc๊ณผ ๊ฐ์ ๋ฌธ์ ์์ฑ ๋๊ตฌ๋ฅผ ํตํด ๋ฌธ์ ์๋ ์์ฑ๋จ /// ์ฃผ์ void test() {} Dart cheatsheet codelab https://dart.dev/codelabs/dart-cheatsheet Dart cheatsheet codelab Interactively learn (or relearn) some of Dart's unique features. dart.dev Null-aware operators dart์์๋ null ์ผ ์๋ ์๋ ๊ฐ๋ค์ ๋ค๋ฃจ๋ handy operators๊ฐ ์๋ค. ํ๋๋ ??= assignment operator : ํ์ฌ null์ผ ๊ฒฝ์ฐ๋ง ๊ฐ์ด ํ ๋น ๋๋ค. int a; // The initial value of a is null. a ??= 3; print(a); // strings.join(','); } Cascades To perform a sequence of operations on t.. [React Native] Height and Width component์ height์ width๋ ํ๋ฉด์์ ํฌ๊ธฐ๋ฅผ ๊ฒฐ์ ํ๋ค. Fixed Dimensions ํฌ๊ธฐ๋ฅผ ์ค์ ํ๋ ๊ฐ์ฅ ์ฌํํ ๋ฐฉ๋ฒ์ ๊ณ ์ ๋ width์ height๋ฅผ style์ ์ถ๊ฐ ํ๋ ๊ฒ์ด๋ค. React Native์์ ๋ชจ๋ ํฌ๊ธฐ๋ ๋จ์๊ฐ ์๊ณ , density-independent pixels(๋ฐ๋๋ ๋ฆฝํ์?)์ ๋ํ๋ธ๋ค. ์ด ๋ฐฉ๋ฒ์ผ๋ก ํฌ๊ธฐ๋ฅผ ์ค์ ํ๋ ๊ฒ์, screen ํฌ๊ธฐ์ ์๊ด์์ด ํญ์ ์ ํํ ๋์ผํ ํฌ๊ธฐ๋ฅผ ๊ทธ๋ ค์ผ ํ๋ component์ ์ผ๋ฐ์ ์ผ๋ก ์ฐ์ธ๋ค. Flex Dimensions A component can only expand to fill available space if its parent has dimensions greater than 0. If a parent does .. [React Native] Style React Native์์ ์คํ์ผ์ ์ ์ํ ๋ ํน๋ณํ ์ธ์ด๋ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ง ์๋๋ค. ๊ทธ๋ฅ JavaScript๋ฅผ ์ฌ์ฉํ์ฌ application์ ๋์์ธ ํ๋ค. names๋ camel casing์ ์ฌ์ฉํ๋ค. (e.g. backgroundColor) ๊ตฌ์ฑ ์์๊ฐ ๋ณต์ก ํด์ง์ ๋ฐ๋ผ StyleSheet.create๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ๋ฌ ์คํ์ผ์ ํ ๊ณณ์์ ์ ์ํ๋ ๊ฒ์ด ๋ ๊น๋ํฉ๋๋ค. ์๋ฅผ ๋ค๋ฉด ๋ค์๊ณผ ๊ฐ๋ค. Text style์ Customizing ํ๋ ๋ค์ํ ๋ฐฉ๋ฒ โ https://facebook.github.io/react-native/docs/text ์ฐธ๊ณ https://facebook.github.io/react-native/docs/style React Native · A framework for bu.. ์ด์ 1 2 ๋ค์ ํฐ์คํ ๋ฆฌํด๋ฐ Developer๐ค๊ตฌ๋ ํ๊ธฐ