chore: decrease XP font size on mobile analytics page (#3549)

This commit is contained in:
ggurdin 2025-07-23 15:29:13 -04:00 committed by GitHub
parent 891be5efe5
commit 6ae79e7c35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 29 deletions

View file

@ -1,25 +0,0 @@
import 'package:flutter/material.dart';
import 'package:fluffychat/pangea/analytics_summary/level_dialog_content.dart';
class LevelBarPopup extends StatelessWidget {
const LevelBarPopup({
super.key,
});
@override
Widget build(BuildContext context) {
return Dialog(
child: ConstrainedBox(
constraints: const BoxConstraints(
maxWidth: 400,
maxHeight: 600,
),
child: ClipRRect(
borderRadius: BorderRadius.circular(20.0),
child: const LevelDialogContent(),
),
),
);
}
}

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pangea/analytics_misc/construct_type_enum.dart';
import 'package:fluffychat/pangea/analytics_misc/construct_use_type_enum.dart';
@ -27,6 +28,8 @@ class LevelDialogContent extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isColumnMode = FluffyThemes.isColumnMode(context);
return StreamBuilder(
stream: analytics.analyticsStream.stream,
builder: (context, _) {
@ -47,16 +50,16 @@ class LevelDialogContent extends StatelessWidget {
children: [
Text(
"${L10n.of(context).levelShort(level)}",
style: const TextStyle(
fontSize: 24,
style: TextStyle(
fontSize: isColumnMode ? 24 : 16,
fontWeight: FontWeight.w900,
color: AppConfig.gold,
),
),
Text(
L10n.of(context).xpIntoLevel(totalXP, maxLevelXP),
style: const TextStyle(
fontSize: 24,
style: TextStyle(
fontSize: isColumnMode ? 24 : 16,
fontWeight: FontWeight.w900,
color: AppConfig.gold,
),