ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter 圆角头象的几种设置方法

    Jun 27, 20224 min read
    CircleAvatar(
        backgroundColor: Colors.transparent,
        child: SizedBox(
          width: 60,
          height: 60,
          child: ClipOval(
            child: Image.asset("Assets/Images/music_default.png",
          ),
        )
    )
    
    ClipOval(
      child: Image.network(
        'https://via.placeholder.com/150',
        width: 100,
        height: 100,
        fit: BoxFit.cover,
      ),
    ),
    
    Container(
      decoration: BoxDecoration(
        image: DecorationImage(image: AssetImage("assets/images/profile_default.jpeg"),fit: BoxFit.fill),
        color: Colors.white,
        shape: BoxShape.circle,
      ),
    )
    

    相关文章

    OpenCV 频域变换

    OpenCV中的频域变换包括傅里叶变换和反傅里叶变换,用于图像处理中的滤波、解卷积等操作,通过dft()函数实现,并可使用shift()函数进行中心化处理。

    next.js 使用pm2

    使用pm2以"office-web"为名启动next.js应用。

    How to change Background Color of Button in SwiftUI

    In SwiftUI, use the `background` modifier to change a button's background color, as shown setting it to blue in the example, and chain other modifiers like `padding()` or `cornerRadius()` for further customization.

    gin 上传图片到阿里云oss

    Gin框架中实现图片上传到阿里云OSS的Go代码,包括文件类型检查、时间戳命名和上传处理。

    OpenAI宣布全球推出ChatGPT移动应用 没有香港 哈哈哈

    OpenAI已在全球40多个国家和地区推出官方ChatGPT iPhone应用,并计划未来几周内扩展到更多地区,尽管香港未被列入当前上线名单。