* feat(morphs): repo for getting lang-specific list of morphs * integrated repo into use of morph features and tags * generated * merged with previous push * generated * generated * chore: fix .env file path --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> Co-authored-by: ggurdin <ggurdin@gmail.com>
33 lines
873 B
Dart
33 lines
873 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:fluffychat/pangea/analytics_summary/progress_bar/progress_bar.dart';
|
|
import 'package:fluffychat/pangea/analytics_summary/progress_bar/progress_bar_details.dart';
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
class LearningProgressBar extends StatelessWidget {
|
|
final int level;
|
|
final int totalXP;
|
|
final double? height;
|
|
|
|
const LearningProgressBar({
|
|
required this.level,
|
|
required this.totalXP,
|
|
this.height,
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ProgressBar(
|
|
height: height,
|
|
levelBars: [
|
|
LevelBarDetails(
|
|
fillColor: Theme.of(context).colorScheme.primary,
|
|
currentPoints: totalXP,
|
|
widthMultiplier:
|
|
MatrixState.pangeaController.getAnalytics.levelProgress,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|