Flutter 4

특정화면에서 flutter를 실행하는 법

flutter로 화면을 그리다 보면 가끔 특정 페이지만 실행하고 싶은 경우가 있다. 그럴 때에는 다음과 같은 명령어를 사용해주면 된다. flutter run --route /routeName 여기서 '/routeName'은 다음 코드처럼 main.dart에서 선언해주는 Named route를 말하는 것이다. return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), initialRoute: '/splash', routes: { '/home': (context) => HomePage(), '/splash': (context) => SplashScreen(), '/login': (context) => L..

flutter 2022.06.29

Firestore, android 연동 오류

Firestore package가 update되면서 최소 sdk version이 16에서 19로 변경된 것 같다. 그래서 안드로이드로 build를 해보려고 하면 에러가 정말 많다. 첫번째 에러는 다음과 같았다. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugMainManifest'. Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore] /Users/kangminlee/Desktop/code/flutter/..

flutter 2022.06.27

Local Notification

개요 앱에서 push notification을 사용하지 않아도 개발이 가능할 것 같아서 local notification으로 대체하려고 한다. 안드로이드, ios 환경에서 구동이 가능해야 하며 foreground, backgorund, terminated 상태에서도 notification이 가능해야 한다. flutter_local_notifications | Flutter Package flutter_local_notifications | Flutter Package A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for e..

flutter 2022.06.27

Firebase Cloud Function

Firebase Cloud Function이란? Cloud Functions로 무엇을 할 수 있나요? | Firebase Documentation Cloud Functions로 무엇을 할 수 있나요? | Firebase Documentation 의견 보내기 Cloud Functions로 무엇을 할 수 있나요? 개발자는 Cloud Functions를 사용하여 Firebase 및 Google Cloud 이벤트에 액세스하고 확장 가능한 컴퓨팅 성능을 사용하여 이러한 이벤트에 대한 응답으 firebase.google.com DB의 trigger 개념과 유사. 해당 page에서는 cloud function의 기능을 다음과 같이 설명하고 있다. Notify users when something interesting..

flutter 2022.06.27