tweaking lock icon display

pull/1490/head
William Jordan-Cooley 1 year ago
parent 9c4d704ec4
commit 50906f929f

@ -171,8 +171,7 @@ class PangeaToken {
bool _isActivityBasicallyEligible(ActivityTypeEnum a) { bool _isActivityBasicallyEligible(ActivityTypeEnum a) {
switch (a) { switch (a) {
case ActivityTypeEnum.wordMeaning: case ActivityTypeEnum.wordMeaning:
// return isContentWord; return isContentWord;
return true;
case ActivityTypeEnum.wordFocusListening: case ActivityTypeEnum.wordFocusListening:
case ActivityTypeEnum.hiddenWordListening: case ActivityTypeEnum.hiddenWordListening:
return canBeHeard; return canBeHeard;
@ -226,9 +225,6 @@ class PangeaToken {
} }
bool isActivityProbablyLevelAppropriate(ActivityTypeEnum a) { bool isActivityProbablyLevelAppropriate(ActivityTypeEnum a) {
debugger(when: kDebugMode);
final int points = vocabConstruct.points;
final int myxp = xp;
switch (a) { switch (a) {
case ActivityTypeEnum.wordMeaning: case ActivityTypeEnum.wordMeaning:
return vocabConstruct.points < 15; return vocabConstruct.points < 15;

@ -156,21 +156,21 @@ class DisabledAnimationState extends State<DisabledAnimation>
void initState() { void initState() {
super.initState(); super.initState();
_controller = AnimationController( _controller = AnimationController(
duration: const Duration(milliseconds: 750), duration: const Duration(milliseconds: 1000),
vsync: this, vsync: this,
); );
_animation = TweenSequence<double>([ _animation = TweenSequence<double>([
TweenSequenceItem<double>( TweenSequenceItem<double>(
tween: Tween<double>(begin: 0, end: 1), tween: Tween<double>(begin: 0, end: 0.9),
weight: 1.0, weight: 1.0,
), ),
TweenSequenceItem<double>( TweenSequenceItem<double>(
tween: Tween<double>(begin: 1, end: 1), tween: Tween<double>(begin: 0.9, end: 0.9),
weight: 1.0, weight: 1.0,
), ),
TweenSequenceItem<double>( TweenSequenceItem<double>(
tween: Tween<double>(begin: 1, end: 0), tween: Tween<double>(begin: 0.9, end: 0),
weight: 1.0, weight: 1.0,
), ),
]).animate(_controller); ]).animate(_controller);
@ -199,7 +199,7 @@ class DisabledAnimationState extends State<DisabledAnimation>
opacity: _animation.value, opacity: _animation.value,
child: const Icon( child: const Icon(
Icons.lock, Icons.lock,
color: Colors.red, color: AppConfig.primaryColor,
size: 28, size: 28,
), ),
), ),

Loading…
Cancel
Save