전체 글 280

xcode push notification not showing

나는 파이어베이스 클라우드 메시징을 이용해서 iOS 의 Push Notification 을 구현하고 싶었다. 참고로 나는 플러터 개발자이기 때문에 iOS xcode 를 다룸에 있어서 익숙치 않다. 나는 인증서와 키를 모두 알맞게 발급 받았다. 혹시 인증서와 키 발급 받는 방법이 궁금하신 분들은 아래 영상을 참고하면 된다. ↓ https://www.youtube.com/watch?v=ytT65m_CjXU&list=LL&index=11 이제 + 버튼을 눌러서 Push Notification 을 추가할 차례이다. 그런데!!!!!!!!! 난 저 + 버튼을 누르면 Push Notification 이 없었다. 오잉? 내가 뭘 잘못했나 하면서 인증서, 키 모두 체크했고 별 이상 없었다. 다른 사람들은 저 버튼 눌러서..

👩🏻‍💻 TIL 2022.10.24

[iOS] [Flutter] module not found.

ios 로 디버깅 시도 하던 중 패키지만 깔고 나면 module not found 라는 문구가 나타난다. 디버그 콘솔 보면 import 패키지 에러 어쩌구저쩌구.. 스택오버플로우를 참고해서 모든 방법을 시도해봤다. https://stackoverflow.com/questions/61956166/flutter-module-not-found-in-xcode Flutter module not found in Xcode When I build the app in Xcode it throws the error: .../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'audioplayers' not found I tried reinstalling and setting ..

👩🏻‍💻 TIL 2022.10.18

[Flutter] Statusbar color 화면마다 다르게 적용

와이파이, 시간, 배터리가 표시되어 있는 상태바 Color 를 변경하는 방법 1. 안드로이드 appBar 안에 다음 코드를 넣는다 systemOverlayStyle: const SystemUiOverlayStyle( statusBarColor: Colors.white, statusBarIconBrightness: Brightness.dark, ), 배경 흰색, 아이콘들은 검정색 2. iOS appBar 안에 다음 코드를 추가한다 systemOverlayStyle: const SystemUiOverlayStyle( statusBarColor: Colors.white, statusBarIconBrightness: Brightness.dark, statusBarBrightness: Brightness.ligh..

🐦 Flutter 2022.09.26

only one auth mechanism allowed

Amazon s3 s3 : simple storage service 어떤 정보(= 파일) 를 저장하는 서비스, 간단한 저장 서비스 s3 를 쓰는 이유 어떤 서버를 구축해서 저장하는 서비스를 만들 수도 있지만, 아마존에서 제공하는 서비스를 사용하면 많은 것들을 신경 쓰지 않고 안전하게 파일을 보관할 수 있습니다. (유실 가능성 거의 없음. 약 99.9%) (s3 의 서버는 죽을 걱정 거의 안해도 됩니다.) s3 보안 방식 amazon s3 는 ssl 을 통해 데이터 전송과 데이터 업로드 후 자동 암호화를 지원합니다. (ssl 은 암호화 방식) 이벤트 알림 전송 amazon s3 는 amazon s3 에 객체가 업로드 되면 이벤트 알림을 전송할 수 있습니다. 즉, 스토리지와 연계된 다른 서비스를 사용하는데 ..

👩🏻‍💻 TIL 2022.09.19

[Flutter] part 와 import 차이를 알아보자

Part 와 import 차이 3개의 파일의 간단한 예시를 통해 알아보겠습니다. 1. library_main.dart library counter; export 'package:flutter/material.dart'; part 'library_part.dart'; class Counter extends AbstractCounter { // we can access library private variable _count even though it is in a different // file because we made it part of the same library reset() => _count = 0; } 첫번째 줄은 이 라이브러리의 이름을 명시해줍니다 -> counter 이것은 part 로부터..

🐦 Flutter 2022.08.20

[Flutter] 자동 생성 JSON 직렬화 코드와 비교

모델 클래스에서 JSON 직렬화 User Class 모델을 사용해보겠습니다. User Class 모델에는 map 구조에서 새로운 User 객체를 생성하기 위한 생성자인 User.fromJson() 생성자 User 객체를 map 구조로 변환하기 위한 메서드인 toJson() 메서드 class User { final String name; final String email; User(this.name, this.email); User.fromJson(Map json) : name = json['name'], email = json['email']; Map toJson() => { 'name': name, 'email': email, }; } 코드 생성 라이브러리를 통한 JSON 직렬화 여러 다른 라이브러리들..

🐦 Flutter 2022.08.20

Dart Named Constructor

Named Constructor Dart 에서 한 class 는 여러 constructor 를 가질 수 있는데, 특이한 점은 각 constructor 에 이름을 붙인다는 것이다. 명명된 생성자를 사용하여 클래스에 대해 여러 생성자를 구현하거나 추가 명확성을 제공한다. class MyPoints { final int accumulatedPoint; final int usedPoint; final int expirePoint; MyPoints({ required this.accumulatedPoint, required this.usedPoint, required this.expirePoint, }); MyPoints.initial({ this.accumulatedPoint = 0, this.usedPoint..

🐦 Flutter 2022.08.12

Flutter 생명주기

Flutter Life Cycle Widget 이론 플러터에는 Widget 단위로 개발이 된다. 이 Widget 은 불변의 법칙을 갖고 있으며 변경이 필요하면 기존 위젯을 삭제해버리고 완전히 새로운 위젯으로 대체한다. 이것이 플러터의 기본 원칙이다. Container(color: Colors.red) Container(color: Colors.blue) 예를 들어, 위처럼 Container 위젯의 color 를 red -> blue 로 바꿔었다고 해서 이는 기존 위젯을 바꾼 것이 아니라 삭제 후 새로운 위젯으로 만든 것이다. Life Cycle 이란 "생명 주기" 라는 단어 뜻에서 볼 수 있듯이 플러터에서는 위젯이 생성되고 사라질 때까지의 주기 를 관찰 해볼 것이다. 플러터에서는 대표적인 위젯 State..

🐦 Flutter 2022.07.05

[Flutter] json 파싱 정보글 모음

https://www.oowgnoj.dev/post/flutter-json [번역] 복잡한 JSON 파싱하기 in flutter 기억하기 위해 기록합니다. www.oowgnoj.dev model class 와 json 관계 이해 글 https://jvvp.tistory.com/1166 다트(dart) JSON 사용하기 dart:convert JSON 및 UTF-8 을 포함한 다양한 데이터 표현간 변환을 위한 인코더 및 디코더를 지원하는 라이브러리이다. 예제1 기본적인 JSON 문자열을 파싱하고 접근하는 방법에 대한 예제입니다. JSON jvvp.tistory.com

🐦 Flutter 2022.06.24