码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • flutter sdk提供完整页面的ui


    1.完整ui页面

    可以借鉴一些使用案例:

    1. return Placeholder();
    2. /// A widget that draws a box that represents where other widgets will one day
    3. /// be added.
    4. ///
    5. /// This widget is useful during development to indicate that the interface is
    6. /// not yet complete.
    7. ///
    8. /// By default, the placeholder is sized to fit its container. If the
    9. /// placeholder is in an unbounded space, it will size itself according to the
    10. /// given [fallbackWidth] and [fallbackHeight].
    11. ///
    12. /// {@youtube 560 315 https://www.youtube.com/watch?v=LPe56fezmoo}
    13. class Placeholder extends StatelessWidget {
    14. /// Creates a widget which draws a box.
    15. const Placeholder({
    16. super.key,
    17. this.color = const Color(0xFF455A64), // Blue Grey 700
    18. this.strokeWidth = 2.0,
    19. this.fallbackWidth = 400.0,
    20. this.fallbackHeight = 400.0,
    21. this.child
    22. });
    23. /// The color to draw the placeholder box.
    24. final Color color;
    25. /// The width of the lines in the placeholder box.
    26. final double strokeWidth;
    27. /// The width to use when the placeholder is in a situation with an unbounded
    28. /// width.
    29. ///
    30. /// See also:
    31. ///
    32. /// * [fallbackHeight], the same but vertically.
    33. final double fallbackWidth;
    34. /// The height to use when the placeholder is in a situation with an unbounded
    35. /// height.
    36. ///
    37. /// See also:
    38. ///
    39. /// * [fallbackWidth], the same but horizontally.
    40. final double fallbackHeight;
    41. /// The [child] contained by the placeholder box.
    42. ///
    43. /// Defaults to null.
    44. final Widget? child;
    45. @override
    46. Widget build(BuildContext context) {
    47. return LimitedBox(
    48. maxWidth: fallbackWidth,
    49. maxHeight: fallbackHeight,
    50. child: CustomPaint(
    51. size: Size.infinite,
    52. painter: _PlaceholderPainter(
    53. color: color,
    54. strokeWidth: strokeWidth,
    55. ),
    56. child: child,
    57. ),
    58. );
    59. }
    60. @override
    61. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    62. super.debugFillProperties(properties);
    63. properties.add(ColorProperty('color', color, defaultValue: const Color(0xFF455A64)));
    64. properties.add(DoubleProperty('strokeWidth', strokeWidth, defaultValue: 2.0));
    65. properties.add(DoubleProperty('fallbackWidth', fallbackWidth, defaultValue: 400.0));
    66. properties.add(DoubleProperty('fallbackHeight', fallbackHeight, defaultValue: 400.0));
    67. properties.add(DiagnosticsProperty<Widget>('child', child, defaultValue: null));
    68. }
    69. }

    一些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)

     

     

  • 相关阅读:
    移动NB-IoT卡设置ATU和Active Time缓解无法访问服务器问题
    Git常用命令(面试+复习)
    c语言进阶:冒泡排序函数初步实现到逐步优化
    git用法
    基于SuperMap iObjects C++之地形通视分析
    如何用PHP语言使用爬虫ip代码示例
    能源行业的数字化“新”运维
    数据库系列:业内主流MySQL数据中间件梳理
    类和对象常见题目解法
    Android - Navigation组件
  • 原文地址:https://blog.csdn.net/m0_73016265/article/details/133745274
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号