factor:布局颜色重构
This commit is contained in:
@@ -42,23 +42,23 @@ class TodoPageState extends State<TodoPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: Column(
|
||||
children: [
|
||||
buildTabs(
|
||||
context: context,
|
||||
currentTab: _currentTab,
|
||||
onTabChanged: (value) {
|
||||
setState(() {
|
||||
_currentTab = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
// 待办事项列表
|
||||
Expanded(child: _buildActiveTodoList(context)),
|
||||
],
|
||||
),
|
||||
return Column(
|
||||
children: [
|
||||
_buildTodoTabs(),
|
||||
Expanded(child: _buildActiveTodoList(context)),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildTodoTabs() {
|
||||
return buildTabs(
|
||||
context: context,
|
||||
currentTab: _currentTab,
|
||||
onTabChanged: (value) {
|
||||
setState(() {
|
||||
_currentTab = value;
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user