๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

Flutter2

[Flutter] AppBar transparent ํˆฌ๋ช…์ƒ‰์œผ๋กœ, Body ์œ„์— ๊ฒน์น˜๊ธฐ @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( centerTitle: true, //Title text ๊ฐ€์šด๋ฐ ์ •๋ ฌ title: Text(widget.title), backgroundColor: Colors.transparent, //appBar ํˆฌ๋ช…์ƒ‰ elevation: 0.0, //appBar ๊ทธ๋ฆผ์ž ๋†๋„ ์„ค์ • (๊ฐ’ 0์œผ๋กœ ์ œ๊ฑฐ) ), extendBodyBehindAppBar: true, //body ์œ„์— appbar body: ...(์ดํ•˜์ƒ๋žต)  ํ”Œ๋Ÿฌํ„ฐ ์•ˆ๋“œ๋กœ์ด๋“œ 2021. 1. 24.
[Dart] dynamic ๋™์  ์ž๋ฃŒํ˜• dynamic์ด๋ž€ ์ž๋ฃŒํ˜•์€ ๋งค ๋Œ€์ž…ํ•˜๋Š” ๊ฐ’์˜ ์ž๋ฃŒํ˜•์— ๋งž์ถฐ์ง„๋‹ค. var๊ณผ ๋น„๋ฃŒํ•˜์ž๋ฉด, var์€ ์ดˆ๊ธฐํ™”์‹œ์˜ ๊ฐ’์˜ ์ž๋ฃŒํ˜•์œผ๋กœ ๊ณ ์ •์ด ๋˜๋ฉฐ ํ›„์— ํƒ€์ž… ๋ณ€๊ฒฝ์ด ๋ถˆ๊ฐ€ํ•œ๋ฐ dynamic์€ ํ›„์—๋„ ํƒ€์ž… ๋ณ€๊ฒฝ์ด ๊ฐ€๋Šฅํ•œ ๊ฒƒ์ด๋‹ค. void main() { dynamic d = 60.6; if(d is double) print("d๋Š” double!"); d = 4; if(d is int) print("d๋Š” int!"); }โ€‹ ๊ฒฐ๊ณผ d๋Š” double! d๋Š” int! 2020. 7. 12.
728x90
๋ฐ˜์‘ํ˜•