Refine schedule/todo UI and integrate Google Photos API
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../models/todo_item.dart';
|
||||
import '../models/family_member.dart';
|
||||
@@ -85,7 +86,7 @@ class _TodoListWidgetState extends State<TodoListWidget> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Today's Todos",
|
||||
"오늘의 할 일",
|
||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -128,7 +129,7 @@ class _TodoListWidgetState extends State<TodoListWidget> {
|
||||
Icon(Icons.thumb_up, color: Colors.white24, size: 32),
|
||||
SizedBox(height: 8),
|
||||
Text(
|
||||
'All done for today!',
|
||||
'오늘 할 일을 모두 마쳤습니다!',
|
||||
style: TextStyle(color: Colors.white54),
|
||||
),
|
||||
],
|
||||
@@ -218,6 +219,12 @@ class _TodoListWidgetState extends State<TodoListWidget> {
|
||||
decorationColor: Colors.white54,
|
||||
),
|
||||
),
|
||||
subtitle: todo.dueDate != null && (todo.dueDate!.hour != 0 || todo.dueDate!.minute != 0)
|
||||
? Text(
|
||||
DateFormat('HH:mm').format(todo.dueDate!),
|
||||
style: const TextStyle(color: Colors.white54, fontSize: 12),
|
||||
)
|
||||
: null,
|
||||
trailing: Checkbox(
|
||||
value: todo.completed,
|
||||
onChanged: (val) async {
|
||||
|
||||
Reference in New Issue
Block a user