|
|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
import 'package:fluffychat/config/app_config.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/chat_list/analytics_summary/level_bar_popup.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/pressable_button.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
|
|
|
|
|
@ -11,18 +13,20 @@ class LevelBadge extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
return PressableButton(
|
|
|
|
|
color: Theme.of(context).colorScheme.surfaceBright,
|
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
|
buttonHeight: 2.5,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
showDialog<LevelBarPopup>(
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (c) => const LevelBarPopup(),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
|
color: Theme.of(context).colorScheme.surfaceBright,
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Theme.of(context).colorScheme.primary,
|
|
|
|
|
spreadRadius: 1,
|
|
|
|
|
blurRadius: 1,
|
|
|
|
|
offset: const Offset(1, 1), // changes position of shadow
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
|
|
|
|
|
child: Row(
|
|
|
|
|
@ -49,6 +53,7 @@ class LevelBadge extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|