software_development:flutter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software_development:flutter [2023/05/04 01:25] – [Android Studio] prgramsoftware_development:flutter [2025/07/07 14:12] (current) – external edit 127.0.0.1
Line 32: Line 32:
 우클릭 : Reformat code with 'dart format' - (,) 기준 정렬 우클릭 : Reformat code with 'dart format' - (,) 기준 정렬
  - File > Setting > Keymap > 검색 > 단축키 설정  - File > Setting > Keymap > 검색 > 단축키 설정
 +
 +Show Context Action : wrap 지우기, wrap 씌우기
 +
 +stless 입력 -> StatelessWidget 자동생성
 +stful
 +
 +우클릭: Refactor -> rename => 모든 이름 변경
  
 ==== Hello, World ==== ==== Hello, World ====
Line 41: Line 48:
   runApp(   runApp(
     MaterialApp(     MaterialApp(
 +      debugShowCheckedModeBanner: false, //Debug 배너 없애기
 +      
       home : Scaffold(       home : Scaffold(
         backgroundColor: Colors.black,         backgroundColor: Colors.black,
         //body: Text("hello world")         //body: Text("hello world")
         body: Center( // 가운데         body: Center( // 가운데
-          child: Text( +          child: Text("Hello world",
-              "Hello world",+
             style: TextStyle(             style: TextStyle(
               color: Colors.white,               color: Colors.white,
Line 58: Line 66:
 } }
 </code> </code>
 +
 +==== pubspec.yaml ====
 +pubspec.yaml
 +put get 클릭
  
 === Asset 추가 === === Asset 추가 ===
-pubspec.yaml > flutter: 아래+flutter: 아래
 assets: assets:
  - asset/img/ (폴더명)  - asset/img/ (폴더명)
-put get 클릭 
  
 +=== dependencies ===
 +https://pub.dev/
 +<nowiki>^</nowiki>3.0.0 : major update(3)는 자동으로 하지 않음)
 +
 +
 +
 +
 +==== Packages ====
 +=== WebView ===
 +  * <uses-permission android:name="android.permission.INTERNET" /> 추가해야 함 (배포할 때 필요)
 +  * net::ERR_CLEARTEXT_NOT_PERMITTED 에러
 +(https 아니거나, redirect 되는경우)
 +- android:networkSecurityConfig="@xml/network_security_config
 +https://stackoverflow.com/questions/55592392/how-to-fix-neterr-cleartext-not-permitted-in-flutter
  
 +※프로젝트 자체를 껐다가 다시켜야 함
  
  
  • software_development/flutter.1683163543.txt.gz
  • Last modified: 2025/07/07 14:13
  • (external edit)