第一个页面(未完成)

import 'package:flutter/material.dart';

void main() async {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  MyApp()  {

  }
  showWelcomePage() {
    // 暂时关掉欢迎介绍
  }
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'title',
      theme: new ThemeData(
        backgroundColor: Color(0xFFEFEFEF),
        accentColor: Color(0xFF888888),
        textTheme: TextTheme(
          //设置Material的默认字体样式
          body1: TextStyle(color: Color(0xFF888888), fontSize: 16.0),
        ),
        iconTheme: IconThemeData(
          size: 35.0,
        ),
      ),
      home: new Scaffold(
          body: showWelcomePage()
      ),
    );
  }
}

 

posted @ 2019-04-28 17:17  飞雪飘鸿  阅读(184)  评论(0编辑  收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL