flutter sdk提供完整页面的ui

1.完整ui页面

可以借鉴一些使用案例:

复制代码
return Placeholder();


/// A widget that draws a box that represents where other widgets will one day
/// be added.
///
/// This widget is useful during development to indicate that the interface is
/// not yet complete.
///
/// By default, the placeholder is sized to fit its container. If the
/// placeholder is in an unbounded space, it will size itself according to the
/// given [fallbackWidth] and [fallbackHeight].
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=LPe56fezmoo}
class Placeholder extends StatelessWidget {
  /// Creates a widget which draws a box.
  const Placeholder({
    super.key,
    this.color = const Color(0xFF455A64), // Blue Grey 700
    this.strokeWidth = 2.0,
    this.fallbackWidth = 400.0,
    this.fallbackHeight = 400.0,
    this.child
  });

  /// The color to draw the placeholder box.
  final Color color;

  /// The width of the lines in the placeholder box.
  final double strokeWidth;

  /// The width to use when the placeholder is in a situation with an unbounded
  /// width.
  ///
  /// See also:
  ///
  ///  * [fallbackHeight], the same but vertically.
  final double fallbackWidth;

  /// The height to use when the placeholder is in a situation with an unbounded
  /// height.
  ///
  /// See also:
  ///
  ///  * [fallbackWidth], the same but horizontally.
  final double fallbackHeight;

  /// The [child] contained by the placeholder box.
  ///
  /// Defaults to null.
  final Widget? child;
  @override
  Widget build(BuildContext context) {
    return LimitedBox(
      maxWidth: fallbackWidth,
      maxHeight: fallbackHeight,
      child: CustomPaint(
        size: Size.infinite,
        painter: _PlaceholderPainter(
          color: color,
          strokeWidth: strokeWidth,
        ),
        child: child,
      ),
    );
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(ColorProperty('color', color, defaultValue: const Color(0xFF455A64)));
    properties.add(DoubleProperty('strokeWidth', strokeWidth, defaultValue: 2.0));
    properties.add(DoubleProperty('fallbackWidth', fallbackWidth, defaultValue: 400.0));
    properties.add(DoubleProperty('fallbackHeight', fallbackHeight, defaultValue: 400.0));
    properties.add(DiagnosticsProperty<Widget>('child', child, defaultValue: null));
  }
}

一些statefulWidget

2.flutter 的sdk存储效果

持久化存储

Flutter入门进阶之旅(十二)Flutter 数据存储_flutter storage-CSDN博客

数据库存储flutter中数据库(Drift)的使用_flutter 数据库_朽木成才的博客-CSDN博客

3.声网,专做sdk产品

基于声网 Flutter SDK 实现互动直播 - 知乎 (zhihu.com)

声网旗下,十分完善的示例文档介绍1 对 1 互动教学 - 文档中心 - 声网Agora (shengwang.cn)

声网sdk自制appId和token的方式

使用 Token 鉴权 - 视频通话 (Legacy) - 文档中心 - 声网Agora (shengwang.cn)

4.类型的融云sdk开发相关

融云 Flutter SDK,跨平台开发的真香之选 - 掘金 (juejin.cn)

相关推荐
晚霞的不甘1 小时前
Flutter 与开源鸿蒙(OpenHarmony)深度集成:从插件开发到分布式能力实战(续篇)
flutter·开源·harmonyos
晚霞的不甘1 小时前
Flutter 与开源鸿蒙(OpenHarmony)生态融合:从 UI 渲染到系统级能力调用的全链路开发范式
flutter·开源·harmonyos
慧都小项1 小时前
UI设计工具Sketch v2025.3发布:全新界面,多个功能适配macOS Tahoe
macos·ui·sketch·用户界面
嘴贱欠吻!1 小时前
开源鸿蒙-基于Flutter搭建GitCode口袋工具-2
flutter·华为·开源·harmonyos·gitcode
晚霞的不甘1 小时前
Flutter 与开源鸿蒙(OpenHarmony)扩展开发指南:自定义插件、系统能力封装与生态工具链建设
flutter·开源·harmonyos
Aftery的博客1 小时前
flutter运行macos报错:Error: CocoaPods not installed or not in valid state.
flutter·macos·cocoapods
晚霞的不甘2 小时前
Flutter 与开源鸿蒙(OpenHarmony)实战:构建下一代跨平台应用的完整指南
flutter·开源·harmonyos
●VON2 小时前
Flutter for OpenHarmony前置知识《Flutter 状态管理入门实战:使用 Provider 构建计数器应用》
前端·学习·flutter·华为·openharmony
Evan Wang3 小时前
深度解析GetX依赖注入,从Spring与Vue视角看Flutter架构
vue.js·spring boot·flutter
Karl_wei8 小时前
桌面应用开发,Flutter 与 Electron如何选
windows·flutter·electron