联系人应用
一个崭新的 Flutter 项目。
入门
本项目是 Flutter 应用程序的起点。
要求
dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons:
image_picker:
flutter_phone_direct_caller:
dropdown_button2:
flutter_share:
file_picker:
share_plus: # You can use alternative of Share
flutter_contacts:
contacts_service:
shared_preferences:
第一部分你将学到什么
如何编写一款在 iOS、Android、桌面(例如 Windows)和 Web 上看起来自然的 Flutter 应用
-
Flutter 应用的基本结构
-
查找和使用软件包来扩展功能
-
使用 ListView.builder 创建一个可滚动的、线性的 widget 数组。
-
如何实现 flutter_share,为共享消息、链接或本地文件提供一种简单的方式。
-
url_launcher 用于启动 URL。支持 Web、电话、短信和电子邮件方案。
如何创建无限、惰性加载的列表
要实现暗黑模式,您需要使用 ThemeData 类
什么是 ThemeData flutter?
=> ThemeData 类空安全。定义了 MaterialApp 或应用内 widget 子树的整体视觉主题的配置。MaterialApp 的 theme 属性可用于配置整个应用的显示。
夜间模式
为了帮助您开始 Flutter 开发,请查看
- flutter_share 2.0.0
- url_launcher 6.1.4
- Flutter 的在线文档,其中提供了教程、示例、移动开发指南和完整的 API 参考。




