diff --git a/app/lib/pages/conversations/widgets/search_widget.dart b/app/lib/pages/conversations/widgets/search_widget.dart index 9243ccb93..c0c0a8b60 100644 --- a/app/lib/pages/conversations/widgets/search_widget.dart +++ b/app/lib/pages/conversations/widgets/search_widget.dart @@ -84,7 +84,7 @@ class _SearchWidgetState extends State { return IconButton( onPressed: convoProvider.toggleDiscardConversations, icon: Icon( - convoProvider.showDiscardedConversations ? Icons.filter_list_off_sharp : Icons.filter_list, + convoProvider.showDiscardedConversations ? Icons.filter_alt_off_sharp : Icons.filter_alt_sharp, color: Colors.white, size: 24, ), diff --git a/app/lib/pages/home/page.dart b/app/lib/pages/home/page.dart index c0c4992b1..d6c69fe7e 100644 --- a/app/lib/pages/home/page.dart +++ b/app/lib/pages/home/page.dart @@ -472,7 +472,7 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker child: const Text('Apps', style: TextStyle(color: Colors.white, fontSize: 18)), ); } else { - return Flexible( + return Expanded( child: Row( children: [ const Spacer(), @@ -480,7 +480,6 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker recordingLanguage: provider.recordingLanguage, setRecordingLanguage: (language) { provider.setRecordingLanguage(language); - // Notify capture provider if (context.mounted) { context.read().onRecordProfileSettingChanged(); diff --git a/app/lib/pages/home/widgets/speech_language_sheet.dart b/app/lib/pages/home/widgets/speech_language_sheet.dart index e7822db0e..efb6821c1 100644 --- a/app/lib/pages/home/widgets/speech_language_sheet.dart +++ b/app/lib/pages/home/widgets/speech_language_sheet.dart @@ -99,30 +99,22 @@ class SpeechLanguageSheet extends StatelessWidget { ); }, child: Container( - width: MediaQuery.of(context).size.width * 0.18, - height: MediaQuery.of(context).size.height * 0.0375, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), - color: Colors.grey.shade900, ), - padding: const EdgeInsets.only(left: 8, right: 2), + padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 4), child: Row( + crossAxisAlignment: CrossAxisAlignment.center, children: [ const Icon( Icons.language, color: Colors.white, - size: 20, - ), - const Spacer( - flex: 2, + size: 24, ), + const SizedBox(width: 4), Text( SharedPreferencesUtil().recordingsLanguage.toUpperCase(), - style: const TextStyle(color: Colors.white, fontWeight: FontWeight.w500, fontSize: 14), - textAlign: TextAlign.center, - ), - const Spacer( - flex: 3, + style: const TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold), ), ], ), diff --git a/app/lib/providers/conversation_provider.dart b/app/lib/providers/conversation_provider.dart index ddea0f159..6552f0759 100644 --- a/app/lib/providers/conversation_provider.dart +++ b/app/lib/providers/conversation_provider.dart @@ -167,6 +167,13 @@ class ConversationProvider extends ChangeNotifier implements IWalServiceListener } Future getInitialConversations() async { + // reset search + previousQuery = ""; + currentSearchPage = 0; + totalSearchPages = 0; + searchedConversations = []; + + // fetch convos conversations = await getConversationsFromServer(); processingConversations = conversations.where((m) => m.status == ConversationStatus.processing).toList();