๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์›น๊ณต๋ทฐ/flutter13

flutter webview ์„ค์ • ๋ฐ ๊ฐ„๋‹จํ•œ ๊ตฌํ˜„ ์›น๋ทฐ๋ž€? ์•ฑ์—์„œ ์›น๋ธŒ๋ผ์šฐ์ € ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•ด์ฃผ๋Š” ๊ธฐ์ˆ  ๋ณด์—ฌ์ฃผ๋Š” ํ™”๋ฉด์€ ์›น์œผ๋กœ ๊ฐœ๋ฐœํ•ด๋†“๊ณ  ๊ฒ‰์„ ์•ฑ์œผ๋กœ ๊ฐ์‹ธ์„œ ๋ฐฐํฌํ•จ ๋„ค์ดํ‹ฐ๋ธŒ์— ๋น„ํ•ด ์†๋„๊ฐ€ ๋Š๋ฆฌ๊ณ , ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ๋ถ€์ž์—ฐ์Šค๋Ÿฝ๊ธด ํ•˜์ง€๋งŒ ๊ธฐ์กด์˜ ์›น์‚ฌ์ดํŠธ๋ฅผ ์žฌํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Œ. 0. ์‚ฌ์ „ ์„ค์ • (1) pubspec.yaml ์„ค์ • webview_flutter ์˜์กด์„ฑ ์ถ”๊ฐ€ dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 webview_flutter: 3.0.4 (2) ์•ˆ๋“œ๋กœ์ด๋“œ ์„ค์ • android.. 2023. 7. 26.
flutter webview ์„ค์ • ๋ฐ ๊ฐ„๋‹จํ•œ ๊ตฌํ˜„ ์›น๋ทฐ๋ž€? ์•ฑ์—์„œ ์›น๋ธŒ๋ผ์šฐ์ € ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•ด์ฃผ๋Š” ๊ธฐ์ˆ  ๋ณด์—ฌ์ฃผ๋Š” ํ™”๋ฉด์€ ์›น์œผ๋กœ ๊ฐœ๋ฐœํ•ด๋†“๊ณ  ๊ฒ‰์„ ์•ฑ์œผ๋กœ ๊ฐ์‹ธ์„œ ๋ฐฐํฌํ•จ ๋„ค์ดํ‹ฐ๋ธŒ์— ๋น„ํ•ด ์†๋„๊ฐ€ ๋Š๋ฆฌ๊ณ , ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ๋ถ€์ž์—ฐ์Šค๋Ÿฝ๊ธด ํ•˜์ง€๋งŒ ๊ธฐ์กด์˜ ์›น์‚ฌ์ดํŠธ๋ฅผ ์žฌํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Œ. 0. ์‚ฌ์ „ ์„ค์ • (1) pubspec.yaml ์„ค์ • webview_flutter ์˜์กด์„ฑ ์ถ”๊ฐ€ dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 webview_flutter: 3.0.4 (2) ์•ˆ๋“œ๋กœ์ด๋“œ ์„ค์ • android.. 2023. 7. 18.
flutter button widget ๋ฒ„ํŠผ ์œ„์ ฏ๋“ค import 'package:flutter/material.dart'; void main(){ runApp(MyApp()); } class MyApp extends StatelessWidget{ @override Widget build(BuildContext context){ return MaterialApp( home: Scaffold( body: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Center( child: const Text('hello', style: TextStyle( fontSize: 16.0, fontWeight: FontWeight.w700, color: Colors.blue, ), ), ), TextButto.. 2023. 7. 15.
dart ๊ธฐ์ดˆ var, dynamic var๋Š” ์ž์œ ๋กœ์šด ํƒ€์ž…์œผ๋กœ ๋ณ€์ˆ˜๋ฅผ ์ €์žฅํ•  ์ˆ˜ ์žˆ์ง€๋งŒ ์ฒ˜์Œ์— ์ €์žฅ๋œ ๋ณ€์ˆ˜์˜ ํƒ€์ž…๋ง๊ณ  ๋‹ค๋ฅธ ํƒ€์ž…์€ ์ €์žฅ๋ ์ˆ˜ ์—†์Œ dynamic์€ ์ฒ˜์Œ์— ์ €์žฅ๋œ ํƒ€์ž…๊ณผ๋Š” ์ƒ๊ด€์—†์ด ๋ฌด์Šจ ํƒ€์ž…์ด๋“  ์ €์žฅ ๊ฐ€๋Šฅ var name = 'abc'; name = 'ddd'; name = 3; //error dynamic name2 = 'abc'; name2 = 'ddd'; name2 = 3; //ok const, final ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•˜์ง€ ์•Š์€ ์ƒํƒœ์—์„œ ๊ฐ’์ด ํ™•์ •๋˜๋ฉด const, ์‹คํ–‰๋ ๋•Œ ํ™•์ •๋˜๋ฉด final final DateTime now = DateTime.now(); //๋Ÿฐํƒ€์ž„ ์ƒ์ˆ˜ const DateTime now2 = DateTime.now(); //error. ๋นŒ๋“œํƒ€์ž„ ์ƒ์ˆ˜์ž„. ๋นŒ๋“œํƒ€์ž„์— ๊ฐ’์„ ์•Œ์•„์•ผํ•˜๋Š”๋ฐ.. 2023. 7. 4.