带有persistent_bottom_nav_bar的透明磁带

发布于 2025-01-25 19:21:01 字数 436 浏览 6 评论 0原文

我正在使用persistent_bottom_nav_bar软件包:

完全可以做我想要的,除了缺少重要的脚手架函数:

extendBody: true

软件包告诉我以下内容:

注意:此小部件包括脚手架(基于CupertinotabScaffold), 因此无需声明。

我正在寻找能够拥有扩展的解决方案:true在使用此软件包时

I am using persistent_bottom_nav_bar package:

https://pub.dev/packages/persistent_bottom_nav_bar

which does exactly what I want, except it is missing an important Scaffold function:

extendBody: true

The package tells me the following:

NOTE: This widget includes SCAFFOLD (based on CupertinoTabScaffold),
so no need to declare it.

I am looking for a solution to be able have extendedBody: true while using this package

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你在我安 2025-02-01 19:21:02

您可以做的就是修改软件包,然后将此属性添加到内置的脚手架中。

1-转到包装目录,示例:

C:\Users\UserName\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\PackageFolderName

2-将软件包复制到您的项目(整个PackageFolderName,并使用pubspec.yaml>)粘贴相同级别)

3-修改软件包的代码,即找到该软件包的代码脚手架并添加属性

4-修改项目的pubspec.yaml,然后将软件包的路径更改为

Package Name: 
  path: ./PackageFolderName/

5-保存pubspec.yaml

What you can do is modify the package, and add this property to the built-in scaffold.

1- Go to the package directory, example:

C:\Users\UserName\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\PackageFolderName

2- Copy the Package to your project (the whole PackageFolderName, and paste at same level with pubspec.yaml )

3- Modify the Package's code, i.e. find the Scaffold and add the property

4- Modify your Project's pubspec.yaml and change the path of the package to

Package Name: 
  path: ./PackageFolderName/

5- Save your pubspec.yaml

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文