ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter Expanded 源码

    Oct 6, 20225 min read
    class Expanded extends Flexible {
      /// Creates a widget that expands a child of a [Row], [Column], or [Flex]
      /// so that the child fills the available space along the flex widget's
      /// main axis.
      const Expanded({
        super.key,
        super.flex,
        required super.child,
      }) : super(fit: FlexFit.tight);
    }
    

    相关文章

    Vue mock的简单使用

    Vue中使用mock.js模拟数据接口,通过引入mock.js并定义模拟接口,然后在Vue组件中调用这些接口进行数据模拟。

    Flutter Dart 代码实现发布订阅模式

    在 Dart 中,使用 `Stream` 类实现发布订阅模式,示例代码展示了如何创建 `Publisher` 和 `Subscriber` 类来发布和订阅数据。

    Node Puppeteer 使用环境变量来切换 Puppeteer 的配置

    使用环境变量通过命令行或代码中的 `process.env` 来动态切换 Puppeteer 的配置。

    有哪些可用的加密手段可以保证在别人提供的网络中的安全?

    使用加密手段如DNS over QUIC, VPNs, Tor, HTTPS等可以保护用户在网络中的数据不被网络提供方轻易获取,但需注意这些技术仍可能被高级攻击技术破解,用户应采取额外安全措施。

    解决 Flutter 键盘遮挡输入框问题

    Flutter中解决键盘遮挡输入框的问题可以通过使用SingleChildScrollView或ListView结合MediaQuery或GestureDetector来实现自动滚动页面,确保输入框不被键盘遮挡。