본문 바로가기

안드로이드

(48)
github에서 라이브러리를 가져오는 방법 저번에 pub.dev에서 라이브러리를 가져오는 방법을 알아봤다. 오늘은 github에서 라이브러리를 가져오는 방법을 알아보려고 한다. 1. 내가 필요로 하는 라이브러리를 찾는다. 필자는 캘린더 라이브러리가 필요하기에 calendar을 검색했다. 2. clone or download를 눌러서 다운로드를 받는다. 3. 다운받은 파일중 필요한 lib파일을 자신의 프로젝트에 추가한다. 4. pubspec.yaml 파일의 dependencies: 에 table_calendar: ^2.2.3을 추가하고 get pub를 누른다. 5. 다트 코드에 import 'package:table_calendar/table_calendar.dart'; 를 입력한다. 이로써 자신의 프로젝트에 라이브러리를 사용할 수 있게 된다
Flutter - how to use custom Icons If you have a designer or your company has designers, you may need to use customIcons on the app you are building. I can teach you how to use custom Icons in flutter 1. go to https://fluttericon.com/ FlutterIcon - Flutter custom icons generator This site will not work if cookies are completely disabled. {"assets_hash":"a0d3c796513dbfa17549fded5fc6a373","page_data":{},"locale":"en-US","layout":"f..
데이터 파싱 ? 1. Parsing parsing은 구문 분석이라고 합니다. 문장이 이루고 있는 구성 성분을 분해하고 분해된 성분의 위계 관계를 분석하여 구조를 결정하는 것입니다. 즉 데이터를 분해 분석하여 원하는 형태로 조립하고 다시 빼내는 프로그램을 말합니다. 웹상에서 주어진 정보를 내가 원하는 형태로 가공하여 서버에서 불러들이는 것입니다. 이러한 parsing 기법은 XML parsing과 JSON parsing이 있습니다. 2. Parser Parser란 Compiler의 일부로서 원시 프로그램의 명령문이나 온라인 명령문, HTML 문서 등에서 Markup Tag 등을 입력으로 받아들여서 구분을 해석 할 수 있는 단위로 여러 부분으로 해석해 w는 역할을 한다. 즉 Compiler나 Interpreter에서 원시 ..
플러터 비동기 post방식 사용법 인터넷에 get사용법은 많으나 post 사용법이 별로 없어서 포스팅을 하게 되었다. 1. pubspec.yaml에 를 추가한다. 2. 다음을 임포트한다. import 'dart:async'; import 'package:http/http.dart' as http; import 'dart:convert'; 3. 이와 같은 형식으로 사용한다. url에는 각자의 상황에 맞게 설정하면 된다.
flutter dialog width change Hello guys today, Im going to tell you "How to make your dialog's width be full of your device screen!" How? 1. find the file 'dialog.dart' from \flutter\packages\flutter\lib\src\cupertino (this is the location where you installed your flutter) 2. change the line padding: MediaQuery.of(context).viewInsets + const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0), to padding: MediaQuery.of(c..
안드로이드 NestedScrollView NestedScrollView를 언제 쓰는가? 한 화면에 여러개의 스크롤을 사용할 때 보통 ScrollView 안에 RecycleView 가 들어가는 경우 앱바를 접는 기능 NestedScrollView 안에 다가 여러개의 RecyclerView, ListView 등등 넣어 주면 된다 NestedScrollView는 ScrollView와 비슷하지만 Android의 새 버전과 이전 버전 모두에서 중첩 스크롤 부모 및 하위 역할을 모두 지원합니다. 중첩 스크롤은 기본적으로 사용 또 다른 장점은 CoordinatorLayout과의 호환성 NestedScrollView를 사용하여 툴바에 대한 "화면 이동 스크롤"을 지원 NestedScrollView는 다른 스크롤 가능한 뷰 안에 스크롤 가능한 뷰를 구현하고자 ..
Taps, drags, and other gestures This document explains how to listen for, and respond to, gestures in Flutter. Examples of gestures include taps, drags, and scaling. The gesture system in Flutter has two separate layers. The first layer has raw pointer events that describe the location and movement of pointers (for example, touches, mice, and styli) across the screen. The second layer has gestures that describe semantic action..
How to make a right size of Widgets in Flutter Hello friends~ today Im going to tell you how to make a right size of widgets in flutter. flutter provides a logical pixels but I dont fuxxing know how to use it it is not compatible with dpi! My pages are broken so,, This is what Im using now. That is MediaQuery with this code like width: MediaQuery.of(context).size.width height: MediaQuery.of(context).size.height fontSize: MediaQuery.of(contex..