feat:增加主题颜色和暗黑模式
This commit is contained in:
@@ -40,11 +40,13 @@ class FlispPageState extends State<FlispPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return buildBody(
|
||||
return Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: Column(
|
||||
children: [
|
||||
buildStatsCard(_activeFlisps),
|
||||
buildTabs(
|
||||
context: context,
|
||||
currentTab: _currentTab,
|
||||
onTabChanged: (value) {
|
||||
setState(() {
|
||||
@@ -53,15 +55,15 @@ class FlispPageState extends State<FlispPage> {
|
||||
},
|
||||
),
|
||||
// 待办事项列表
|
||||
Expanded(child: _buildActiveFlispList()),
|
||||
Expanded(child: _buildActiveFlispList(context)),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildActiveFlispList() {
|
||||
Widget _buildActiveFlispList(BuildContext context) {
|
||||
return _activeFlisps.isEmpty
|
||||
? buildEmptyState()
|
||||
? buildEmptyState(context)
|
||||
: buildFlispList(
|
||||
context: context,
|
||||
flisps: _activeFlisps,
|
||||
|
||||
Reference in New Issue
Block a user