Hee-sung Moon
@moon65990164
Reviews Written
-
Average Rating
-
Posts
Q&A
์๋ ํ์ธ์. wifi ํต์ ์ ๊ด๋ จํ์ฌ ์ฌ์ญค๋ณด๋ ค๊ณ ํฉ๋๋ค.
์๋๋๋ค. ํ์ฌ ๊ฐ์ข์ ๋ต๋ณ๋ง์ผ๋ก๋ ํฐ ๋์์ด ๋ฉ๋๋ค. ๊ฐ์ฌํฉ๋๋ค :)
- 0
- 2
- 536
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์๋ ค์ฃผ์ ํ์์ ์ฌ์ฉํ๋ค๊ฐ ๊ถ๊ตผํ ์ ์ด ์์ด์ ํ๋ ์ฌ์ญค๋ณด๋ ค๊ณ ํฉ๋๋ค... ํ์ฌ class CustomText extends Text { final int fontSize; CustomText(String data, this.fontSize, ): super(data, textScaleFactor: 1.0);} ์ด๋ ๊ฒ ํด๋์ค๋ฅผ ๋ง๋ค๊ณ ๋ค๋ฅธ ํ์ด์ง์์ import ์์ผ์ Positioned( left: 16 / 3, top: 36 / 3, child: CustomText(userData.memTitle, 20, style: TextStyle(color:Color(0xFFa6093d), fontWeight: FontWeight.bold) ),), ์ด๋ฐ ํ์์ผ๋ก ๋ฐ์์ ์ฌ์ฉ์ ํ๊ณ ์์ต๋๋ค. ๊ทธ๋ฐ๋ฐ style ํ๋ผ๋ฏธํฐ๊ฐ ์ ์ ๋์ง ์์๋ค๋ ์๋ฌ๋ก run์ด ์๋๋๋ฐ ์ด๋ค ํ์์ผ๋ก style์ ์ ์ํด์ค์ผ ํ๋์ง ์ข ์ ์ ์์๊น์?...
- 0
- 12
- 790
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์ ๊ทธ๋ ๊ตฐ์! ๋๋ฌด ๊ฐ์ฌํฉ๋๋ค... ์น์ ํ๊ฒ ์ค๋ช ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค
- 0
- 12
- 790
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์์ธํ ์ค๋ช ๊ฐ์ฌํฉ๋๋ค. ์๋ ์๋ ค์ฃผ์ ์ฝ๋๋ฅผ ๋๊ฐ์ด ์ dartํ์ด์ง์ ์์ฑํด์ ํด๋ณผ๋ ๋๋๋ฐ ์ ๊ฐ ์ฐธ์กฐ ์์ค์ฒจ๋ถ์ ์ฌ์ฉํ๊ณ ์๋ CustomText ํด๋์ค์ ๋ฃ์ด ์ฌ์ฉํ๋ ค๊ณ ํ๋ ์๋์์... ํน์ StatelessWidget์์๋ textScaleFactor๊ฐ ์ฌ์ฉ์ด ๋ถ๊ฐํ๊ฑธ๊น์?
- 0
- 12
- 790
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
๋ต๋ณ ๋๋ฌด ๊ฐ์ฌํฉ๋๋ค. ๊ทธ๋ผ CustomText๋ก class๋ง๋ ๋ถ๋ถ์ ์ถ๊ฐ๋ฅผ ํด์ผํ๋ ๊ฑด๊ฐ์? ์๋ ๋ณ๋๋ก class CustomText extends Text { }๋ฅผ ๋ง๋ค์ด ์จ์ผํ๋ ๊ฑธ๊น์?...
- 0
- 12
- 790
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์๋ ํ์ธ์... ๋ฉฐ์น ์ ์ ๋ต๋ณ ์ฃผ์ textScaleFactor๋ฅผ ํ์ฉํด์ ํญ์ Text๋ฅผ ๋ณดํต ํฌ๊ธฐ๋ก ์ ์งํ๊ณ ์ถ์ด์ ์งํํด ๋ดค๋๋ฐ ์๊ฐ๋ณด๋ค ์ ์ฉํ๊ธฐ๊ฐ ํ๋ค์ด์ ๋ค์ ๋ฌธ์๋๋ฆฌ๊ณ ์ ํฉ๋๋ค... ์์ ์๋ ค์ฃผ์ ๋ฐฉ๋ฒ์ ํ ๋๋ก Text ์ฝ๋๋ง ์ฌ์ฉํ์ฌ ์์ฑํ์๋๋ textScaleFactor๊ฐ ์ ์ฉ๋๋ ๊ฒ์ ํ์ธํ์๋๋ฐ ์ ๊ฐ์ ๊ฒฝ์ฐ๋ Text์ ๋ํ Class ํจ์๋ฅผ ๋ง๋ค์ด ์์ ฏํ์์ผ๋ก ์ ์ฉ์ ์์ผ ์ ์ฒด์ ์ผ๋ก Text์๋ํด ์ดํํธ๋ฅผ ๋จน์ด๊ณ ์์ต๋๋ค. ๊ทธ๋ฐ๋ฐ ์๋์ ์์ค์ textScaleFactor๋ฅผ ์ฌ์ฉํ์๋๋ ์๋ฌ๊ฐ ๋์ ์ด๋ป๊ฒ ์ ์ฉํด์ผ ํ๋์ง ์ข ๋์์ ๋ฐ์ ์ ์์๊นํด์ ๋ฌธ์ ๋จ๊น๋๋ค.. ๋๋ฌด ์์ฃผ ์ฌ์ญค๋ด์ ์ฃ์กํฉ๋๋ค ใ ํ๋ฌํฐ๊ฐ ์ฒ์์ด๋ค๋ณด๋ ์ด๋ ค์์ด ๋ง๋ค์... -----์์ค์ฒจ๋ถ---- class CustomText extends StatelessWidget { final String text; final int fontSize; final Color color; final double height; final FontWeight fontWeight; CustomText(this.text, this.fontSize, {Key key, this.color = const Color(0xFF434343), this.height = 1.0, this.fontWeight = FontWeight.normal}) : super(key: key); @override Widget build(BuildContext context) { return Text( this.text, overflow: TextOverflow.ellipsis, style: TextStyle( fontFamily: 'NanumGothic', fontSize: this.fontSize.toDouble(), color: this.color, height: this.height, fontWeight: this.fontWeight, ), ); } } โโ์ค๊ฐ์๋ตโโ Row( children: [ InkWell( child: Container( width: drawerWidth, height: 120 / 3, child: Row( children: [ Padding( padding: const EdgeInsets.only(left: 50 / 3, right: 44 / 3), child: Image.asset( 'assets/images/Side_Menu_Monitoring_Btn.png', width: 66 / 3, height: 66 / 3, fit: BoxFit.fill, ), ), CustomText('Monitoring', 16, color: Color(0xFF355c7d), fontWeight: FontWeight.bold), ], )), onTap: () { Navigator.pop(context); Navigator.pushReplacement( context, MaterialPageRoute( builder: (context) => new MonitoringPage())); }, ), ],
- 0
- 12
- 790
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ๋ค์ผ๋ฉด์ ์ฑ์ ์ ์ํ๋ค ์ฌ์ญค๋ณผ๊ฒ ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์ ๊ฒฝ์จ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค..^^
- 0
- 12
- 790




