摘要:
import 'package:flutter/material.dart'; class News extends StatefulWidget { final String title,imglink; News(this.title,this.imglink); @override createState() => new NewsState(); } class ... 阅读全文
摘要:
import 'package:flutter/material.dart'; class News extends StatefulWidget { final String title,imglink; News(this.title,this.imglink); @override createState() => new NewsState(); } class ... 阅读全文
摘要:
import 'package:flutter/material.dart'; class News extends StatefulWidget { final String title,imglink; News(this.title,this.imglink); @override createState() => new NewsState(); } class ... 阅读全文
摘要:
区别:for循环,就是遍历某一对象,通俗说就是根据循环次数限制做多少次重复操作。while循环,是当满足什么条件的时候,才做某种操作。 for为遍历循环 while为直到循环 阅读全文
摘要:
main(List args) { int age = 60; String status = age < 50 ? "Still young" : "Old Man"; } 阅读全文
摘要:
fullName(String firstName, String lastName) => "$firstName $lastName"; 阅读全文