전체 글(16)
-
[Flutter]채팅 화면 구성
메세지 관련 설정 //cnt message int _counter = 0; //set message controller final _message = TextEditingController(); //messages List _messages = []; 메세지 전송 함수 //onPress Button void _setMessages(){ setState(() { _counter++; _messages.add(_message.value.text); _message.clear(); }); _focusNode.unfocus(); _focusNode.requestFocus(); } //onSubmitted [pressed Enter] void _setMessagesSubmit(String str){ setStat..
2023.01.31 -
<Flutter>항목 자동 생성
프로젝트 생성 main.dart파일 import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( // This is the theme of your application. // // Try running yo..
2023.01.30 -
[Eclipse]update
Help > Check for Updates Eclipse 재시작
2022.12.15 -
js, css - modal
html Message Box Login Login X ID PW css body { overflow: hidden; margin: 0; border: 0; padding: 0; } .main { background: rgba(54, 152, 243, 0.25); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; } .main .btn-modal { width: 100px; height: 50px; background-color: #fff; box-shadow: 0 8px 32px 0 rgba(158, 159, 175, 0.37); border-radius: 5px; borde..
2022.10.01 -
Angualr - SummerNote 적용
썸머노트 텍스트 에디터 라이브러리, Summernote - Super Simple WYSIWYG editor 글쓰기 index.html의 head 태그 위와같이 변경 사용 할 위치에 텍스트 에이리어 아이디 id="summernote" 로 설정. index.html 의 body 아래에 스크립트 추가 글 읽기 submit .html import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; @Component({ selector: 'app-summernote', templateUrl: './summernote.component.html', styleUrls: ['./summernote.component.css'], }) export c..
2022.06.27 -
[spring boot]이미지 업로드
이미지 업로드 (Reactjs) "Content-Type": "multipart/form-data" { setTempFile(e.target.files); }} /> submit input은 파일 타입으로, multiple으로 여러개의 파일 한번에 선택 가능, const [tempFile, setTempFile] = useState(); 파일을 서버 url에 전달하기 위한 state 사용 const handleClick = (e) => { var data = new FormData(); for (let i = 0; i < tempFile.length; i++) { data.append("files", tempFile[i]); } Axios.post("uploadUrl", data, { headers: {..
2022.03.21