Andrew's Garage

Shrunk Expand

Primary Navigation

← Older posts
  • Category Archives flutter
  • 기기 고유 식별(Identify) 얻기 device_info

    https://pub.dev/packages/device_info https://pub.dev/packages/device_info_plus 위 함수를 다음과 같이 사용하면 된다. 안드로이드의 경우 보안 설정이 변경되거나 하면 값이 바뀔 수 있다고 하고 iOS의 경우 해당 앱을 제거하고 다시 설치하면 변경되는 것 같다. 물론 iOS의 경우 앱 개발사와 관련…


    Continue reading → Post ID 1268

    Posted on 2021-05-18 1:27 AM by andrew Comment
    flutter
  • QR 코드 스캔(QR Code Scan) 초간단 예제(Simple example)

    https://pub.dev/packages 에서 qrscan 검색 AndroidManifest.xml 퍼미션 추가 위치 : project/android/app/src/main/AndroidManifext.xml 안드로이드의 카메라와 저장소 제어를 위한 퍼미션을 추가해 준다. 실제 우리가 테스트하는 코드에는 굳이 저장소 관련은 필요 없지만 qrscan 패키…


    Continue reading → Post ID 1266

    Posted on 2021-05-18 1:23 AM by andrew Comment
    flutter
  • 싱글톤(Singleton) 클래스


    Continue reading → Post ID 1264

    Posted on 2021-05-18 1:21 AM by andrew Comment
    flutter
  • machine_learning_flutter_app

    https://github.com/theindianappguy/machine_learning_flutter_app?ref=morioh.com


    Continue reading → Post ID 1262

    Posted on 2021-05-18 1:16 AM by andrew Comment
    flutter
  • BLE 사용하기

    라이브러리 추가 및 SCAN 기능 구현flutter_ble_libhttps://pub.dev/packages/flutter_ble_lib permission_handlerhttps://pub.dev/packages/permission_handler 프로젝트에 안드로이드 SDK 버전이 낮게 설정되어 아래와 같은 에러가 발생할 수이다 ble_example\an…


    Continue reading → Post ID 1257

    Posted on 2021-05-18 1:15 AM by andrew Comment
    flutter
  • 앱 화면 크기 알아내기(App Screen Size)

    Js처럼.. MediaQuery 라는걸 사용한다. 위의 값들은 실제 픽셀 값이 아닌 논리적 픽셀 값이다. 여기에 화면 배율(devicePixelRatio)을 곱하면 실제 픽셀 값을 알 수 있다. 화면 레이아웃을 구성할 땐 위의 “논리적 픽셀 size”를 기준으로 맞추거나 Flex를 이용해 비율로 구성하면 됨 또, 이미지의 경우 화면 배…


    Continue reading → Post ID 1254

    Posted on 2021-05-18 1:04 AM by andrew Comment
    flutter
  • Back Button 막기(Disable Back Button)

    WillPopScope 위젯을 사용한다. scaffold를 WillPopScope로 감싸서 처리 한다.


    Continue reading → Post ID 1252

    Posted on 2021-05-18 1:02 AM by andrew Comment
    flutter
  • 패키지(Package) 수정하기

    Github에서 고칠 Package를 Fork 한 후에 해당 소스를 고치고 Github에 commit / push 해서 사용함pubspec.yaml에 아래와 같이 기입#qrscan: ^0.2.17 # 기존에 있던 패키지는 주석 또는 삭제 위와 같이 처리 하고 반드시 .. flutter pub upgrade 처리 해서 update해줘야 변경됨 내부에 화일을…


    Continue reading → Post ID 1250

    Posted on 2021-05-18 12:58 AM by andrew Comment
    flutter
  • 앱 상태(AppLifeCycle) 이벤트 얻기

    https://flutter.dev/docs/get-started/flutter-for/android-devs#how-do-i-listen-to-android-activity-lifecycle-events 이 plugIn을 사용한다. 앱 활성 된 상태에서 back 키를 눌러 앱을 종료하면 inactive > paused > detached 순으로 발생되는…


    Continue reading → Post ID 1248

    Posted on 2021-05-18 12:47 AM by andrew Comment
    flutter
  • FutureBuilder

    Future가 있는 위젯을 만들기위해선 Stateful 위젯으로 해둔 다음에, 로딩이 완료되면 그 값에 따라 setstate을 다시 해야했다.  코드가 굉장히 지저분해지고, Stateful위젯이 강제된다는 점에서 불편하기도 했다. 이를 극복하기 위해 존재하는 위젯이 있는 바로 FutureBuilder를 사용하는 것이다. FutureBuilder는…


    Continue reading → Post ID 1246

    Posted on 2021-05-18 12:39 AM by andrew Comment
    flutter

Posts navigation

1 2 Next


©2025 boots Entries RSS and Comments RSS Child theme Boots of Raindrops Theme