文章分类 -  Flutter

上一页 1 2 3 4 5 下一页
在测试中处理插件代码
摘要:Plugins in Flutter tests 测试 Flutter 应用chevron_rightPlugin tests info提示 To learn how to avoid crashes from a plugin when testing your Flutter app, read 阅读全文
posted @ 2024-12-11 09:19 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
测试插件
摘要:Testing plugins 测试 Flutter 应用chevron_rightTesting plugins All of the usual types of Flutter tests apply to plugin packages as well, but because plugin 阅读全文
posted @ 2024-12-11 09:19 AtlasLapetos 阅读(17) 评论(0) 推荐(0)
衡量集成测试的性能指标
摘要:通过集成测试测量性能 实用教程chevron_right测试 (Testing)chevron_right集成chevron_right通过集成测试测量性能 性能移动应用用户来说相当重要,用户希望应用程序有流畅的滚动和优雅的动画,不愿看到卡顿和掉帧现象。我们如何确保我们的应用程序在各种设备上不会受到 阅读全文
posted @ 2024-12-11 09:19 AtlasLapetos 阅读(26) 评论(0) 推荐(0)
编写并运行集成测试
摘要:通过集成测试检查应用的功能 测试 Flutter 应用chevron_right通过集成测试检查应用的功能 This recipe describes how to use the integration_test package to run integration tests. The Flut 阅读全文
posted @ 2024-12-11 09:19 AtlasLapetos 阅读(71) 评论(0) 推荐(0)
集成测试的理念
摘要:集成测试的理念 实用教程chevron_right测试 (Testing)chevron_right集成chevron_right介绍 Unit tests and widget tests validate individual classes, functions, or widgets. Th 阅读全文
posted @ 2024-12-11 09:19 AtlasLapetos 阅读(8) 评论(0) 推荐(0)
模拟用户操作
摘要:点击、拖拽事件和文本输入 实用教程chevron_right测试 (Testing)chevron_rightWidgetchevron_right点击、拖拽事件和文本输入 我们构建的大部分 widget 不仅仅需要展示信息,还需要响应用户交互。常见的交互有用户点击按钮、在屏幕上拖动组件和在 Tex 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(28) 评论(0) 推荐(0)
模拟滚动
摘要:模拟滚动操作 实用教程chevron_right测试 (Testing)chevron_rightWidgetchevron_right模拟滚动操作 许多应用程序(电子邮件客户端、音乐应用程序等)都具有内容列表功能。要使用 widget 测试来验证列表是否包含预期内容,你需要一种方法来滚动列表以检索 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(7) 评论(0) 推荐(0)
定位到目标 widget
摘要:定位到目标 widget 实用教程chevron_right测试 (Testing)chevron_rightWidgetchevron_right定位到目标 widget 在测试环境下,为了定位 widgets,我们需要用到 Finder 类。我们可以编写自己的 finder 类,不过通常使用 f 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(9) 评论(0) 推荐(0)
Widget 测试介绍
摘要:Widget 测试介绍 实用教程chevron_right测试 (Testing)chevron_rightWidgetchevron_rightIntroduction 在 单元测试介绍 部分,我们学习了使用 test 这个 package 测试 Dart 类的方法。为了测试 widget 类,我 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(24) 评论(0) 推荐(0)
模拟依赖
摘要:使用 Mockito 模拟依赖关系 实用教程chevron_right测试 (Testing)chevron_right单元测试 (Unit)chevron_rightMocking 某些情况下,单元测试可能会依赖需要从线上 Web 服务或数据库中获取数据的类。这样会带来一些不便,原因如下: 访问线 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(16) 评论(0) 推荐(0)
单元测试介绍
摘要:单元测试介绍 实用教程chevron_right测试 (Testing)chevron_right单元测试 (Unit)chevron_rightIntroduction 我们如何保证 app 在增加了新特性或者改变了现有功能之后还能正常工作呢?答案是写测试! 使用单元测试可轻松地验证单个函数、方法 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(24) 评论(0) 推荐(0)
测试概览
摘要:Testing Flutter apps 测试 Flutter 应用chevron_rightTesting Flutter apps The more features your app has, the harder it is to test manually. Automated tests 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(6) 评论(0) 推荐(0)
Flutter Favorite 项目
摘要:Flutter Favorite 项目 Packages & pluginschevron_rightFlutter Favorite 项目 Flutter Favorite 项目是为了在你构建应用时,能够向你提供你应该优先考虑的 package 和插件。这并不意味着它能够在你的特定情况下保证你的产 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(25) 评论(0) 推荐(0)
Swift Package Manager - 针对插件作者
摘要:Swift Package Manager for plugin authors Packages & pluginschevron_rightSwift Package Manager for Flutterchevron_rightSwift Package Manager for plugin 阅读全文
posted @ 2024-12-11 09:18 AtlasLapetos 阅读(46) 评论(0) 推荐(0)
Swift Package Manager - 针对应用开发者
摘要:Swift Package Manager for app developers Packages & pluginschevron_rightSwift Package Manager for Flutterchevron_rightSwift Package Manager for app de 阅读全文
posted @ 2024-12-11 09:17 AtlasLapetos 阅读(85) 评论(0) 推荐(0)
开发Package和插件
摘要:Flutter Packages 的开发和提交 Packages & pluginschevron_right开发和提交 Package 介绍 # 通过使用 package(的模式)可以创建易于共享的模块化代码。一个最基本的 package 由以下内容构成: pubspec.yaml 文件 用于定义 阅读全文
posted @ 2024-12-11 09:17 AtlasLapetos 阅读(100) 评论(0) 推荐(0)
使用package和插件
摘要:在 Flutter 里使用 Packages Packages & pluginschevron_right在 Flutter 里使用 Packages Flutter 支持使用其他开发者向 Flutter 和 Dart 生态系统贡献的共享 package,这意味着你可以快速构建应用而不是一切从零开 阅读全文
posted @ 2024-12-10 09:34 AtlasLapetos 阅读(91) 评论(0) 推荐(0)
创建一个平行错位滚动的效果
摘要:创建一个视差滚动效果 实用教程chevron_rightEffectschevron_right创建一个视差滚动效果 当你在应用程序中滚动一个包含图片的卡片列表时,你可能会注意到那些图片的滚动速度比屏幕的其余部分要慢一些。看起来似乎列表中的卡片位于前面,而图片本身则像是远远地在背景中。这种效果被称为 阅读全文
posted @ 2024-12-10 09:28 AtlasLapetos 阅读(32) 评论(0) 推荐(0)
在列表开头添加一个浮动的顶栏
摘要:在列表顶部放置一个浮动的 app bar 实用教程chevron_rightListschevron_right在列表顶部放置一个浮动的 app bar 为了方便用户查看列表,你可能希望在用户向下滚动列表时隐藏 app bar,尤其在你的 app bar 特别高,导致它占据了很多竖向空间的时候。 一 阅读全文
posted @ 2024-12-10 09:28 AtlasLapetos 阅读(10) 评论(0) 推荐(0)
使用 sliver 实现出色的滑动效果
摘要:使用 sliver 实现出色的滑动效果 UIchevron_right布局chevron_rightScrollingchevron_right使用 sliver 实现出色的滑动效果 Sliver 是可滚动区域的一部分,你可以定义它以特殊的方式工作。你可以使用 sliver 实现自定义滚动效果,比如 阅读全文
posted @ 2024-12-10 09:28 AtlasLapetos 阅读(18) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页