[Flutter] ๊ฐ„๋‹จํ•œ ์ฃผ์‚ฌ์œ„ ๊ตด๋ฆฌ๊ธฐ
ยท
๊ฐœ๋ฐœ ํƒ€์ž„์บก์Š/Flutter
์ด๋Ÿฌํ•œ ํ˜•ํƒœ์˜ ์ฃผ์‚ฌ์œ„ ์•ฑ์„ ๋งŒ๋“ค์–ด๋ณธ๋‹ค. ์™„์„ฑ๋œ ์ฃผ์‚ฌ์œ„ ์•ฑ์˜ ๋ชจ์Šต์ด๋‹ค. ๊ตฌ์กฐ๋„ ์ด๋ฒˆ์— ๋งŒ๋“ค ์•ฑ์˜ ๊ตฌ์กฐ๋„์ด๋‹ค. github.com/londonappbrewery/dicee-flutter ์šฐ์„  ๊นƒ์—์„œ ํด๋ก ์„ ๋ฐ›์•„์˜จ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ AppBar, App Icon, background color ๋“ฑ์ด ๋ฏธ๋ฆฌ ์„ค์ •์ด ๋˜์–ด์žˆ๋‹ค. ์ด์ œ ์—ฌ๊ธฐ์— ์ฃผ์‚ฌ์œ„ ์ด๋ฏธ์ง€๋ฅผ ์ถ”๊ฐ€ํ•ด๋ณด์ž ์ด๋ฏธ์ง€๊ฐ€ ํ™”๋ฉด๋ณด๋‹ค ํฌ๊ธฐ ๋•Œ๋ฌธ์— ๋…ธ๋ž€์ƒ‰๊ณผ ๊ฒ€์€์ƒ‰์ด ๊ต์ฐจ๋œ ์ด์ƒํ•œ ์ด๋ฏธ์ง€๊ฐ€ ๋‚˜ํƒ€๋‚œ๋‹ค. Expanded ์—ฌ๊ธฐ์„œ Expanded ์œ„์ ฏ์ด ์‚ฌ์šฉ๋œ๋‹ค. Expanded ์œ„์ ฏ์€ ์ž์‹์ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๊ณต๊ฐ„์„ ์ฑ„์šฐ๋„๋ก ํ–‰, ์—ด ๋˜๋Š” ์œ ํ•œํ•œ ์˜์—ญ์˜ ์ž์‹์„ ํ™•์žฅํ•˜๋Š” ์œ„์ ฏ์ด๋‹ค. Expanded ์œ„์ ฏ์„ ์‚ฌ์šฉํ•œ ๋ชจ์Šต Flex Flex๋Š” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ ๋น„์œจ์„ ์กฐ์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. ๋””ํดํŠธ ..
[Flutter] ํ”Œ๋Ÿฌํ„ฐ ์ด๋ฏธ์ง€(image) ๋„ฃ๊ธฐ + AppBar ๋งŒ๋“ค๊ธฐ
ยท
๊ฐœ๋ฐœ ํƒ€์ž„์บก์Š/Flutter
์ด๋ฒˆ ํ”„๋กœ์ ํŠธ์˜ ๊ตฌ์กฐ๋„์ž…๋‹ˆ๋‹ค. import 'package:flutter/material.dart'; void main() { runApp(MaterialApp( home: Scaffold( backgroundColor: Colors.grey, appBar: AppBar( title: Text('I Am Poor'), backgroundColor: Colors.black12, ), body: Center( child: Image( image: AssetImage('images/coal.png'), ), ), ), )); } ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ์˜ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค. MaterialApp์•ˆ์— Scaffold๋ผ๋Š” layout ์œ„์ ฏ์„ ๋„ฃ์–ด์ฃผ๋ฉด appBar, Body, BottomNavigationBar, FloatingAc..
[Flutter] Mac์—์„œ Flutter ์„ค์น˜ํ•˜๊ธฐ
ยท
๊ฐœ๋ฐœ ํƒ€์ž„์บก์Š/Flutter
Flutter ๋จผ์ € ์ด๊ณณ์— ๋“ค์–ด๊ฐ€์ค€๋‹ค. flutter.dev/docs/get-started/install Install Install Flutter and get started. Downloads available for Windows, macOS, Linux, and Chrome OS operating systems. flutter.dev ๊ทธ ๋‹ค์Œ macOS ํด๋ฆญํ•œ๋‹ค. Flutter SDK์„ค์น˜ ๊ทธ๋Ÿผ ์ด๋Ÿฐ ํ™”๋ฉด์ด ๋œจ๋Š”๋ฐ ์ € ํŒŒ๋ž€ ์ƒ์ž๋ฅผ ํด๋ฆญํ•ด์ฃผ๋ฉด ๋œ๋‹ค. ๊ทธ๋Ÿผ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์™„๋ฃŒ๋œ๋‹ค. ๋‚˜๋Š” kang์ด๋ผ๋Š” ํด๋”์•ˆ์— ์ง‘์–ด๋„ฃ์–ด์ฃผ์—ˆ๋‹ค. ์œ„์˜ ๋งํฌ์—์„œ๋Š” ์••์ถ•์„ ํ’€๋ผ๊ณ  ๋‚˜์˜ค๋Š”๋ฐ... ๊ตณ์ด ์•ˆํ’€์–ด๋„ ํ’€๋ ค์žˆ์–ด์„œ ํ’€์ง€์•Š์•˜๋‹ค. PATH ์ถ”๊ฐ€ํ•˜๊ธฐ ์—ฌ๊ธฐ์„œ ์‚ฝ์งˆ์„ ์ข€ ๋งŽ์ดํ–ˆ๋‹ค... bash_profile์— PATH๋ฅผ ์ถ”๊ฐ€ํ•˜๋ ค๋Š”๋ฐ ์ž..
[Python] Matplotlib ๊ธฐ์ดˆ ์ •๋ฆฌ
ยท
๊ฐœ๋ฐœ ํƒ€์ž„์บก์Š/Python
Matplotlib๋Š” plotting ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค. matplotlib.pyplot ๋ชจ๋“ˆ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ ๋ฐฐ์›Œ๋ณด์ž. import matplotlib.pyplot as plt ๋จผ์ € ์œ„์™€ ๊ฐ™์ด importํ•ด์ค€๋‹ค. %matplotlib inline ๋‹ค์Œ๊ณผ ๊ฐ™์€iPython command๋ฅผ ์‹คํ–‰ํ•จ์œผ๋กœ์จ ์ฐจํŠธ๋“ค์„ ๋””์Šคํ”Œ๋ ˆ์ด ํ•  ์ˆ˜ ์žˆ๋‹ค. Plotting Matplotlib์—์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๊ธฐ๋Šฅ์€ 2์ฐจ์› ๋ฐ์ดํ„ฐ๋ฅผ ๊ทธ๋ž˜ํ”„๋กœ ๊ทธ๋ฆด ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” plot์ด๋‹ค. x = np.arange(0, 3 * np.pi, 0.1) print(x) ๊ฒฐ๊ณผ [0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2. 2.1 2.2 2.3 2.4 2...