修正上架時 Google Play 檢查出的 issue
This commit is contained in:
@@ -23,8 +23,9 @@ class TodoApiService {
|
||||
// 2. 如果有傳入狀態過濾條件,動態加上 AND 語法
|
||||
if (statusFilter != null && statusFilter != 'All') {
|
||||
String dbStatus = '';
|
||||
if (statusFilter == 'Done') dbStatus = 'DONE';
|
||||
else if (statusFilter == 'In Progress') dbStatus = 'WIP';
|
||||
if (statusFilter == 'Done') {
|
||||
dbStatus = 'DONE';
|
||||
} else if (statusFilter == 'In Progress') dbStatus = 'WIP';
|
||||
else if (statusFilter == 'To do') dbStatus = 'TODO'; // 假設你的待辦狀態是 TODO
|
||||
|
||||
if (dbStatus.isNotEmpty) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import './todo_model.dart';
|
||||
import './todo_api.dart';
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ class _TodoFormState extends State<TodoForm> {
|
||||
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(16), boxShadow: [BoxShadow(color: Colors.grey.withOpacity(0.05), blurRadius: 10, offset: const Offset(0, 5))]),
|
||||
child: DropdownButtonHideUnderline(
|
||||
child: DropdownButtonFormField<String>(
|
||||
value: value,
|
||||
initialValue: value,
|
||||
decoration: InputDecoration(labelText: label, labelStyle: const TextStyle(fontSize: 14, color: Colors.grey), border: InputBorder.none),
|
||||
items: items.map((s) => DropdownMenuItem(value: s, child: Text(s, style: const TextStyle(fontWeight: FontWeight.bold)))).toList(),
|
||||
onChanged: onChanged,
|
||||
|
||||
Reference in New Issue
Block a user