
本文共 2075 字,大约阅读时间需要 6 分钟。
4.1 Material Design���������������������
1. ���������
���������������Flutter���������Material Design������������������������������
import 'package:flutter/material.dart';void main () => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'All Widget Usages', home: Scaffold( body: Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Icon(Icons.airline_seat_legroom_normal, color: Colors.green), Icon(Icons.access_alarms, color: Colors.green), Icon(Icons.aspect_ratio, color: Colors.green), ], ), ), ), ); }}
2. ���������������
������������������������������Flutter���������Material Design���������������������������������������
������������
material.dart
������������Flutter���������Material Design���������������������runApp
���������������������������������������������MyApp
���������������������������������MyApp
������������StatelessWidget
������build
������������������MaterialApp
���������������Material Design���������������������
MaterialApp
���������������title
���������������������������������������Scaffold
������������������������������Scaffold
������������������body
���������Center
���������������������Center
������������������������Row
���������������������Row
������������������������������mainAxisAlignment.center
������������������������������
Row
������������������������������Icon
���������������������������������������������������Icons
���������Material Design���������������
3. ���������
������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
