ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter Position Stack 居中

    Jul 15, 20227 min read
          Padding(
            padding: const EdgeInsets.all(4.0),
            child: Stack(
              children: <Widget>[
                Positioned(
                    bottom: 0.0,
                    right: 0.0,
                    left: 0.0,
                    child: Padding(
                      padding: const EdgeInsets.symmetric(horizontal: 8.0),
                      child: Container(
                          color: Colors.blue,
                          child: Center(
                            child: Text('Hello',
                              style: TextStyle(color: Color(0xffF6C37F),
                              fontSize: 46, fontWeight: FontWeight.bold),),
                          )
                      ),
                    )
                ),
              ],
            ),
          ),
    

    相关文章

    Node 读取文本换行输出

    该代码使用Node.js读取文本文件"words.txt"的每一行,匹配并输出中文字符到"tmp.txt"文件,但不包括字符"一"。

    next.js 如何关闭 Telemetry?

    在Next.js项目中关闭Telemetry,需在根目录创建`next.config.js`并设置`telemetry: false`,以禁用数据收集。

    docker 清理所有停止的容器和对应的镜像

    运行 `docker container prune` 和 `docker image prune` 命令可以自动删除所有已停止的容器和未使用的镜像,无需确认,使用时需谨慎。

    vue 3 computed getter setter

    Vue 3 中使用 computed 属性实现 getter 和 setter 功能,允许双向绑定和计算属性更新。

    解决 Vercel 在国内无法访问

    在国内访问 Vercel 可通过使用 VPN、更改 DNS 设置、使用代理服务器或选择国内 CDN 服务商来解决。