Flutter 容器弹出我怎么能像 gif 中那样做?什么类型的小部件?
Flutter container pop up how can I do like in the gif? What type of widget?
我想要在 Flutter 中有类似的东西。我怎样才能做到这种效果?执行此操作的小部件是什么?
您可以使用 sliding_up_panel
包来获得类似的效果。
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("SlidingUpPanelExample"),
),
body: SlidingUpPanel(
panel: Center(
child: Text("This is the sliding Widget"),
),
body: Center(
child: Text("This is the Widget behind the sliding panel"),
),
),
);
}
查看 here 了解更多。
DraggableScrollableSheet 应该允许这样的事。
我想要在 Flutter 中有类似的东西。我怎样才能做到这种效果?执行此操作的小部件是什么?
您可以使用 sliding_up_panel
包来获得类似的效果。
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("SlidingUpPanelExample"),
),
body: SlidingUpPanel(
panel: Center(
child: Text("This is the sliding Widget"),
),
body: Center(
child: Text("This is the Widget behind the sliding panel"),
),
),
);
}
查看 here 了解更多。
DraggableScrollableSheet 应该允许这样的事。