Skip to content

Commit

Permalink
Merge pull request #335 from bill0042/clarity1
Browse files Browse the repository at this point in the history
Added clarity insights to exotic armor intrinsics
  • Loading branch information
joaopmarquesini authored May 31, 2024
2 parents 22e89dc + 1bcfe7d commit ffce241
Showing 1 changed file with 38 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:little_light/shared/widgets/containers/persistent_collapsible_co
import 'package:little_light/shared/widgets/sockets/perk_icon.widget.dart';
import 'package:little_light/widgets/common/manifest_text.widget.dart';
import 'package:provider/provider.dart';
import 'package:little_light/shared/widgets/integrations/clarity/clarity_plug_info.widget.dart';

class DetailsItemIntrinsicPerkWidget extends StatelessWidget {
final DestinyItemSocketCategoryDefinition category;
Expand Down Expand Up @@ -50,38 +51,42 @@ class DetailsItemIntrinsicPerkWidget extends StatelessWidget {
final itemHash = state.itemHash;
if (itemHash == null) return Container();
if (state.isEquipped(socketIndex, plugHash) == false) return Container();
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 64,
child: PerkIconWidget(
plugItemHash: plugHash,
itemHash: itemHash,
selected: state.isSelected(socketIndex, plugHash),
equipped: state.isEquipped(socketIndex, plugHash),
onTap: () => bloc.toggleSelection(socketIndex, plugHash),
)),
SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
ManifestText<DestinyInventoryItemDefinition>(
plugHash,
uppercase: true,
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
),
Container(height: 4),
ManifestText<DestinyInventoryItemDefinition>(
plugHash,
textExtractor: (def) => def.displayProperties?.description,
softWrap: true,
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w300),
),
],
))
],
);
return Column(children: <Widget>[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 64,
child: PerkIconWidget(
plugItemHash: plugHash,
itemHash: itemHash,
selected: state.isSelected(socketIndex, plugHash),
equipped: state.isEquipped(socketIndex, plugHash),
onTap: () => bloc.toggleSelection(socketIndex, plugHash),
)),
SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
ManifestText<DestinyInventoryItemDefinition>(
plugHash,
uppercase: true,
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
),
Container(height: 4),
ManifestText<DestinyInventoryItemDefinition>(
plugHash,
textExtractor: (def) => def.displayProperties?.description,
softWrap: true,
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w300),
),
],
))
],
),
Container(height: 4),
ClarityPlugInfoWidget(plugHash),
]);
}
}

0 comments on commit ffce241

Please sign in to comment.