Merge pull request #5216 from pangeachat/vocab-prac-weight
Add weight icon to practice vocab button
This commit is contained in:
commit
b9e32cf9f5
1 changed files with 6 additions and 4 deletions
|
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'package:diacritic/diacritic.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:fluffychat/pangea/analytics_data/analytics_data_service.dart';
|
||||
|
|
@ -248,10 +249,11 @@ Widget _buildVocabPracticeButton(BuildContext context) {
|
|||
label: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (!hasEnoughVocab) ...[
|
||||
const Icon(Icons.lock_outline, size: 18),
|
||||
const SizedBox(width: 4),
|
||||
],
|
||||
Icon(
|
||||
hasEnoughVocab ? Symbols.fitness_center : Icons.lock_outline,
|
||||
size: 18,
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(L10n.of(context).practiceVocab),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue