ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter 纵向滚动嵌套横向滚动

    Oct 5, 20225 min read
       return LayoutBuilder(
          builder: (BuildContext context, BoxConstraints constraints) {
            return SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Row(
                children: urls.map((item) {
                  return Container(
                    margin: const EdgeInsets.all(5.0),
                    height: 80.0,
                    width: 80.0,
                    decoration: BoxDecoration(
                      image: DecorationImage(
                          image: NetworkImage(item),
                          fit: BoxFit.cover),
                    ),
                  );
                }).toList(),
              ),
            );
          },
        );
    

    SingleChildScrollView  添加 横向滚动属性

    相关文章

    React FunctionComponent 源码的 TS知识点

    总结:该内容详细介绍了React FunctionComponent接口的TypeScript知识点,包括函数接口定义、泛型默认值、可选属性处理、keyof操作符以及WeakValidationMap泛型类型的可编程化。

    使用命令行来操作Chrome

    使用命令行操作Headless Chrome,可以实现网页的DOM打印、PDF创建和截屏等功能。

    Flutter flutter/foundation 包的 Platform 类使用

    Flutter中的Platform类提供了一系列静态方法,用于获取当前运行应用的平台信息,如操作系统名称、语言/区域设置和版本号等。

    MacOS 壁纸的存放路径在哪里?

    MacOS 壁纸通常存放在 /Library/Desktop Pictures 目录下,需通过 Finder 并输入路径访问,且需要管理员权限。

    Electron框架获取操作系统和硬件信息

    本文介绍了如何使用Electron框架和Node.js的os模块以及第三方库drivelist来获取操作系统和硬件信息。