kyuyoungheo / flutter-study

0 stars 0 forks source link

Column 내부에 ListView를 추가하는 방법 #10

Open kyuyoungheo opened 4 months ago

kyuyoungheo commented 4 months ago
Column(
        children: [
          SizedBox(
              height: 600,
              child: ListView.builder(
                padding: const EdgeInsets.all(8),
                itemCount: todos.length,
                itemBuilder: (context, index) {
                  return Container(
                    height: 50,
                    color: Colors.amber[300],
                    // child: Center(child: TextField(controller: _controllers[index]))
                    child: Center(child: Text(todos[index]))
                  );
                }
              ),
          ),
          TextField(controller: _textController)
        ]
      )