DraggableScrollableSheet

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Stack(
  children: [
    Container(color: Colors.lightBlue),
    DraggableScrollableSheet(
      initialChildSize: 0.2,
      minChildSize: 0.13,
      maxChildSize: 1.0,
      builder: (context, scrollController) {
        return Padding(
          padding: EdgeInsets.all(0),
          child: Container(
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.only(
                topLeft: Radius.circular(15),
                topRight: Radius.circular(15),
              ),
            ),
            child: ListView.builder(
              itemCount: 20,
              controller: scrollController,
              itemBuilder: (context, index) {
                return ListTile(title: Text("Test item $index"));
              },
            ),
          ),
        );
      },
    ),
  ],
),
copyright by ksanbal
Hugo로 만듦
JimmyStack 테마 사용 중