我在容器(1)内创建了容器(2)。您能帮忙如何向容器添加文本吗(1)?下面是我的代码
return Scaffold(
body:
Padding(
padding: const EdgeInsets.only(top: 100, left: 30, right: 30, bottom: 25,),
child: Container(
height: 300,
color: Colors.red,
alignment: Alignment.bottomLeft,
child: Container(
width: 360,
height: 230,
color: Colors.blue,
child: Align(
alignment: Alignment.center,
child: Text(
'Car or sport car'
maxLines: 3,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 20,
),
),
),
),
),
),
Run Code Online (Sandbox Code Playgroud) 我最近在我的 flutter 项目中导入了本机闪屏包。但是当我启动应用程序时,那里的图像太小了。请问有什么办法可以增大图片尺寸吗?
我还添加了我的 pubspec.yaml 代码
flutter_native_splash:
color: "#ffffff"
image: assets/nakupnylistlogo.png
android: true
ios: true
Run Code Online (Sandbox Code Playgroud)