ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    解决 Flutter Text或者RichText不换行的问题

    Sep 30, 20222 min read

    如果它是您要包装的单个文本小部件,则可以使用Flexible或Expanded小部件。

    Expanded(
      child: Text('Some lengthy text for testing'),
    )
    

    要么

    Flexible(
      child: Text('Some lengthy text for testing'),
    )
    

    需要使用Expanded才会自动换行

    相关文章

    【你是如何下定决心戒酒的?】

    斯坦福大学医学院副教授Andrew D. Huberman在其播客中详细阐述了酒精对身体的负面影响,包括中毒、大脑损伤、情绪和记忆问题,以及长期健康风险,强调了戒酒的重要性。

    docker-compose 限制容器日志大小

    在docker-compose.yml中配置logging选项可限制容器日志大小为10MB且最多保留3个日志文件。

    Vite 查看项目下是否已经安装过Autoprefixerz

    查看项目中是否已安装Autoprefixer及其版本的方法是运行命令`npm ls autoprefixer version`。

    Too many open files error on Mac OS

    The "Too many open files error on Mac OS" can be permanently resolved by adding "ulimit -n 10240" to your bash profile via sudo nano .bash_profile.

    在SwiftUI如何实现拖动移动列表中的任何行?

    在SwiftUI中,通过结合使用DragGesture和onMove modifiers,可以实现列表中行的拖动移动功能。