반응형 플러터48 [flutter] Incorrect use of ParentDataWidget. 문제 상황 Expanded위젯을 다른 위젯에 감싸면서 Incorrect use of ParentDataWidget. 에러 발생했습니다. 해결 방법 Expanded 위젯으로는 간격을 줄 수 있는 위젯이 정해져있다는 것을 인지하지 못했습니다. Expanded 위젯으로 감쌀 수 있는 위젯은 오직 Column, Row, Flex 위젯만 가능합니다. 2021. 11. 15. [flutter] Fixing errors when you insert ListView with other widgets in the column (Column에 다른 위젯과 함께 ListView를 넣을때 오류 해결) [flutter] Fixing errors when you insert ListView with other widgets in the column (Column에 다른 위젯과 함께 ListView를 넣을때 오류 해결) 예를 들어, 아래와 같은 코드에서는 Column 안에 여러 위젯과 함께 ListView가 구현되어있다. (For example, In the code below, ListView is implemented with several widgets in the column.) @override Widget build(BuildContext context) { // TODO: implement build return new Scaffold( appBar: new AppBar( title: new .. 2021. 11. 6. [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] 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. 이전 1 ··· 8 9 10 11 12 다음 반응형