목록분류 전체보기 (199)
일모도원(日暮途遠) 개발자
Flutter로 개발중 안드로이드는 괜찬은데 아이폰에서만 앱을 삭제하고 재 설치해도 Firebase 유저가 로그인 되어 있는 버그가 발생했다. 검색해보니 이런경우가 좀 있는거 같다. 어떤 사람은 안드로이드에서도 같은 현상이 발생했다. https://github.com/DeveloperAcademy-POSTECH/MacC-Team-HappyAnding/issues/365 https://github.com/invertase/react-native-firebase/issues/694 앱을 새로 설치했는데도 아래에서 userSnapshot.data에 기존에 로그인 했던 유저가 들어있다. @override Widget build(BuildContext context) { return Drawer( child: F..
집에 있는 플러터 소스를 한참 수정하고 회사와서 pull해서 실행해보니 아래처럼 에러가 나온다. * What went wrong: Plugin [id: 'dev.flutter.flutter-plugin-loader', version: '1.0.0'] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Included Builds (None of the included builds contain this plugin) - Plugin Repositories (could not resolve plugin artifact 'dev.flutter.flutter-p..
Hero를 쓰지도 않는데 이런 에러가 계속 나온적이 있다. 문제는 FloatingActionButton을 두개 이상 쓰고 있었다. 물론 hero를 쓰지 않았는데, 여기서 에러가 났다. FloatingActionButton( onPressed: () { FloatingActionButton( onPressed: () { 아래처럼 각각의 FloatingActionButton에 heroTag에 값을 다르게 주면 해결이 된다. FloatingActionButton( heroTag: "1", onPressed: () { FloatingActionButton( heroTag: "2", onPressed: () {
플로팅 버튼을 만들었는데, 오른쪽 화살표 버튼은 우측 화면처럼 배경은 제거하고 화살표만 표시 하고 싶었다. 간단하게 생각하고 배경색을 투명(透明, transparent)으로 줬는데 배경이 뿌옇게 나온다. FloatingActionButton( onPressed: () { }, backgroundColor: Colors.transparent, child: const Icon(Icons.arrow_forward_ios), ), 이건 elevation이 남아 있어서 그렇다.(Defaults to 6 이라고 한다) 아래처럼 elevation: 0.0,을 주면 해결 된다. FloatingActionButton( onPressed: () { }, elevation: 0.0, backgroundColor: Color..
class MyAppBar extends StatelessWidget implements PreferredSizeWidget { const MyAppBar({super.key}); @override Size get preferredSize => const Size.fromHeight(100); @override Widget build(BuildContext context) { return AppBar( title: const Text('Flutter 앱'), ); } } preferredSize값을 조절해주면 저 빈공간이 사라진다. (값을 하드코딩안하고 싶은데, 잘 모르겠다.) Size get preferredSize => const Size.fromHeight(50);
StatefulWidget내에서가 아니라 다른 Dart파일의 일반 함수안에서 showModalBottomSheet를 실행시키는데, 스위치를 변경할 일이 있어서 setState를 쓰니까, setState가 없다고 나온다. //A.dart파일의 Widget build(BuildContext context) 안에서 아래처럼 호출 showMyBottomSheet(context: context); // B.dart파일 void showMyBottomSheet({required BuildContext context}) { var isOption = true; showModalBottomSheet( context: context, builder: (BuildContext context) { return SizedBo..
안드로이드에서는 잘되는 기능이 아이폰에서만 아래와 같은 에러를 내고 앱이 멈춰버린다. -[NSError init] called; this results in an invalid NSError instance. It will raise an exception in a future release. Please call errorWithDomain:code:userInfo: or initWithDomain:code:userInfo:. This message shown only once. Firebase쪽하고 연관있는 기능을 할때마다 멈추어서 구글링을 해보니 cloud_firestore쪽에 이슈가 있나 보다. cloud_firestore: 4.11.0 => NG, No response. cloud_firesto..
../../../../../.pub-cache/hosted/pub.dev/google_fonts-3.0.1/lib/src/google_fonts_base.dart:14:1: Error: 'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'. import 'asset_manifest.dart'; ^^^^^^^^^^^^^ 위와 같은 에러가 나오면... google_fonts를 최신껄로 업데이트 해보자. google_fonts: ^4.0.4