摘要: class List extends StatelessWidget { const List({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return ListView( padding 阅读全文
posted @ 2022-10-19 21:48 伴月阁 阅读(47) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(ke 阅读全文
posted @ 2022-10-19 21:44 伴月阁 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1.Prefer const with constant constructors. 解决: 在前面加上const 阅读全文
posted @ 2022-10-19 21:29 伴月阁 阅读(96) 评论(0) 推荐(0) 编辑