void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return Container(
height: 100,
width: 100,
color: Color.fromRGBO(255, 200, 255, 1),
child: Text(
"hello world",
textDirection: TextDirection.ltr,
style: TextStyle(
color: Color.fromRGBO(0, 0, 0, 1)
),
),
);
}
}
页面jlabel背景色设置_Flutter 新手提问 为啥子 Container 设置的宽高 背景色 还是覆盖的整个页面...
最新推荐文章于 2023-01-28 16:03:43 发布