android - 如何在 Flutter 上放置多个 SlidingUpPanels?
问题描述
我想SlidingUpPanel
在我的页面上添加多个s,但我不知道该怎么做。我做了一些研究,但还没有找到解决方案。如果有人可以帮助我或提供另一种选择,我会非常满意。这是我到目前为止所拥有的,但结果并不是我所期望的。
import 'package:flutter/material.dart';
import 'package:sliding_up_panel/sliding_up_panel.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("SlidingUpPanelExample"),
),
body: Stack(
children: <Widget>[
Center(
child: Text("This is the Widget behind the sliding panel"),
),
SlidingUpPanel(
panel: Center(
child: Text("This is the sliding Widget"),
),
),
SlidingUpPanel(
panel: Center(
child: Text("This is the sliding Widget 122"),
),
)
],
)
),
);
}
}
解决方案
推荐阅读
- python - QListWidget:currentRowChanged 回滚
- windows-10 - 如何在 Win 10 上安装 VB6?
- sql - 考试中 PL/SQL 匿名块的问题
- c# - 如何在具有 .NET 5.0+ 的 Linux 上使用 FileSystemWatcher
- java - 连接到另一个本地主机 URL 时,Dockerized tomcat webapp 抛出 404 异常
- javascript - Vue:@click 上 :to 属性的奇怪行为
- python - Python:如何将列添加到 numpy 数组?
- java - 从@WebServlet urlPattern Java 中排除 CSS、JS 和 IMG 文件
- javascript - 在缓存的身份验证密钥尚不存在时减少并发请求
- reactjs - KeyboardDateTimePicker 在 Mozilla Firefox 上无法正常工作