fix: improve chat message deduplication, add conversation refresh logic, and update UI components for consistency
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user