📂 Engineering83 [flutter] type 'ListView' is not a subtype of type 'List<Widget> class FriendPage extends StatefulWidget { const FriendPage({Key? key}) : super(key: key); @override State createState() => _FriendPageState(); } class _FriendPageState extends State { @override Widget build(BuildContext context) { return FutureBuilder( future: fetchPost(), builder: (context, AsyncSnapshot snapshot) { dynamic children; if (snapshot.hasData) { // children = const [Text("dfdfdf")];.. 2022. 3. 25. [flutter] flutter socketexception os error connection refused errno = 111 문제 상황 로컬에서 flask로 간단하게 만든 서버에 요청을 보냈더니 이러한 에러가 발생했다. 문제 원인 원인은 안드로이드 에뮬레이터가 localhost 대신 10.0.2.2를 사용하기 때문이다. 해결 방법 localhost대신 10.0.2.2로 썼더니 응답이 잘 돌아왔다. 해결방법 원본: https://stackoverflow.com/questions/55785581/socketexception-os-error-connection-refused-errno-111-in-flutter-using-djan 2022. 3. 24. [postgresql] docker-compose에서 지정하는 환경변수 목록 POSTGRES_PASSWORD POSTGRES_USER POSTGRES_DB POSTGRES_INITDB_ARGS POSTGRES_INITDB_WALDIR POSTGRES_HOST_AUTH_METHOD PGDATA 출처: https://hub.docker.com/_/postgres 2022. 3. 24. [알고리즘] 이진탐색에서 한 나의 실수 1. left와 right 초기화 단순히 리스트의 길이를 right로 초기화 하면 인덱스의 길이와 맞지 않아 런타임 에러(IndexError)가 발생한다. lst = [1,2,3,4] # 인덱스의 최대값은 3, 길이는 4 left, right = 0, len(lst) -1 # 여기서 1을 빼주지 않으면 lst[4]를 할 수 있어 인덱스 에러 발생 2. while left target: right = mid - 1 elif ns[mid] < target: left = mid + 1 2022. 2. 19. 이전 1 ··· 4 5 6 7 8 9 10 ··· 21 다음