Skip to content

Commit

Permalink
action items fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josancamon19 committed Jun 13, 2024
1 parent 40f1207 commit 456279b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/AppWithWearable/lib/pages/memory_detail/page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:friend_private/backend/database/memory.dart';
Expand Down Expand Up @@ -47,6 +45,7 @@ class _MemoryDetailPageState extends State<MemoryDetailPage> {

@override
Widget build(BuildContext context) {
debugPrint(structured.actionItems.toString());
return PopScope(
canPop: false,
child: Scaffold(
Expand Down Expand Up @@ -236,8 +235,12 @@ class _MemoryDetailPageState extends State<MemoryDetailPage> {
onChanged: (v) {},
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.0))),
Expanded(
child: Text(item.description,
style: TextStyle(color: Colors.grey.shade300, fontSize: 15, height: 1.3)),
child: SelectionArea(
child: Text(
item.description,
style: TextStyle(color: Colors.grey.shade300, fontSize: 15, height: 1.3),
),
),
),
],
);
Expand Down
3 changes: 3 additions & 0 deletions apps/AppWithWearable/lib/utils/memories.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ Future<Memory> finalizeMemoryRecord(
emoji: structuredMemory.emoji,
category: structuredMemory.category,
);
for (var actionItem in structuredMemory.actionItems) {
structured.actionItems.add(ActionItem(actionItem));
}
var memory = Memory(DateTime.now(), transcript, false, recordingFilePath: recordingFilePath);
memory.structured.target = structured;

Expand Down

0 comments on commit 456279b

Please sign in to comment.