我知道一些差异,例如 list = [] ; 设置={}
set 有不同的方法,如 junction() 和其他方法,我忘记了它们,但它们之间的主要区别是什么?
class app1 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return (MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Hello ',
home: Material(
child: Container (
alignment: Alignment.topCenter ,
//padding: EdgeInsets.all (30 ),
margin: EdgeInsets.all(30),
child: Row(
children: <Widget> [
Text ( 'Hello There ' , style: TextStyle (fontSize: 30 ) ),
],
),
),
),
)
);
}
}
Run Code Online (Sandbox Code Playgroud)