Flutter 是否可以在颤振中以编程方式拖动DragableScrollableSheet?
我想知道如何拖动DragableScrollableSheet小部件以编程方式向上或向下移动。例如,基于一个类Flutter 是否可以在颤振中以编程方式拖动DragableScrollableSheet?,flutter,dart,widget,Flutter,Dart,Widget,我想知道如何拖动DragableScrollableSheet小部件以编程方式向上或向下移动。例如,基于一个类 DragableWidget->Container->DragableScrollableSheet?@DeanVillamia Object->DiagnosticableTree->Widget->StatefulWidget->DragableScrollableSheet class HomePage extends StatelessWidget { @override
DragableWidget->Container->DragableScrollableSheet?@DeanVillamia Object->DiagnosticableTree->Widget->StatefulWidget->DragableScrollableSheet
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('DraggableScrollableSheet'),
),
body: SizedBox.expand(
child: DraggableScrollableSheet(
builder: (BuildContext context, ScrollController scrollController) {
return Container(
color: Colors.blue[100],
child: ListView.builder(
controller: scrollController,
itemCount: 25,
itemBuilder: (BuildContext context, int index) {
return ListTile(title: Text('Item $index'));
},
),
);
},
),
),
);
}
}