开始学习 UI 布局

This commit is contained in:
qwe
2026-05-26 00:01:15 +08:00
parent 94896df433
commit 97c88862ec
6 changed files with 575 additions and 5 deletions

32
lib/container.dart Normal file
View File

@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
class ZContainer extends StatelessWidget {
const ZContainer({super.key});
@override
Widget build(BuildContext context){
return Row(
mainAxisAlignment: .spaceBetween,
children: [
SizedBox(
width: 200,
height: .infinity,
child: DefaultTextStyle(
style: TextStyle(
color: Colors.white
),
child: Column(
children: [
Text("导入数据"),
Text("查询数据")
],
)
),
),
Expanded(child: Container(
color: Colors.blue,
))
]
);
}
}