Skip to content

Commit

Permalink
tweaking lock icon display
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjord committed Nov 15, 2024
1 parent 9c4d704 commit 50906f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions lib/pangea/models/pangea_token_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ class PangeaToken {
bool _isActivityBasicallyEligible(ActivityTypeEnum a) {
switch (a) {
case ActivityTypeEnum.wordMeaning:
// return isContentWord;
return true;
return isContentWord;
case ActivityTypeEnum.wordFocusListening:
case ActivityTypeEnum.hiddenWordListening:
return canBeHeard;
Expand Down Expand Up @@ -226,9 +225,6 @@ class PangeaToken {
}

bool isActivityProbablyLevelAppropriate(ActivityTypeEnum a) {
debugger(when: kDebugMode);
final int points = vocabConstruct.points;
final int myxp = xp;
switch (a) {
case ActivityTypeEnum.wordMeaning:
return vocabConstruct.points < 15;
Expand Down
10 changes: 5 additions & 5 deletions lib/pangea/widgets/chat/message_toolbar_buttons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,21 @@ class DisabledAnimationState extends State<DisabledAnimation>
void initState() {
super.initState();
_controller = AnimationController(
duration: const Duration(milliseconds: 750),
duration: const Duration(milliseconds: 1000),
vsync: this,
);

_animation = TweenSequence<double>([
TweenSequenceItem<double>(
tween: Tween<double>(begin: 0, end: 1),
tween: Tween<double>(begin: 0, end: 0.9),
weight: 1.0,
),
TweenSequenceItem<double>(
tween: Tween<double>(begin: 1, end: 1),
tween: Tween<double>(begin: 0.9, end: 0.9),
weight: 1.0,
),
TweenSequenceItem<double>(
tween: Tween<double>(begin: 1, end: 0),
tween: Tween<double>(begin: 0.9, end: 0),
weight: 1.0,
),
]).animate(_controller);
Expand Down Expand Up @@ -199,7 +199,7 @@ class DisabledAnimationState extends State<DisabledAnimation>
opacity: _animation.value,
child: const Icon(
Icons.lock,
color: Colors.red,
color: AppConfig.primaryColor,
size: 28,
),
),
Expand Down

0 comments on commit 50906f9

Please sign in to comment.