為您解碼網(wǎng)站建設(shè)的點(diǎn)點(diǎn)滴滴
發(fā)表日期:2018-12 文章編輯:小燈 瀏覽次數(shù):2665
前邊,我們已經(jīng)學(xué)會(huì)了Flutter的創(chuàng)建和運(yùn)行,還有熱重載,下面,我們將會(huì)創(chuàng)建一個(gè)新的Flutter,之后,所有的教程都會(huì)基于這個(gè)項(xiàng)目進(jìn)行,以此來熟悉Flutter的方方面面,已經(jīng)掌握這個(gè)流程的可以直接跳過,開始進(jìn)行下一步的學(xué)習(xí)
import 'package:flutter/material.dart';void main() => runApp(new MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( title: 'Welcome to Flutter', home: new Scaffold( appBar: new AppBar( title: new Text('Welcome to Flutter'), ), body: new Center( child: new Text('Hello World'), ), ), ); } }
4.運(yùn)行程序,檢查是否存在問題![運(yùn)行程序,檢查是否存在問題]