'플러터앱' 태그의 글 목록
본문 바로가기
728x90
반응형

플러터앱3

2021.12.30_06.중요한커스텀위젯문법 1.커스텀 위젯 만들기 stless 명령어를 입력하면 커스텀 위젯을 만들 수 있음 import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar(), body: ShopItem(), ) ); } } class ShopItem extends StatelessWidget { const ShopItem({Key? ke.. 2021. 12. 30.
2021.12.29_05.Flexible 1. Flexible 컨테이너 두개가 있을때 각 각 50% 너비를 주고 싶다면? width :50% 안됨 Flexible로 감싸면 됨 import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar(), body: Row( children: [ Flexible(child: Container(color: Colors.. 2021. 12. 29.
2021.12.27_1.1안드로이드최신버전플러터프로젝트생성 1. 안드로이드 최신 버전인 경우 (21.12.27기준) New Flutter Project 클릭 처음 프로젝트를 생성하면 Flutter SDK path부분이 비어있음 이전에 Flutter를 설치해서 알집파일 푼 곳을 지정해주면됨 대략 하고 싶은 언어 선택 그리고 플랫폼 설정해주면됨 2.프로젝트 생성완료 File > Settings > Editor > Inspections > 상단Profile을 Default로 선택 > Proofreading > Typo 부분을 체크해제 위의 경로의 부분을 해제하면 한글로 입려하는 아래와 같은 경우 에러가 안생김 var name = "홍길동" 이런경우 아래 에러 밑줄이 안생김 File -> Settings 클릭 inspections 검색 후 클릭, profile에 Def.. 2021. 12. 27.
728x90
반응형