Skip to content

Commit

Permalink
Merge branch 'main' into feat/delete-account
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasleyba authored Mar 22, 2024
2 parents 8c656cb + 9f3b7c3 commit 950e59b
Show file tree
Hide file tree
Showing 43 changed files with 74 additions and 72 deletions.
6 changes: 3 additions & 3 deletions flutter_news_example/api/lib/src/data/static_news_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ final popularArticles = <NewsItem>[
url: Uri.parse(
'https://nbc-2.com/news/2022/05/19/boeing-makes-third-attempt-to-launch-its-starliner-capsule-to-the-iss',
),
)
),
];

/// List of relevant search articles.
Expand Down Expand Up @@ -116,7 +116,7 @@ final relevantArticles = <NewsItem>[
url: Uri.parse(
'https://www.cnn.com/2022/05/24/health/what-is-monkeypox-virus-explainer-update-wellness',
),
)
),
];

/// Technology news items.
Expand Down Expand Up @@ -1232,7 +1232,7 @@ final scienceVideoItems = <NewsItem>[
url: Uri.parse(
'https://www.cbsnews.com/news/black-hole-audio-perseus-galaxy-cluster',
),
)
),
];

/// Top news feed blocks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum BlockActionType {
unknown
}

/// {@macro block_action}
/// {@template block_action}
/// A class which represents an action that can occur
/// when interacting with a block.
/// {@endtemplate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void main() {

const actions = <BlockAction>[
NavigateToArticleAction(articleId: 'articleId'),
NavigateToFeedCategoryAction(category: Category.top)
NavigateToFeedCategoryAction(category: Category.top),
];

for (final action in actions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void main() {
publishedAt: DateTime(2022, 3, 12),
imageUrl: 'imageUrl',
title: 'title',
)
),
],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void main() {
publishedAt: DateTime(2022, 3, 12),
imageUrl: 'imageUrl',
title: 'title',
)
),
],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ void main() {
name: SubscriptionPlan.premium,
cost: SubscriptionCost(annual: 4200, monthly: 42),
benefits: ['benefit'],
)
),
],
);
when(() => httpClient.get(any())).thenAnswer(
Expand Down
2 changes: 1 addition & 1 deletion flutter_news_example/lib/article/view/article_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ArticleView extends StatelessWidget {
.add(ShareRequested(uri: uri)),
),
),
if (!isSubscriber) const ArticleSubscribeButton()
if (!isSubscriber) const ArticleSubscribeButton(),
],
),
body: ArticleThemeOverride(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ArticleTrailingContent extends StatelessWidget {
const SliverPadding(
padding: EdgeInsets.all(AppSpacing.lg),
sliver: SliverToBoxAdapter(child: ArticleComments()),
)
),
],
if (isArticlePreview) ...[
SliverList(
Expand All @@ -70,7 +70,7 @@ class ArticleTrailingContent extends StatelessWidget {
],
),
),
]
],
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion flutter_news_example/lib/home/view/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class HomePage extends StatelessWidget {
newsRepository: context.read<NewsRepository>(),
),
),
BlocProvider(create: (_) => HomeCubit())
BlocProvider(create: (_) => HomeCubit()),
],
child: const HomeView(),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LoginWithEmailPage extends StatelessWidget {
key: const Key('loginWithEmailPage_closeIcon'),
icon: const Icon(Icons.close),
onPressed: () => Navigator.pop(context),
)
),
],
),
body: const LoginWithEmailForm(),
Expand Down
2 changes: 1 addition & 1 deletion flutter_news_example/lib/login/widgets/login_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _LoginContent extends StatelessWidget {
const SizedBox(height: AppSpacing.lg),
_TwitterLoginButton(),
const SizedBox(height: AppSpacing.lg),
_ContinueWithEmailLoginButton()
_ContinueWithEmailLoginButton(),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MagicLinkPromptPage extends StatelessWidget {
icon: const Icon(Icons.close),
onPressed: () => Navigator.of(context)
.popUntil((route) => route.settings.name == LoginModal.name),
)
),
],
),
body: MagicLinkPromptView(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MagicLinkPromptView extends StatelessWidget {
const SizedBox(height: AppSpacing.xxxlg),
MagicLinkPromptSubtitle(email: email),
const Spacer(),
MagicLinkPromptOpenEmailButton()
MagicLinkPromptOpenEmailButton(),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NavDrawerSections extends StatelessWidget {
.read<CategoriesBloc>()
.add(CategorySelected(category: category));
},
)
),
],
],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class OnboardingViewItem extends StatelessWidget {
const Spacer(),
primaryButton,
const SizedBox(height: AppSpacing.sm),
secondaryButton
secondaryButton,
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion flutter_news_example/lib/search/view/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class _SearchViewState extends State<SearchView> {
),
...state.articles.map<Widget>(
(newsBlock) => CategoryFeedItem(block: newsBlock),
)
),
],
);
},
Expand Down
4 changes: 2 additions & 2 deletions flutter_news_example/lib/slideshow/view/slideshow_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class SlideshowView extends StatelessWidget {
},
),
),
if (!isSubscriber) const ArticleSubscribeButton()
if (!isSubscriber) const ArticleSubscribeButton(),
],
)
),
],
),
backgroundColor: AppColors.darkBackground,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class _SubscribeModalState extends State<SubscribeModal> {
),
),
const SizedBox(height: AppSpacing.sm),
]
],
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SubscriptionCard extends StatelessWidget {
if (isLoggedIn)
Text(l10n.subscriptionPurchaseButton)
else
Text(l10n.subscriptionUnauthenticatedPurchaseButton)
Text(l10n.subscriptionUnauthenticatedPurchaseButton),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TermsOfServicePage extends StatelessWidget {
vertical: AppSpacing.xs,
),
),
SizedBox(height: AppSpacing.lg)
SizedBox(height: AppSpacing.lg),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class _AppBackButtonPageState extends State<AppBackButtonPage> {
value: _isLight,
onChanged: (_) => setState(() => _isLight = !_isLight),
),
const Text('Default/light')
const Text('Default/light'),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SendLoginEmailLinkFailure extends AuthenticationException {
const SendLoginEmailLinkFailure(super.error);
}

/// {@template is is_log_in_email_link_failure}
/// {@template is_log_in_email_link_failure}
/// Thrown during the validation of the email link process if a failure occurs.
/// {@endtemplate}
class IsLogInWithEmailLinkFailure extends AuthenticationException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class InAppPurchaseBuyNonConsumableFailure extends InAppPurchaseFailure {
/// flag set to true, which means that we need to deliver the content of the
/// product to the user and mark the purchase as completed using [completePurchase](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/InAppPurchasePlatform/completePurchase.html)
/// method.
/// {@endtemplate}
class InAppPurchaseRepository {
/// {@macro in_app_purchase_repository}
InAppPurchaseRepository({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void main() {
emitsInOrder(
<Matcher>[
isA<PurchasePurchased>(),
emitsError(isA<PurchaseFailed>())
emitsError(isA<PurchaseFailed>()),
],
),
);
Expand Down Expand Up @@ -550,7 +550,7 @@ void main() {
purchaseDetails.copyWith(
status: PurchaseStatus.pending,
pendingCompletePurchase: true,
)
),
],
]),
);
Expand Down Expand Up @@ -613,7 +613,7 @@ void main() {
purchaseDetails.copyWith(
status: PurchaseStatus.pending,
pendingCompletePurchase: true,
)
),
],
]),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class _SlideshowState extends State<Slideshow> {
controller: _controller,
navigationLabel: widget.navigationLabel,
),
const SizedBox(height: AppSpacing.lg)
const SizedBox(height: AppSpacing.lg),
],
),
);
Expand Down Expand Up @@ -197,7 +197,7 @@ class SlideshowItem extends StatelessWidget {
color: AppColors.mediumEmphasisPrimary,
),
),
)
),
],
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TrendingStory extends StatelessWidget {
style: theme.labelSmall?.apply(color: AppColors.secondary),
),
),
PostSmall(block: block.content)
PostSmall(block: block.content),
],
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LockIcon extends StatelessWidget {
color: Colors.black.withOpacity(0.15),
offset: const Offset(0, 1),
blurRadius: 3,
)
),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class PostContent extends StatelessWidget {
premiumText: premiumText,
isVideoContent: isVideoContent,
),
]
],
],
),
Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ final Map<String, ProductDetails> availableProducts = {
price: r'$14.99',
rawPrice: 14.99,
currencyCode: 'USD',
)
),
};
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class IncrementAppOpenedCountFailure extends UserFailure {

/// {@template fetch_current_subscription_failure}
/// An exception thrown when fetching current subscription fails.
/// {@endtemplate}
class FetchCurrentSubscriptionFailure extends UserFailure {
/// {@macro fetch_current_subscription_failure}
const FetchCurrentSubscriptionFailure(super.error);
Expand Down
2 changes: 1 addition & 1 deletion flutter_news_example/test/app/bloc/app_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void main() {
AppState(
showLoginOverlay: true,
status: AppStatus.unauthenticated,
)
),
],
verify: (_) {
verify(
Expand Down
6 changes: 3 additions & 3 deletions flutter_news_example/test/app/routes/routes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void main() {
(p) => p.child,
'child',
isA<OnboardingPage>(),
)
),
],
);
});
Expand All @@ -27,7 +27,7 @@ void main() {
(p) => p.child,
'child',
isA<HomePage>(),
)
),
],
);
});
Expand All @@ -40,7 +40,7 @@ void main() {
(p) => p.child,
'child',
isA<HomePage>(),
)
),
],
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void main() {
contentTotalCount: articleResponse.totalCount,
relatedArticles: relatedArticlesResponse.relatedArticles,
hasMoreContent: false,
)
),
],
);

Expand Down
Loading

0 comments on commit 950e59b

Please sign in to comment.