fix: improve chat message deduplication, add conversation refresh logic, and update UI components for consistency

This commit is contained in:
pradeepkumar
2026-04-18 11:34:48 +05:30
parent 164d590d31
commit afa1f3489a
6 changed files with 47 additions and 8 deletions

View File

@@ -1651,12 +1651,13 @@ class _AgentEditProfileScreenState
await showModalBottomSheet<void>(
context: context,
useRootNavigator: true,
isScrollControlled: true,
backgroundColor: Colors.white,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
),
builder: (ctx) {
builder: (sheetCtx) {
return StatefulBuilder(
builder: (ctx, setSheetState) {
final filtered = options.where((o) {
@@ -1754,7 +1755,7 @@ class _AgentEditProfileScreenState
Expanded(
child: OutlinedButton(
onPressed: () =>
Navigator.pop(ctx),
Navigator.of(ctx).pop(),
style: OutlinedButton.styleFrom(
padding:
const EdgeInsets.symmetric(
@@ -1772,7 +1773,7 @@ class _AgentEditProfileScreenState
child: ElevatedButton(
onPressed: () {
onChanged(workingSelected);
Navigator.pop(ctx);
Navigator.of(ctx).pop();
},
style: ElevatedButton.styleFrom(
backgroundColor: