'아이폰' 태그의 글 목록
본문 바로가기
728x90
반응형

아이폰4

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.29_04.AppBar 1.Typography 1.1 글씨 색 조절 (기본) 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(title: Text('앱임'),), body: SizedBox( child: Text('안녕하세요', style: TextStyle(color: Colors.red), ), ), ) ); } } .. 2021. 12. 29.
2021.12.28_02.가로세로배치하는법과Scaffold 1. MaterialApp 이것에서 제공하는 ui, 위젯을 가져다 쓸수 있음 단, 안드로이드 스타일 Cupertino ... ()이것의 경우는 아이폰 스타일임 커스터 마이징 하고 싶다면? MaterialApp써놓고 하면됨 1.1 Scaffold() 앱을 상 중 하로 나눠주는 것 구역을 나누기 한것 순서대로 입력해주면됨 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 Mater.. 2021. 12. 28.
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
반응형