chore: Keep Tooltip until word enters Catagory (#5469)

This commit is contained in:
ggurdin 2026-01-27 15:39:16 -05:00 committed by GitHub
parent 1f7ca4c1fc
commit dd32b04bca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,6 +115,7 @@ class VocabAnalyticsListView extends StatelessWidget {
}
}
final filteredVocab = _filteredVocab;
return Column(
children: [
AnimatedContainer(
@ -178,7 +179,7 @@ class VocabAnalyticsListView extends StatelessWidget {
),
// Grid of vocab tiles
if (vocab == null)
if (filteredVocab == null)
const SliverFillRemaining(
hasScrollBody: false,
child: Center(
@ -186,7 +187,7 @@ class VocabAnalyticsListView extends StatelessWidget {
),
)
else
vocab.isEmpty
filteredVocab.isEmpty
? SliverToBoxAdapter(
child: controller.selectedConstructLevel != null
? Padding(
@ -209,7 +210,7 @@ class VocabAnalyticsListView extends StatelessWidget {
),
delegate: SliverChildBuilderDelegate(
(context, index) {
final vocabItem = _filteredVocab![index];
final vocabItem = filteredVocab[index];
return VocabAnalyticsListTile(
onTap: () {
TtsController.tryToSpeak(
@ -232,7 +233,7 @@ class VocabAnalyticsListView extends StatelessWidget {
selected: vocabItem.id == selectedConstruct,
);
},
childCount: _filteredVocab!.length,
childCount: filteredVocab.length,
),
),
const SliverToBoxAdapter(child: SizedBox(height: 75.0)),