728x90

분류 전체보기 121

터미널 오류! httpd: Could not reliably determine the server's fully qualified domain name, using {userName} Set the 'ServerName' directive globally to suppress this message

brew에서 지원하는 php-switcher를 사용해서 편하게 Php 버전관리를 하려는 큰 꿈을 가지고있는데, 계속 오류가 발생했다... httpd: Could not reliably determine the server's fully qualified domain name, using {userName}.local. Set the 'ServerName' directive globally to suppress this message 에러는 대충 이러한데 열심히 구글링을 해보니 apache설정에 servername이 잘못된거라는데 나는 apache도 없는데...? 하고 헐... 이러고있는 와중 누군가가 이것도했는데 오류가 나더라... 라는 글에서 단서를 얻어서 발견한건!! 바로 httpd/httpd.con..

SERVER 2022.09.02

[WEB] scroll animation bottom to top

스크롤시 아래서 위로 올라오는 애니메이션 처리하고 싶을때! 간단하게 설명하면 스크롤되는 높이값을 측정해서 그 높이에 있는 element에 active class를 추가하여 처리해주면된다! 코드는 아래와 같다 1. html 코드 Caption Section Text Random text Section Text Random text Section Text Random text 2. css .reveal{ position: relative; transform: translateY(150px); opacity: 0; transition: 2s all ease; } .reveal.active{ transform: translateY(0); opacity: 1; } 3. js window.addEventListen..

WEB 2022.05.28

[Flutter] 누구나 할수있는 플루터에서 url로 파일 다운로드하기

생각보다 오래걸린 파일 다운로드하기 1. 관련 dependencies 받기 dependencies: path_provider: ^2.0.9 flutter_downloader: ^1.7.3 flutter_downloader 말 그대로 파일 다운받을 수 있게 도와주는 패키지 https://pub.dev/packages/flutter_downloader path_provider 경로 가져오는 패키지 https://pub.dev/packages/path_provider 2. IOS 및 Android 설정하기 IOS 더보기 Remote notifications 와 Background processing 체크! Farameworks, Libraries, and Embedded Content에서 libsqlite3...

FRAMEWORK/FLUTTER 2022.04.18

[Flutter] IconButton padding 없애는 방법

문제 icon button에 padding이 너무 과도하게 들어가있어 버튼과 버튼사이에 간격이 생긴다 해결방안 처음엔 다른 위젯처럼 padding에 EdgInsets.zero를 주어보았다 하지만 다른 변화 없이 그대로인걸 확인해서 찾은 방법! IconButton에 아래 코드를 추가하는것이다! constraints: BoxConstraints(), // constraints IconButton( constraints: BoxConstraints(), // constraints onPressed: () { }, icon: Image.asset( iconGrayCheck width: 15, ))

FRAMEWORK/FLUTTER 2022.04.18

Flutter 문자열에서 html tag모두 제거하기

flutter에서 html을 쓰자니 너무 엉성해서 html tag를 모두 빼고 widget으로 그리고싶어서 찾아보았다! import 'package:html/parser.dart'; String parseHtmlString(String htmlString) { try{ final document = parse(htmlString); final String parsedString = parse(document.body!.text).documentElement!.text; return parsedString; }catch(e){ return htmlString; } } 이렇게하면 문자열에서 html 태그를 모두 제거하고 문자열만 출력해서 사용할 수있다!

FRAMEWORK/FLUTTER 2022.04.14
728x90