当前位置:网站首页>Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
2022-07-31 22:37:00 【知识大胖】
文章目的
我很高兴 Flutter 来到桌面应用程序开发,当然,这只是一个开始,但你今天已经可以尝试了。
我想向您介绍如何使用基于macOS的 Flutter 教程编写您的第一个桌面应用程序。
1.开始使用 Flutter 开发桌面应用,您需要通过一次性的配置更改来配置桌面支持。
$ flutter config --enable-macos-desktop # for the macOS runner
2.若要确认是否已启用桌面版 Flutter,请运行以下命令。
$ flutter devices
3. 创建一个新的 Flutter 应用
flutter create flutter_desktop_sample
4. 在macOS平台上运行应用程序:
flutter run -d macos
边栏推荐
- The difference between adding or not adding the ref keyword when a variable of reference type is used as a parameter in a method call in C#
- 二叉树非递归遍历
- Pytorch lstm time series prediction problem stepping on the pit "recommended collection"
- 「APIO2010」巡逻 题解
- LeetCode 第 304 场周赛
- Collation of knowledge points in Ningbo University NBU IT project management final exam
- 支付模块实现
- The latest masterpiece!Alibaba just released the interview reference guide (Taishan version), I just brushed it for 29 days
- Fixed-length usage of nanopb string type based on RT1052 Aworks (27)
- 如何减少软件设计和实现之间鸿沟
猜你喜欢

C#中引用类型的变量做为参数在方法调用时加不加 ref 关键字的不同之处

Go1.18 upgrade function - Fuzz test from scratch in Go language

flowable workflow all business concepts
SQL27 View user details of different age groups

Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads

How to reduce the gap between software design and implementation

新产品如何进行网络推广?

VOT2021比赛简介

Qualcomm cDSP simple programming example (to query Qualcomm cDSP usage, signature), RK3588 npu usage query

Shell常用脚本:Nexus批量上传本地仓库增强版脚本(强烈推荐)
随机推荐
Verilog implements a divide-by-9 with a duty cycle of 5/18
The latest masterpiece!Alibaba just released the interview reference guide (Taishan version), I just brushed it for 29 days
How to debug TestCafe
Linux environment redis cluster to build "recommended collection"
Douyin fetches video list based on keywords API
无状态与有状态的区别
标段参数说明
Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads
JS basic exercises
Pytest初体验
网易云信圈组上线实时互动频道,「破冰」弱关系社交
Commonly used security penetration testing tools (penetration testing tools)
BM3 flips the nodes in the linked list in groups of k
高等代数_证明_任何矩阵都相似于一个上三角矩阵
【Acwing】第62场周赛 题解
Chapter Six
22年8月推广大使额外奖励规则
Transfer Learning - Domain Adaptation
#yyds干货盘点# 面试必刷TOP101:链表中环的入口结点
Daily practice——Randomly generate an integer between 1-100 and see how many times you can guess.Requirements: The number of guesses cannot exceed 7 times, and after each guess, it will prompt "bigger"