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. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ