remove unreferenced widget
This commit is contained in:
parent
c3f7472224
commit
3f61607995
1 changed files with 0 additions and 37 deletions
|
|
@ -1,37 +0,0 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:fluffychat/pangea/constructs/construct_level_enum.dart';
|
||||
|
||||
class ConstructXpWidget extends StatelessWidget {
|
||||
final ConstructLevelEnum level;
|
||||
final int points;
|
||||
final Widget icon;
|
||||
|
||||
const ConstructXpWidget({
|
||||
super.key,
|
||||
required this.level,
|
||||
required this.points,
|
||||
required this.icon,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Color textColor = Theme.of(context).brightness != Brightness.light
|
||||
? level.color(context)
|
||||
: level.darkColor(context);
|
||||
|
||||
return Row(
|
||||
spacing: 16.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
icon,
|
||||
Text(
|
||||
"$points XP",
|
||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||
color: textColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue