开始学习 UI 布局
This commit is contained in:
32
lib/container.dart
Normal file
32
lib/container.dart
Normal 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,
|
||||
))
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user