This commit is contained in:
zhutao
2025-09-09 14:07:38 +08:00
parent 71aa4a6790
commit 900dc025d7
24 changed files with 383 additions and 91 deletions

View File

@@ -12,7 +12,7 @@ class PlanFormCard extends StatefulWidget {
}
class _PlanFormCardState extends State<PlanFormCard> {
final TextEditingController _inputController = TextEditingController(text: "刷牙");
final TextEditingController _inputController = TextEditingController(text: "");
void _handSubmit() {
if (_inputController.text.isEmpty) {
@@ -36,7 +36,7 @@ class _PlanFormCardState extends State<PlanFormCard> {
top: 56,
child: SizedBox(
height: 100,
child: Image.asset("assets/image/xiaozhi.png"),
child: Image.asset("assets/image/kbn.png"),
),
),
Container(
@@ -48,14 +48,14 @@ class _PlanFormCardState extends State<PlanFormCard> {
children: [
Container(
margin: EdgeInsets.only(bottom: 20),
child: Text("有什么事情你一直在拖延?"),
child: Text("What have you been putting off?"),
),
TextField(
controller: _inputController,
style: Theme.of(context).textTheme.bodyMedium,
maxLength: 40,
decoration: InputDecoration(
hintText: "我躺在床上听歌",
hintText: "Clean the kitchen",
fillColor: Theme.of(context).colorScheme.surfaceContainerLow,
filled: true,
enabledBorder: OutlineInputBorder(
@@ -83,7 +83,7 @@ class _PlanFormCardState extends State<PlanFormCard> {
border: Border.all(color: Colors.black, width: 1.5),
),
child: Text(
"创建计划",
"Create Plan",
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w700,