代碼以下bash
import 'package:flutter/material.dart';
// 配置main函數
void main() async {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// 顯示歡迎頁
WelcomePage();
return new MaterialApp(
title: 'title',
home: RouteProSample( ),
);
}
}
class RouteProSample extends StatefulWidget {
@override
createState() => _RouteProSampleState();
}
class _RouteProSampleState extends State<RouteProSample> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('導航欄標題->label'),
),
body: new Center(
child: new Text (
'個人text',
style: new TextStyle(
fontSize: 20.0,
color: Colors.red,
fontStyle: FontStyle.italic,
),
),
),
);
}
}
複製代碼
Flutter入門基礎(三)-TextFile登陸頁async
Flutter入門基礎(六)-UITableView(二)添加headerView學習
能夠來微信公衆號(洲洲哥)後臺給我留言。 快來掃碼關注咱們吧!