Skip to content

Commit

Permalink
refactor: restore previous style for credits item generator with `ent…
Browse files Browse the repository at this point in the history
…ry` variable
  • Loading branch information
tdiam committed Oct 21, 2023
1 parent 1f3600c commit 6daae3e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions lib/src/features/home/presentation/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,24 @@ class _HomePageState extends ConsumerState<HomePage> {
AdwPreferencesGroup.creditsBuilder(
title: AppLocalizations.of(context)!.authors,
itemCount: developers.length,
itemBuilder: (_, index) => AdwActionRow(
title: developers[index].name,
onActivated: developers[index].url.launchIt,
),
itemBuilder: (_, index) {
var entry = developers[index];
return AdwActionRow(
title: entry.name,
onActivated: entry.url.launchIt,
);
},
),
AdwPreferencesGroup.creditsBuilder(
title: "Translators",
itemCount: translators.length,
itemBuilder: (_, index) => AdwActionRow(
title: translators[index].name,
onActivated: translators[index].url.launchIt,
),
itemBuilder: (_, index) {
var entry = translators[index];
return AdwActionRow(
title: entry.name,
onActivated: entry.url.launchIt,
);
},
),
],
appIcon: SvgPicture.network(
Expand Down

0 comments on commit 6daae3e

Please sign in to comment.