1.參考官網安裝sdk
https://flutter.io/get-started/install
安卓和IOS須要分別配置對應的開發環境,安卓建議使用as開發,安裝Flutter插件app
2.運行 $ flutter doctor
查看是否安裝成功less
運行第一個實例程序,具體建立運行步驟參考官網ide
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'), ), ), ); } }