1.flutter安装
1.参考官网安装sdk
安卓和IOS需要分别配置对应的开发环境,安卓建议使用as开发,安装Flutter插件2.运行 $ flutter doctor
查看是否安装成功
2.基础实例
运行第一个实例程序,具体创建运行步骤参考官网
import 'package:flutter/material.dart';void main() => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Welcome to Flutter', home: Scaffold( appBar: AppBar( title: Text('Welcome to Flutter'), ), body: Center( child: Text('Hello World'), ), ), ); }}