본문 바로가기
반응형

Development Solutions/Flutter & Dart65

[flutter] how to change background color of flutter app. (앱의 배경 색상 변경 방법) [flutter] how to change background color of flutter app. (앱의 배경 색상 변경 방법) 앱의 가장 바깥이 되는 위젯을 Scaffold로 구축하고 아래와 같이 backgroundColor를 지정해주면 된다. [English](Build the most external widget of the app into Scaffold You can designate the background color as follows.) import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(Bui.. 2021. 11. 5.
[flutter][firebase] How to sort data from snapshot taken from DB (DB에서 가져온 snapshot에서 데이터 정렬하는 방법) [flutter][firebase] How to sort data from snapshot taken from DB (DB에서 가져온 snapshot에서 데이터 정렬하는 방법) 앱을 만들때 firebase에서 데이터를 갖고 오고 싶다면 보통 FirebaseFirestore에서 인스턴스를 가져와 컬렉션, 도큐먼트에 접근한다. 이때 특정한 애트리뷰트에 대해 정렬하고 싶다면? 아래와 같이 orderBy를 사용하자. (If you want to get data from firebase when creating an app I usually get the instance from FirebaseFirestore Access to collections and documents. What if you want to .. 2021. 11. 4.
[flutter] String을 Uri로 변환하는법. string to uri [flutter] String을 Uri로 변환하는법. string to uri var uri = Uri.parse('https://example.org:8080/foo/bar#frag'); Uri.parse를 이용한다. 2021. 11. 3.
[flutter][firebase] [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() 오류 해결방법 [flutter][firebase] [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() 오류 해결방법 void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); 위 코드를 적용하자. firebase를 사용하기전에 위 코드처럼 초기화 작업을 진행해주어야한다. 필자는 firebase관련 플러그인들의 버전을 업그레이드하다가 발생하여 이와 같이 해결함. https://stackoverflow.com/questions/67429742/error-core-no-app-no-firebase-app-.. 2021. 11. 2.
반응형