목록flutter (11)
알고보면코딩천재
final은 값을 초기화해야되는데, 조건 (new 될때까지) const는 값을 무조건 초기화해야하는데, 조건(바로)
dept 엔티티 만들고. 생성자 만들고 초기화 게터세터 dept dao 부서 수정 부서 삭제 부서 추가 부서 목록보기 부서 한건보기 만들기 1. Dept.java package db; public class Dept { private int deptno; private String dname; private String loc; public Dept() { } public Dept(int deptno, String dname, String loc) { super(); this.deptno = deptno; this.dname = dname; this.loc = loc; } public int getDeptno() { return deptno; } public void setDeptno(int deptno..

탭바 + 탭바뷰 만들기 1. StateFul 위젯으로 만들기 2. TabController 가 필요함 (tabbar - tabbarview연결) 3. mixin을 해줘야 함. SingleTickerProviderStateMixin -with (has, 타입일치를 시켜주는 장점이 있다) 4. TabBarView는 높이가 필요함 import 'package:flutter/material.dart'; class ProfileTab extends StatefulWidget { const ProfileTab({Key? key}) : super(key: key); @override State createState() => _ProfileTabState(); } class _ProfileTabState extends..
class Engine { int power = 5000; } class Whell{ String wheelName = "4륜 구동 바퀴"; } class BMW with Whell, Engine { // 믹스인 has } void main(){ BMW b = BMW(); print(b.power); }
theme.dart import 'package:flutter/material.dart'; //한번만 읽고 마는것 const const MaterialColor primaryWhite = MaterialColor(0xFFFFFFFF, { 50: Color(0xFFFFFFFF), 100: Color(0xFFFFFFFF), 200: Color(0xFFFFFFFF), 300: Color(0xFFFFFFFF), 400: Color(0xFFFFFFFF), 500: Color(0xFFFFFFFF), 600: Color(0xFFFFFFFF), 700: Color(0xFFFFFFFF), 800: Color(0xFFFFFFFF), 900: Color(0xFFFFFFFF), }); ThemeData theme() { re..

1. Flutter SDK 다운로드 https://flutter.dev/ Flutter - Build apps for any screen Flutter transforms the entire app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase. flutter.dev 다운로드 완료하면 압축풀어준다. 2. Flutter 환경변수 설정 flutter ->bin 폴더 주소를 복사해서 붙여넣고 확인 눌러준다.
책 보고 4장 따라해보기 출처 -책 남길것. 안드로이드 스튜디오 언어 : Dart 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( body: SafeArea( child: Column( children: [ Padding( padding: const EdgeInsets.all(25.0), child: Row( mainAxis..