摘要: import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( ... 阅读全文
posted @ 2019-04-01 17:23 飞雪飘鸿 阅读(394) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( ... 阅读全文
posted @ 2019-04-01 17:07 飞雪飘鸿 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 要将build方法放在State中,而不是放在StatefulWidget中。 当右下角的floatingActionButton按钮被点击之后,会调用_incrementCounter,在_incrementCounter中,首先会自增_counter计数器(状态),然后setState会通知Fl 阅读全文
posted @ 2019-04-01 14:46 飞雪飘鸿 阅读(152) 评论(0) 推荐(0) 编辑
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL