์น๊ณต๋ทฐ/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. ์ด์ 1 2 3 4 ๋ค์