improvements

main_production_copilot
Sikander Saleem 3 weeks ago
parent 8062ba8446
commit 7b48b9d836

@ -116,6 +116,7 @@ class _CopilotChatPageState extends State<CopilotChatPage> {
style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
icon: "history_icon".toSvgAsset(width: 24, height: 24, color: AppColor.icon2Color(context)),
constraints: const BoxConstraints(),
tooltip: "History",
),
],
),

@ -40,17 +40,6 @@ class _CopilotHistoryPageState extends State<CopilotHistoryPage> {
}
void _openConversation(String threadId) {
// Navigator.push(
// context,
// CupertinoPageRoute(
// builder: (_) => const CopilotChatPage(
// isNewConversation: false,
// ),
// ),
// ).then(
// (_) => context.read<CopilotProvider>().loadHistory(),
// );
context.read<CopilotProvider>().loadConversation(threadId);
Navigator.pop(context);
}
@ -58,16 +47,6 @@ class _CopilotHistoryPageState extends State<CopilotHistoryPage> {
void _startNewConversation() {
context.read<CopilotProvider>().startNewConversation();
Navigator.pop(context);
// Navigator.push(
// context,
// CupertinoPageRoute(
// builder: (_) => const CopilotChatPage(
// isNewConversation: true,
// ),
// ),
// ).then(
// (_) => context.read<CopilotProvider>().loadHistory(),
// );
}
List<CopilotHistoryItem> _filteredHistory(List<CopilotHistoryItem> history) {
@ -93,6 +72,7 @@ class _CopilotHistoryPageState extends State<CopilotHistoryPage> {
style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
icon: Icon(Icons.chat_bubble, color: AppColor.icon2Color(context)),
constraints: const BoxConstraints(),
tooltip: "New Chat",
),
],
),

Loading…
Cancel
Save