摘要: 自定义的IconContainer class IconContainer extends StatelessWidget { Color color; IconData icon; // IconContainer(this.icon ,{super.key,required this.color 阅读全文
posted @ 2023-11-16 19:43 鲤斌 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 自定义的IconContainer void main() { runApp(MaterialApp( theme: ThemeData(primarySwatch: Colors.yellow), home: Scaffold( appBar: AppBar(title: const Text(" 阅读全文
posted @ 2023-11-16 18:53 鲤斌 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Padding组件处理容器与子元素之间的间距。 class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return Containe 阅读全文
posted @ 2023-11-16 10:46 鲤斌 阅读(6) 评论(0) 推荐(0) 编辑