Skip to content

Commit

Permalink
fixes review
Browse files Browse the repository at this point in the history
  • Loading branch information
karolgeneral committed Sep 26, 2024
1 parent f64b540 commit d7e78ff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/pages/detail/detail_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'company_score_widget.dart';
import 'expandandable_text.dart';
import 'logotypes.dart';
import 'no_score_message.dart';
import 'polish_capital_graph.dart';
import 'friends_bar.dart';

class DetailContent extends StatelessWidget {
Expand All @@ -28,9 +27,8 @@ class DetailContent extends StatelessWidget {
}

final company = searchResult.companies!.first;
final score = company.plScore ?? 0;
final double plCapital = (company.plCapital ?? 0).toDouble();
final Translations t = Translations.of(context);
(company.plCapital ?? 0).toDouble();
Translations.of(context);

final hasLogo = company.logotypeUrl != null;
final hasDescription = company.description?.isNotEmpty ?? false;
Expand Down Expand Up @@ -79,8 +77,8 @@ class DetailContent extends StatelessWidget {
}
}

class _DetailItem extends StatelessWidget {
const _DetailItem(this.text, this.state, {Key? key}) : super(key: key);
class DetailItem extends StatelessWidget {
const DetailItem(this.text, this.state, {Key? key}) : super(key: key);

final String text;
final bool state;
Expand Down Expand Up @@ -170,13 +168,14 @@ extension on Company {
plNotGlobEnt: plNotGlobEnt != 0,
plScore: plScore);
}
return null;
}
}

class _ScoreSection extends StatelessWidget {
final Company company;

const _ScoreSection({super.key, required this.company});
const _ScoreSection({required this.company});

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit d7e78ff

Please sign in to comment.