-
Notifications
You must be signed in to change notification settings - Fork 0
Sync app settings ads section with the core ads config #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fulleni
merged 8 commits into
main
from
sync-app-settings-ads-section-with-the-core-ads-config
Sep 8, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
14dfe23
chore(deps): update core.git dependency
fulleni 2c84b51
feat(localization): add translations for banner ad shape selection
fulleni 1c53eb1
refactor: Remove belowMainArticleImage case from InArticleAdSlotType …
fulleni 53f0231
feat(app_configuration): exclude demo ad platform from dashboard sele…
fulleni baaac16
refactor(app_configuration): update article ad settings form
fulleni c452aae
refactor(ad_platform_type_l10n): add unimplemented error for demo pla…
fulleni bbf3765
feat(l10n): add extension for localized banner ad shape names
fulleni 75a77b1
chore(deps): update core.git dependency
fulleni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import 'package:core/core.dart'; | ||
| import 'package:flutter/widgets.dart'; | ||
| import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; | ||
|
|
||
| /// {@template banner_ad_shape_l10n} | ||
| /// Extension on [BannerAdShape] to provide localized string representations. | ||
| /// {@endtemplate} | ||
| extension BannerAdShapeL10n on BannerAdShape { | ||
| /// Returns the localized name for a [BannerAdShape]. | ||
| String l10n(BuildContext context) { | ||
| final l10n = context.l10n; | ||
| switch (this) { | ||
| case BannerAdShape.square: | ||
| return l10n.bannerAdShapeSquare; | ||
| case BannerAdShape.rectangle: | ||
| return l10n.bannerAdShapeRectangle; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For improved readability and conciseness, the
.where()clause can be simplified to a single line. The current multi-line formatting for this simple condition is verbose and deviates from common Dart formatting practices.