flutter学习教程一

import'package:flutter/material.dart';
voidmain()=>runApp(newMyApp());
classMyAppextendsStatelessWidget{
@overrideWidgetbuild(BuildContextcontext)
{
return
new MaterialApp(title:'Welcome to Flutter',home:newScaffold(appBar:newAppBar(title:newText('Welcome to Flutter'),),body:newCenter(child:newText('Hello World'),),),);}
}

你可能感兴趣的:(flutter学习教程一)