code
stringlengths 8
3.25M
| repository
stringlengths 15
175
| metadata
stringlengths 66
249
|
---|---|---|
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'relevant_search_response.g.dart';
/// {@template relevant_search_response}
/// A search response object which contains relevant news content.
/// {@endtemplate}
@JsonSerializable()
class RelevantSearchResponse extends Equatable {
/// {@macro relevant_search_response}
const RelevantSearchResponse({required this.articles, required this.topics});
/// Converts a `Map<String, dynamic>` into a
/// [RelevantSearchResponse] instance.
factory RelevantSearchResponse.fromJson(Map<String, dynamic> json) =>
_$RelevantSearchResponseFromJson(json);
/// The article content blocks.
@NewsBlocksConverter()
final List<NewsBlock> articles;
/// The associated relevant topics.
final List<String> topics;
/// Converts the current instance to a `Map<String, dynamic>`.
Map<String, dynamic> toJson() => _$RelevantSearchResponseToJson(this);
@override
List<Object> get props => [articles, topics];
}
| news_toolkit/flutter_news_example/api/lib/src/models/relevant_search_response/relevant_search_response.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/api/lib/src/models/relevant_search_response/relevant_search_response.dart', 'repo_id': 'news_toolkit', 'token_count': 317} |
/// The supported news category types.
enum Category {
/// News relating to business.
business,
/// News relating to entertainment.
entertainment,
/// Breaking news.
top,
/// News relating to health.
health,
/// News relating to science.
science,
/// News relating to sports.
sports,
/// News relating to technology.
technology;
/// Returns a [Category] for the [categoryName].
static Category fromString(String categoryName) =>
Category.values.firstWhere((category) => category.name == categoryName);
}
| news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/category.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/category.dart', 'repo_id': 'news_toolkit', 'token_count': 145} |
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('PostLargeBlock', () {
test('can be (de)serialized', () {
final block = PostLargeBlock(
id: 'id',
category: PostCategory.technology,
author: 'author',
publishedAt: DateTime(2022, 3, 9),
imageUrl: 'imageUrl',
title: 'title',
);
expect(PostLargeBlock.fromJson(block.toJson()), equals(block));
});
});
}
| news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/post_large_block_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/post_large_block_test.dart', 'repo_id': 'news_toolkit', 'token_count': 207} |
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:flutter_news_example_api/api.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
import '../../../routes/api/v1/categories/index.dart' as route;
class _MockNewsDataSource extends Mock implements NewsDataSource {}
class _MockRequestContext extends Mock implements RequestContext {}
void main() {
group('GET /api/v1/categories', () {
late NewsDataSource newsDataSource;
setUp(() {
newsDataSource = _MockNewsDataSource();
});
test('responds with a 200 and categories.', () async {
const categories = [Category.sports, Category.entertainment];
when(
() => newsDataSource.getCategories(),
).thenAnswer((_) async => categories);
const expected = CategoriesResponse(categories: categories);
final request = Request('GET', Uri.parse('http://127.0.0.1/'));
final context = _MockRequestContext();
when(() => context.request).thenReturn(request);
when(() => context.read<NewsDataSource>()).thenReturn(newsDataSource);
final response = await route.onRequest(context);
expect(response.statusCode, equals(HttpStatus.ok));
expect(await response.json(), equals(expected.toJson()));
});
});
test('responds with 405 when method is not GET.', () async {
final request = Request('POST', Uri.parse('http://127.0.0.1/'));
final context = _MockRequestContext();
when(() => context.request).thenReturn(request);
final response = await route.onRequest(context);
expect(response.statusCode, equals(HttpStatus.methodNotAllowed));
});
}
| news_toolkit/flutter_news_example/api/test/routes/categories/index_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/api/test/routes/categories/index_test.dart', 'repo_id': 'news_toolkit', 'token_count': 567} |
import 'package:ads_consent_client/ads_consent_client.dart';
import 'package:analytics_repository/analytics_repository.dart';
import 'package:app_ui/app_ui.dart';
import 'package:article_repository/article_repository.dart';
import 'package:flow_builder/flow_builder.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/ads/ads.dart';
import 'package:flutter_news_example/analytics/analytics.dart';
import 'package:flutter_news_example/app/app.dart';
import 'package:flutter_news_example/l10n/l10n.dart';
import 'package:flutter_news_example/login/login.dart' hide LoginEvent;
import 'package:flutter_news_example/theme_selector/theme_selector.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart' as ads;
import 'package:in_app_purchase_repository/in_app_purchase_repository.dart';
import 'package:news_blocks_ui/news_blocks_ui.dart';
import 'package:news_repository/news_repository.dart';
import 'package:notifications_repository/notifications_repository.dart';
import 'package:platform/platform.dart';
import 'package:user_repository/user_repository.dart';
class App extends StatelessWidget {
const App({
required UserRepository userRepository,
required NewsRepository newsRepository,
required NotificationsRepository notificationsRepository,
required ArticleRepository articleRepository,
required InAppPurchaseRepository inAppPurchaseRepository,
required AnalyticsRepository analyticsRepository,
required AdsConsentClient adsConsentClient,
required User user,
super.key,
}) : _userRepository = userRepository,
_newsRepository = newsRepository,
_notificationsRepository = notificationsRepository,
_articleRepository = articleRepository,
_inAppPurchaseRepository = inAppPurchaseRepository,
_analyticsRepository = analyticsRepository,
_adsConsentClient = adsConsentClient,
_user = user;
final UserRepository _userRepository;
final NewsRepository _newsRepository;
final NotificationsRepository _notificationsRepository;
final ArticleRepository _articleRepository;
final InAppPurchaseRepository _inAppPurchaseRepository;
final AnalyticsRepository _analyticsRepository;
final AdsConsentClient _adsConsentClient;
final User _user;
@override
Widget build(BuildContext context) {
return MultiRepositoryProvider(
providers: [
RepositoryProvider.value(value: _userRepository),
RepositoryProvider.value(value: _newsRepository),
RepositoryProvider.value(value: _notificationsRepository),
RepositoryProvider.value(value: _articleRepository),
RepositoryProvider.value(value: _analyticsRepository),
RepositoryProvider.value(value: _inAppPurchaseRepository),
RepositoryProvider.value(value: _adsConsentClient),
],
child: MultiBlocProvider(
providers: [
BlocProvider(
create: (_) => AppBloc(
userRepository: _userRepository,
notificationsRepository: _notificationsRepository,
user: _user,
)..add(const AppOpened()),
),
BlocProvider(create: (_) => ThemeModeBloc()),
BlocProvider(
create: (_) => LoginWithEmailLinkBloc(
userRepository: _userRepository,
),
lazy: false,
),
BlocProvider(
create: (context) => AnalyticsBloc(
analyticsRepository: _analyticsRepository,
userRepository: _userRepository,
),
lazy: false,
),
BlocProvider(
create: (context) => FullScreenAdsBloc(
interstitialAdLoader: ads.InterstitialAd.load,
rewardedAdLoader: ads.RewardedAd.load,
adsRetryPolicy: const AdsRetryPolicy(),
localPlatform: const LocalPlatform(),
)
..add(const LoadInterstitialAdRequested())
..add(const LoadRewardedAdRequested()),
lazy: false,
),
],
child: const AppView(),
),
);
}
}
class AppView extends StatelessWidget {
const AppView({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
themeMode: ThemeMode.light,
theme: const AppTheme().themeData,
darkTheme: const AppDarkTheme().themeData,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
home: AuthenticatedUserListener(
child: FlowBuilder<AppStatus>(
state: context.select((AppBloc bloc) => bloc.state.status),
onGeneratePages: onGenerateAppViewPages,
),
),
);
}
}
| news_toolkit/flutter_news_example/lib/app/view/app.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/app/view/app.dart', 'repo_id': 'news_toolkit', 'token_count': 1858} |
export 'article_comments.dart';
export 'article_content.dart';
export 'article_content_item.dart';
export 'article_content_loader_item.dart';
export 'article_theme_override.dart';
export 'article_trailing_content.dart';
| news_toolkit/flutter_news_example/lib/article/widgets/widgets.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/article/widgets/widgets.dart', 'repo_id': 'news_toolkit', 'token_count': 72} |
import 'package:flutter/material.dart' hide Spacer;
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/app/app.dart';
import 'package:flutter_news_example/article/article.dart';
import 'package:flutter_news_example/categories/categories.dart';
import 'package:flutter_news_example/l10n/l10n.dart';
import 'package:flutter_news_example/newsletter/newsletter.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/news_blocks_ui.dart';
class CategoryFeedItem extends StatelessWidget {
const CategoryFeedItem({required this.block, super.key});
/// The associated [NewsBlock] instance.
final NewsBlock block;
@override
Widget build(BuildContext context) {
final newsBlock = block;
final isUserSubscribed =
context.select((AppBloc bloc) => bloc.state.isUserSubscribed);
late Widget widget;
if (newsBlock is DividerHorizontalBlock) {
widget = DividerHorizontal(block: newsBlock);
} else if (newsBlock is SpacerBlock) {
widget = Spacer(block: newsBlock);
} else if (newsBlock is SectionHeaderBlock) {
widget = SectionHeader(
block: newsBlock,
onPressed: (action) => _onFeedItemAction(context, action),
);
} else if (newsBlock is PostLargeBlock) {
widget = PostLarge(
block: newsBlock,
premiumText: context.l10n.newsBlockPremiumText,
isLocked: newsBlock.isPremium && !isUserSubscribed,
onPressed: (action) => _onFeedItemAction(context, action),
);
} else if (newsBlock is PostMediumBlock) {
widget = PostMedium(
block: newsBlock,
onPressed: (action) => _onFeedItemAction(context, action),
);
} else if (newsBlock is PostSmallBlock) {
widget = PostSmall(
block: newsBlock,
onPressed: (action) => _onFeedItemAction(context, action),
);
} else if (newsBlock is PostGridGroupBlock) {
widget = PostGrid(
gridGroupBlock: newsBlock,
premiumText: context.l10n.newsBlockPremiumText,
onPressed: (action) => _onFeedItemAction(context, action),
);
} else if (newsBlock is NewsletterBlock) {
widget = const Newsletter();
} else if (newsBlock is BannerAdBlock) {
widget = BannerAd(
block: newsBlock,
adFailedToLoadTitle: context.l10n.adLoadFailure,
);
} else {
// Render an empty widget for the unsupported block type.
widget = const SizedBox();
}
return (newsBlock is! PostGridGroupBlock)
? SliverToBoxAdapter(child: widget)
: widget;
}
/// Handles actions triggered by tapping on feed items.
Future<void> _onFeedItemAction(
BuildContext context,
BlockAction action,
) async {
if (action is NavigateToArticleAction) {
await Navigator.of(context).push<void>(
ArticlePage.route(id: action.articleId),
);
} else if (action is NavigateToVideoArticleAction) {
await Navigator.of(context).push<void>(
ArticlePage.route(id: action.articleId, isVideoArticle: true),
);
} else if (action is NavigateToFeedCategoryAction) {
context
.read<CategoriesBloc>()
.add(CategorySelected(category: action.category));
}
}
}
| news_toolkit/flutter_news_example/lib/feed/widgets/category_feed_item.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/feed/widgets/category_feed_item.dart', 'repo_id': 'news_toolkit', 'token_count': 1235} |
part of 'login_with_email_link_bloc.dart';
enum LoginWithEmailLinkStatus {
initial,
loading,
success,
failure,
}
class LoginWithEmailLinkState extends Equatable {
const LoginWithEmailLinkState({
this.status = LoginWithEmailLinkStatus.initial,
});
final LoginWithEmailLinkStatus status;
@override
List<Object> get props => [status];
LoginWithEmailLinkState copyWith({
LoginWithEmailLinkStatus? status,
}) {
return LoginWithEmailLinkState(
status: status ?? this.status,
);
}
}
| news_toolkit/flutter_news_example/lib/login/bloc/login_with_email_link_state.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/login/bloc/login_with_email_link_state.dart', 'repo_id': 'news_toolkit', 'token_count': 173} |
part of 'notification_preferences_bloc.dart';
abstract class NotificationPreferencesEvent extends Equatable {
const NotificationPreferencesEvent();
}
class CategoriesPreferenceToggled extends NotificationPreferencesEvent {
const CategoriesPreferenceToggled({required this.category});
final Category category;
@override
List<Object?> get props => [category];
}
class InitialCategoriesPreferencesRequested
extends NotificationPreferencesEvent {
@override
List<Object?> get props => [];
}
| news_toolkit/flutter_news_example/lib/notification_preferences/bloc/notification_preferences_event.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/notification_preferences/bloc/notification_preferences_event.dart', 'repo_id': 'news_toolkit', 'token_count': 134} |
import 'dart:async';
import 'package:equatable/equatable.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_repository/news_repository.dart';
import 'package:stream_transform/stream_transform.dart';
part 'search_event.dart';
part 'search_state.dart';
const _duration = Duration(milliseconds: 300);
EventTransformer<Event> restartableDebounce<Event>(
Duration duration, {
required bool Function(Event) isDebounced,
}) {
return (events, mapper) {
final debouncedEvents = events.where(isDebounced).debounce(duration);
final otherEvents = events.where((event) => !isDebounced(event));
return otherEvents.merge(debouncedEvents).switchMap(mapper);
};
}
class SearchBloc extends Bloc<SearchEvent, SearchState> {
SearchBloc({
required NewsRepository newsRepository,
}) : _newsRepository = newsRepository,
super(const SearchState.initial()) {
on<SearchTermChanged>(
(event, emit) async {
event.searchTerm.isEmpty
? await _onEmptySearchRequested(event, emit)
: await _onSearchTermChanged(event, emit);
},
transformer: restartableDebounce(
_duration,
isDebounced: (event) => event.searchTerm.isNotEmpty,
),
);
}
final NewsRepository _newsRepository;
FutureOr<void> _onEmptySearchRequested(
SearchTermChanged event,
Emitter<SearchState> emit,
) async {
emit(
state.copyWith(
status: SearchStatus.loading,
searchType: SearchType.popular,
),
);
try {
final popularSearch = await _newsRepository.popularSearch();
emit(
state.copyWith(
articles: popularSearch.articles,
topics: popularSearch.topics,
status: SearchStatus.populated,
),
);
} catch (error, stackTrace) {
emit(state.copyWith(status: SearchStatus.failure));
addError(error, stackTrace);
}
}
FutureOr<void> _onSearchTermChanged(
SearchTermChanged event,
Emitter<SearchState> emit,
) async {
emit(
state.copyWith(
status: SearchStatus.loading,
searchType: SearchType.relevant,
),
);
try {
final relevantSearch = await _newsRepository.relevantSearch(
term: event.searchTerm,
);
emit(
state.copyWith(
articles: relevantSearch.articles,
topics: relevantSearch.topics,
status: SearchStatus.populated,
),
);
} catch (error, stackTrace) {
emit(state.copyWith(status: SearchStatus.failure));
addError(error, stackTrace);
}
}
}
| news_toolkit/flutter_news_example/lib/search/bloc/search_bloc.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/search/bloc/search_bloc.dart', 'repo_id': 'news_toolkit', 'token_count': 1051} |
part of 'subscriptions_bloc.dart';
abstract class SubscriptionsEvent extends Equatable {}
class SubscriptionsRequested extends SubscriptionsEvent {
SubscriptionsRequested();
@override
List<Object> get props => [];
}
class SubscriptionPurchaseRequested extends SubscriptionsEvent {
SubscriptionPurchaseRequested({required this.subscription});
final Subscription subscription;
@override
List<Object> get props => [subscription];
}
class SubscriptionPurchaseCompleted extends SubscriptionsEvent {
SubscriptionPurchaseCompleted({required this.subscription});
final Subscription subscription;
@override
List<Object> get props => [subscription];
}
class SubscriptionPurchaseUpdated extends SubscriptionsEvent {
SubscriptionPurchaseUpdated({required this.purchase});
final PurchaseUpdate purchase;
@override
List<Object> get props => [purchase];
}
| news_toolkit/flutter_news_example/lib/subscriptions/dialog/bloc/subscriptions_event.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/subscriptions/dialog/bloc/subscriptions_event.dart', 'repo_id': 'news_toolkit', 'token_count': 227} |
import 'package:flutter/material.dart';
part '../terms_of_service_mock_text.dart';
@visibleForTesting
class TermsOfServiceBody extends StatelessWidget {
const TermsOfServiceBody({
super.key,
this.contentPadding = EdgeInsets.zero,
});
final EdgeInsets contentPadding;
@override
Widget build(BuildContext context) {
return Flexible(
child: SingleChildScrollView(
child: Padding(
padding: contentPadding,
child: const Text(
termsOfServiceMockText,
key: Key('termsOfServiceBody_text'),
),
),
),
);
}
}
| news_toolkit/flutter_news_example/lib/terms_of_service/widgets/terms_of_service_body.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/lib/terms_of_service/widgets/terms_of_service_body.dart', 'repo_id': 'news_toolkit', 'token_count': 254} |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
class ColorsPage extends StatelessWidget {
const ColorsPage({super.key});
static Route<void> route() {
return MaterialPageRoute<void>(builder: (_) => const ColorsPage());
}
@override
Widget build(BuildContext context) {
const colorItems = [
_ColorItem(name: 'Secondary', color: AppColors.secondary),
_ColorItem(name: 'Black', color: AppColors.black),
_ColorItem(name: 'Black Light', color: AppColors.lightBlack),
_ColorItem(
name: 'Medium Emphasis',
color: AppColors.mediumEmphasisSurface,
),
_ColorItem(name: 'White', color: AppColors.white),
_ColorItem(name: 'Modal Background', color: AppColors.modalBackground),
_ColorItem(name: 'Transparent', color: AppColors.transparent),
_ColorItem(name: 'Blue', color: AppColors.blue),
_ColorItem(name: 'Sky Blue', color: AppColors.skyBlue),
_ColorItem(name: 'Ocean Blue', color: AppColors.oceanBlue),
_ColorItem(name: 'Light Blue', color: AppColors.lightBlue),
_ColorItem(name: 'Blue Dress', color: AppColors.blueDress),
_ColorItem(name: 'Crystal Blue', color: AppColors.crystalBlue),
_ColorItem(name: 'Yellow', color: AppColors.yellow),
_ColorItem(name: 'Red', color: AppColors.red),
_ColorItem(name: 'Red Wine', color: AppColors.redWine),
_ColorItem(name: 'Grey', color: AppColors.grey),
_ColorItem(name: 'Liver', color: AppColors.liver),
_ColorItem(name: 'Surface 2', color: AppColors.surface2),
_ColorItem(name: 'Input Enabled', color: AppColors.inputEnabled),
_ColorItem(name: 'Input Hover', color: AppColors.inputHover),
_ColorItem(name: 'Input Focused', color: AppColors.inputFocused),
_ColorItem(name: 'Pastel Grey', color: AppColors.pastelGrey),
_ColorItem(name: 'Bright Grey', color: AppColors.brightGrey),
_ColorItem(name: 'Pale Sky', color: AppColors.paleSky),
_ColorItem(name: 'Green', color: AppColors.green),
_ColorItem(name: 'Rangoon Green', color: AppColors.rangoonGreen),
_ColorItem(name: 'Teal', color: AppColors.teal),
_ColorItem(name: 'Dark Aqua', color: AppColors.darkAqua),
_ColorItem(name: 'Eerie Black', color: AppColors.eerieBlack),
_ColorItem(name: 'Gainsboro', color: AppColors.gainsboro),
_ColorItem(name: 'Orange', color: AppColors.orange),
_ColorItem(name: 'Outline Light', color: AppColors.outlineLight),
_ColorItem(name: 'Outline On Dark', color: AppColors.outlineOnDark),
_ColorItem(
name: 'Medium Emphasis Primary',
color: AppColors.mediumEmphasisPrimary,
),
_ColorItem(
name: 'High Emphasis Primary',
color: AppColors.highEmphasisPrimary,
),
_ColorItem(
name: 'Medium High Emphasis Primary',
color: AppColors.mediumHighEmphasisPrimary,
),
_ColorItem(
name: 'Medium High Emphasis Surface',
color: AppColors.mediumHighEmphasisSurface,
),
_ColorItem(
name: 'High Emphasis Surface',
color: AppColors.highEmphasisSurface,
),
_ColorItem(
name: 'Disabled Foreground',
color: AppColors.disabledForeground,
),
_ColorItem(
name: 'Disabled Button',
color: AppColors.disabledButton,
),
_ColorItem(
name: 'Disabled Surface',
color: AppColors.disabledSurface,
),
];
return Scaffold(
appBar: AppBar(title: const Text('Colors')),
body: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: colorItems.length,
itemBuilder: (_, index) => colorItems[index],
),
);
}
}
class _ColorItem extends StatelessWidget {
const _ColorItem({required this.name, required this.color});
final String name;
final Color color;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16),
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text(name),
const SizedBox(height: 16),
Expanded(
child: SingleChildScrollView(
child: color is MaterialColor
? _MaterialColorView(color: color as MaterialColor)
: _ColorSquare(color: color),
),
),
],
),
);
}
}
class _MaterialColorView extends StatelessWidget {
const _MaterialColorView({required this.color});
static const List<int> shades = [
50,
100,
200,
300,
400,
500,
600,
700,
800,
900,
];
final MaterialColor color;
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: shades.map((shade) {
return _ColorSquare(color: color[shade]!);
}).toList(),
);
}
}
class _ColorSquare extends StatelessWidget {
const _ColorSquare({required this.color});
final Color color;
TextStyle get textStyle {
return TextStyle(
color: color.computeLuminance() > 0.5 ? Colors.black : Colors.white,
);
}
String get hexCode {
if (color.value.toRadixString(16).length <= 2) {
return '--';
} else {
return '#${color.value.toRadixString(16).substring(2).toUpperCase()}';
}
}
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 2),
child: Stack(
children: [
SizedBox(
width: 100,
height: 100,
child: DecoratedBox(
decoration: BoxDecoration(color: color, border: Border.all()),
),
),
Positioned(
top: 0,
bottom: 0,
left: 0,
right: 0,
child: Center(child: Text(hexCode, style: textStyle)),
),
],
),
);
}
}
| news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/colors/colors_page.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/colors/colors_page.dart', 'repo_id': 'news_toolkit', 'token_count': 2560} |
import 'package:app_ui/src/typography/typography.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('AppTextStyles', () {
group('UITextStyle', () {
test('display2 returns TextStyle', () {
expect(UITextStyle.display2, isA<TextStyle>());
});
test('display3 returns TextStyle', () {
expect(UITextStyle.display3, isA<TextStyle>());
});
test('headline1 returns TextStyle', () {
expect(UITextStyle.headline1, isA<TextStyle>());
});
test('headline2 returns TextStyle', () {
expect(UITextStyle.headline2, isA<TextStyle>());
});
test('headline3 returns TextStyle', () {
expect(UITextStyle.headline3, isA<TextStyle>());
});
test('headline4 returns TextStyle', () {
expect(UITextStyle.headline4, isA<TextStyle>());
});
test('headline5 returns TextStyle', () {
expect(UITextStyle.headline5, isA<TextStyle>());
});
test('headline6 returns TextStyle', () {
expect(UITextStyle.headline6, isA<TextStyle>());
});
test('subtitle1 returns TextStyle', () {
expect(UITextStyle.subtitle1, isA<TextStyle>());
});
test('subtitle2 returns TextStyle', () {
expect(UITextStyle.subtitle2, isA<TextStyle>());
});
test('bodyText1 returns TextStyle', () {
expect(UITextStyle.bodyText1, isA<TextStyle>());
});
test('bodyText2 returns TextStyle', () {
expect(UITextStyle.bodyText2, isA<TextStyle>());
});
test('button returns TextStyle', () {
expect(UITextStyle.button, isA<TextStyle>());
});
test('caption returns TextStyle', () {
expect(UITextStyle.caption, isA<TextStyle>());
});
test('overline returns TextStyle', () {
expect(UITextStyle.overline, isA<TextStyle>());
});
test('labelSmall returns TextStyle', () {
expect(UITextStyle.labelSmall, isA<TextStyle>());
});
});
group('ContentTextStyle', () {
test('display1 returns TextStyle', () {
expect(ContentTextStyle.display1, isA<TextStyle>());
});
test('display2 returns TextStyle', () {
expect(ContentTextStyle.display2, isA<TextStyle>());
});
test('display3 returns TextStyle', () {
expect(ContentTextStyle.display3, isA<TextStyle>());
});
test('headline1 returns TextStyle', () {
expect(ContentTextStyle.headline1, isA<TextStyle>());
});
test('headline2 returns TextStyle', () {
expect(ContentTextStyle.headline2, isA<TextStyle>());
});
test('headline3 returns TextStyle', () {
expect(ContentTextStyle.headline3, isA<TextStyle>());
});
test('headline4 returns TextStyle', () {
expect(ContentTextStyle.headline4, isA<TextStyle>());
});
test('headline5 returns TextStyle', () {
expect(ContentTextStyle.headline5, isA<TextStyle>());
});
test('headline6 returns TextStyle', () {
expect(ContentTextStyle.headline6, isA<TextStyle>());
});
test('subtitle1 returns TextStyle', () {
expect(ContentTextStyle.subtitle1, isA<TextStyle>());
});
test('subtitle2 returns TextStyle', () {
expect(ContentTextStyle.subtitle2, isA<TextStyle>());
});
test('bodyText1 returns TextStyle', () {
expect(ContentTextStyle.bodyText1, isA<TextStyle>());
});
test('bodyText2 returns TextStyle', () {
expect(ContentTextStyle.bodyText2, isA<TextStyle>());
});
test('button returns TextStyle', () {
expect(ContentTextStyle.button, isA<TextStyle>());
});
test('caption returns TextStyle', () {
expect(ContentTextStyle.caption, isA<TextStyle>());
});
test('overline returns TextStyle', () {
expect(ContentTextStyle.overline, isA<TextStyle>());
});
test('labelSmall returns TextStyle', () {
expect(ContentTextStyle.labelSmall, isA<TextStyle>());
});
});
});
}
| news_toolkit/flutter_news_example/packages/app_ui/test/src/typography/app_text_styles_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/app_ui/test/src/typography/app_text_styles_test.dart', 'repo_id': 'news_toolkit', 'token_count': 1711} |
name: article_repository
description: A repository that manages article data.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
clock: ^1.1.0
equatable: ^2.0.3
flutter_news_example_api:
path: ../../api
storage:
path: ../storage/storage
dev_dependencies:
coverage: ^1.3.2
mocktail: ^1.0.2
test: ^1.21.4
very_good_analysis: ^5.1.0
| news_toolkit/flutter_news_example/packages/article_repository/pubspec.yaml/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/article_repository/pubspec.yaml', 'repo_id': 'news_toolkit', 'token_count': 173} |
export 'src/firebase_authentication_client.dart';
| news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/lib/firebase_authentication_client.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/lib/firebase_authentication_client.dart', 'repo_id': 'news_toolkit', 'token_count': 16} |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/src/widgets/widgets.dart';
/// {@template article_introduction}
/// A reusable article introduction block widget.
/// {@endtemplate}
class ArticleIntroduction extends StatelessWidget {
/// {@macro article_introduction}
const ArticleIntroduction({
required this.block,
required this.premiumText,
super.key,
});
/// The associated [ArticleIntroductionBlock] instance.
final ArticleIntroductionBlock block;
/// Text displayed when article is premium content.
final String premiumText;
@override
Widget build(BuildContext context) {
return Column(
children: [
if (block.imageUrl != null) InlineImage(imageUrl: block.imageUrl!),
Padding(
padding: const EdgeInsets.symmetric(horizontal: AppSpacing.lg),
child: PostContent(
categoryName: block.category.name,
title: block.title,
author: block.author,
publishedAt: block.publishedAt,
premiumText: premiumText,
isPremium: block.isPremium,
),
),
const Divider(),
const SizedBox(height: AppSpacing.lg),
],
);
}
}
| news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/article_introduction.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/article_introduction.dart', 'repo_id': 'news_toolkit', 'token_count': 494} |
export 'post_medium.dart';
export 'post_medium_description_layout.dart';
export 'post_medium_overlaid_layout.dart';
| news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/index.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/index.dart', 'repo_id': 'news_toolkit', 'token_count': 40} |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart' hide ProgressIndicator;
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/src/widgets/widgets.dart';
/// {@template video_introduction}
/// A reusable video introduction block widget.
/// {@endtemplate}
class VideoIntroduction extends StatelessWidget {
/// {@macro video_introduction}
const VideoIntroduction({required this.block, super.key});
/// The associated [VideoIntroductionBlock] instance.
final VideoIntroductionBlock block;
@override
Widget build(BuildContext context) {
return Column(
children: [
InlineVideo(
videoUrl: block.videoUrl,
progressIndicator: const ProgressIndicator(),
),
Padding(
padding: const EdgeInsets.fromLTRB(
AppSpacing.lg,
0,
AppSpacing.lg,
AppSpacing.lg,
),
child: PostContent(
categoryName: block.category.name,
title: block.title,
isVideoContent: true,
),
),
],
);
}
}
| news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/video_introduction.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/video_introduction.dart', 'repo_id': 'news_toolkit', 'token_count': 469} |
name: news_blocks_ui
description: A Flutter package that contains UI components for news blocks.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.19.3 <4.0.0"
dependencies:
app_ui:
path: ../app_ui
cached_network_image: ^3.2.1
flutter:
sdk: flutter
flutter_html: 3.0.0-beta.2
google_mobile_ads: ^4.0.0
news_blocks:
path: ../../api/packages/news_blocks
path_provider_platform_interface: ^2.0.5
platform: ^3.1.0
plugin_platform_interface: ^2.1.3
url_launcher: ^6.1.7
url_launcher_platform_interface: ^2.1.1
video_player: ^2.7.0
video_player_platform_interface: ^6.0.1
dev_dependencies:
build_runner: ^2.0.3
fake_async: ^1.3.0
flutter_gen_runner: ^5.2.0
flutter_test:
sdk: flutter
mocktail: ^1.0.2
mocktail_image_network: ^1.0.0
very_good_analysis: ^5.1.0
flutter:
uses-material-design: true
assets:
- assets/icons/
flutter_gen:
assets:
enabled: true
outputs:
package_parameter_enabled: true
output: lib/src/generated/
line_length: 80
integrations:
flutter_svg: true
| news_toolkit/flutter_news_example/packages/news_blocks_ui/pubspec.yaml/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/pubspec.yaml', 'repo_id': 'news_toolkit', 'token_count': 466} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:news_blocks_ui/src/newsletter/index.dart';
import '../../helpers/helpers.dart';
void main() {
group('NewsletterSucceeded', () {
testWidgets('renders correctly', (tester) async {
const headerText = 'headerText';
const contentText = 'contentText';
const footerText = 'footerText';
await tester.pumpApp(
NewsletterSucceeded(
headerText: headerText,
content: Text(contentText),
footerText: footerText,
),
);
expect(find.text(headerText), findsOneWidget);
expect(find.text(contentText), findsOneWidget);
expect(find.text(footerText), findsOneWidget);
});
});
}
| news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/newsletter/newsletter_succeeded_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/newsletter/newsletter_succeeded_test.dart', 'repo_id': 'news_toolkit', 'token_count': 327} |
// ignore_for_file: prefer_const_constructors
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart' hide ProgressIndicator;
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail_image_network/mocktail_image_network.dart';
import 'package:news_blocks_ui/src/widgets/widgets.dart';
import '../../helpers/helpers.dart';
void main() {
group('InlineImage', () {
testWidgets('renders CachedNetworkImage with imageUrl', (tester) async {
const imageUrl = 'imageUrl';
ProgressIndicator progressIndicatorBuilder(
BuildContext context,
String url,
DownloadProgress progress,
) =>
ProgressIndicator();
await mockNetworkImages(
() async => tester.pumpApp(
InlineImage(
imageUrl: imageUrl,
progressIndicatorBuilder: progressIndicatorBuilder,
),
),
);
expect(
find.byWidgetPredicate(
(widget) =>
widget is CachedNetworkImage &&
widget.imageUrl == imageUrl &&
widget.progressIndicatorBuilder == progressIndicatorBuilder,
),
findsOneWidget,
);
});
});
}
| news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/inline_image_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/inline_image_test.dart', 'repo_id': 'news_toolkit', 'token_count': 514} |
include: package:very_good_analysis/analysis_options.5.1.0.yaml
| news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/analysis_options.yaml/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/analysis_options.yaml', 'repo_id': 'news_toolkit', 'token_count': 23} |
import 'dart:async';
import 'dart:convert';
import 'package:equatable/equatable.dart';
import 'package:flutter_news_example_api/client.dart';
import 'package:notifications_client/notifications_client.dart';
import 'package:permission_client/permission_client.dart';
import 'package:storage/storage.dart';
part 'notifications_storage.dart';
/// {@template notifications_failure}
/// A base failure for the notifications repository failures.
/// {@endtemplate}
abstract class NotificationsFailure with EquatableMixin implements Exception {
/// {@macro notifications_failure}
const NotificationsFailure(this.error);
/// The error which was caught.
final Object error;
@override
List<Object> get props => [error];
}
/// {@template initialize_categories_preferences_failure}
/// Thrown when initializing categories preferences fails.
/// {@endtemplate}
class InitializeCategoriesPreferencesFailure extends NotificationsFailure {
/// {@macro initialize_categories_preferences_failure}
const InitializeCategoriesPreferencesFailure(super.error);
}
/// {@template toggle_notifications_failure}
/// Thrown when toggling notifications fails.
/// {@endtemplate}
class ToggleNotificationsFailure extends NotificationsFailure {
/// {@macro toggle_notifications_failure}
const ToggleNotificationsFailure(super.error);
}
/// {@template fetch_notifications_enabled_failure}
/// Thrown when fetching a notifications enabled status fails.
/// {@endtemplate}
class FetchNotificationsEnabledFailure extends NotificationsFailure {
/// {@macro fetch_notifications_enabled_failure}
const FetchNotificationsEnabledFailure(super.error);
}
/// {@template set_categories_preferences_failure}
/// Thrown when setting categories preferences fails.
/// {@endtemplate}
class SetCategoriesPreferencesFailure extends NotificationsFailure {
/// {@macro set_categories_preferences_failure}
const SetCategoriesPreferencesFailure(super.error);
}
/// {@template fetch_categories_preferences_failure}
/// Thrown when fetching categories preferences fails.
/// {@endtemplate}
class FetchCategoriesPreferencesFailure extends NotificationsFailure {
/// {@macro fetch_categories_preferences_failure}
const FetchCategoriesPreferencesFailure(super.error);
}
/// {@template notifications_repository}
/// A repository that manages notification permissions and topic subscriptions.
///
/// Access to the device's notifications can be toggled with
/// [toggleNotifications] and checked with [fetchNotificationsEnabled].
///
/// Notification preferences for topic subscriptions related to news categories
/// may be updated with [setCategoriesPreferences] and checked with
/// [fetchCategoriesPreferences].
/// {@endtemplate}
class NotificationsRepository {
/// {@macro notifications_repository}
NotificationsRepository({
required PermissionClient permissionClient,
required NotificationsStorage storage,
required NotificationsClient notificationsClient,
required FlutterNewsExampleApiClient apiClient,
}) : _permissionClient = permissionClient,
_storage = storage,
_notificationsClient = notificationsClient,
_apiClient = apiClient {
unawaited(_initializeCategoriesPreferences());
}
final PermissionClient _permissionClient;
final NotificationsStorage _storage;
final NotificationsClient _notificationsClient;
final FlutterNewsExampleApiClient _apiClient;
/// Toggles the notifications based on the [enable].
///
/// When [enable] is true, request the notification permission if not granted
/// and marks the notification setting as enabled. Subscribes the user to
/// notifications related to user's categories preferences.
///
/// When [enable] is false, marks notification setting as disabled and
/// unsubscribes the user from notifications related to user's categories
/// preferences.
Future<void> toggleNotifications({required bool enable}) async {
try {
// Request the notification permission when turning notifications on.
if (enable) {
// Find the current notification permission status.
final permissionStatus = await _permissionClient.notificationsStatus();
// Navigate the user to permission settings
// if the permission status is permanently denied or restricted.
if (permissionStatus.isPermanentlyDenied ||
permissionStatus.isRestricted) {
await _permissionClient.openPermissionSettings();
return;
}
// Request the permission if the permission status is denied.
if (permissionStatus.isDenied) {
final updatedPermissionStatus =
await _permissionClient.requestNotifications();
if (!updatedPermissionStatus.isGranted) {
return;
}
}
}
// Toggle categories preferences notification subscriptions.
await _toggleCategoriesPreferencesSubscriptions(enable: enable);
// Update the notifications enabled in Storage.
await _storage.setNotificationsEnabled(enabled: enable);
} catch (error, stackTrace) {
Error.throwWithStackTrace(ToggleNotificationsFailure(error), stackTrace);
}
}
/// Returns true when the notification permission is granted
/// and the notification setting is enabled.
Future<bool> fetchNotificationsEnabled() async {
try {
final results = await Future.wait([
_permissionClient.notificationsStatus(),
_storage.fetchNotificationsEnabled(),
]);
final permissionStatus = results.first as PermissionStatus;
final notificationsEnabled = results.last as bool;
return permissionStatus.isGranted && notificationsEnabled;
} catch (error, stackTrace) {
Error.throwWithStackTrace(
FetchNotificationsEnabledFailure(error),
stackTrace,
);
}
}
/// Updates the user's notification preferences and subscribes the user to
/// receive notifications related to [categories].
///
/// [categories] represents a set of categories the user has agreed to
/// receive notifications from.
///
/// Throws [SetCategoriesPreferencesFailure] when updating fails.
Future<void> setCategoriesPreferences(Set<Category> categories) async {
try {
// Disable notification subscriptions for previous categories preferences.
await _toggleCategoriesPreferencesSubscriptions(enable: false);
// Update categories preferences in Storage.
await _storage.setCategoriesPreferences(categories: categories);
// Enable notification subscriptions for updated categories preferences.
if (await fetchNotificationsEnabled()) {
await _toggleCategoriesPreferencesSubscriptions(enable: true);
}
} catch (error, stackTrace) {
Error.throwWithStackTrace(
SetCategoriesPreferencesFailure(error),
stackTrace,
);
}
}
/// Fetches the user's notification preferences for news categories.
///
/// The result represents a set of categories the user has agreed to
/// receive notifications from.
///
/// Throws [FetchCategoriesPreferencesFailure] when fetching fails.
Future<Set<Category>?> fetchCategoriesPreferences() async {
try {
return await _storage.fetchCategoriesPreferences();
} on StorageException catch (error, stackTrace) {
Error.throwWithStackTrace(
FetchCategoriesPreferencesFailure(error),
stackTrace,
);
}
}
/// Toggles notification subscriptions based on user's categories preferences.
Future<void> _toggleCategoriesPreferencesSubscriptions({
required bool enable,
}) async {
final categoriesPreferences =
await _storage.fetchCategoriesPreferences() ?? {};
await Future.wait(
categoriesPreferences.map((category) {
return enable
? _notificationsClient.subscribeToCategory(category.name)
: _notificationsClient.unsubscribeFromCategory(category.name);
}),
);
}
/// Initializes categories preferences to all categories
/// if they have not been set before.
Future<void> _initializeCategoriesPreferences() async {
try {
final categoriesPreferences = await _storage.fetchCategoriesPreferences();
if (categoriesPreferences == null) {
final categoriesResponse = await _apiClient.getCategories();
await _storage.setCategoriesPreferences(
categories: categoriesResponse.categories.toSet(),
);
}
} catch (error, stackTrace) {
Error.throwWithStackTrace(
InitializeCategoriesPreferencesFailure(error),
stackTrace,
);
}
}
}
| news_toolkit/flutter_news_example/packages/notifications_repository/lib/src/notifications_repository.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/notifications_repository/lib/src/notifications_repository.dart', 'repo_id': 'news_toolkit', 'token_count': 2590} |
import 'package:permission_handler/permission_handler.dart';
export 'package:permission_handler/permission_handler.dart'
show PermissionStatus, PermissionStatusGetters;
/// {@template permission_client}
/// A client that handles requesting permissions on a device.
/// {@endtemplate}
class PermissionClient {
/// {@macro permission_client}
const PermissionClient();
/// Request access to the device's notifications,
/// if access hasn't been previously granted.
Future<PermissionStatus> requestNotifications() =>
Permission.notification.request();
/// Returns a permission status for the device's notifications.
Future<PermissionStatus> notificationsStatus() =>
Permission.notification.status;
/// Opens the app settings page.
///
/// Returns true if the settings could be opened, otherwise false.
Future<bool> openPermissionSettings() => openAppSettings();
}
| news_toolkit/flutter_news_example/packages/permission_client/lib/src/permission_client.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/permission_client/lib/src/permission_client.dart', 'repo_id': 'news_toolkit', 'token_count': 239} |
name: share_launcher
description: A launcher that handles share functionality on a device.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
equatable: ^2.0.3
flutter:
sdk: flutter
share_plus: ^7.0.2
share_plus_platform_interface: ^3.1.2
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.2
plugin_platform_interface: ^2.1.2
url_launcher_platform_interface: ^2.0.5
very_good_analysis: ^5.1.0
| news_toolkit/flutter_news_example/packages/share_launcher/pubspec.yaml/0 | {'file_path': 'news_toolkit/flutter_news_example/packages/share_launcher/pubspec.yaml', 'repo_id': 'news_toolkit', 'token_count': 198} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/article/article.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:news_blocks/news_blocks.dart';
void main() {
group('ArticleState', () {
test('initial has correct status', () {
expect(
ArticleState.initial().status,
equals(ArticleStatus.initial),
);
});
test('supports value comparisons', () {
expect(
ArticleState.initial(),
equals(ArticleState.initial()),
);
});
group('contentMilestone', () {
test(
'returns 0 '
'when contentTotalCount is null', () {
expect(
ArticleState.initial().copyWith(contentSeenCount: 5).contentMilestone,
isZero,
);
});
test(
'returns 0 '
'when isPreview is true', () {
expect(
ArticleState.initial()
.copyWith(contentSeenCount: 5, isPreview: true)
.contentMilestone,
isZero,
);
});
test(
'returns 0 '
'when user has seen less than 25% of content', () {
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 0,
contentTotalCount: 100,
)
.contentMilestone,
isZero,
);
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 24,
contentTotalCount: 100,
)
.contentMilestone,
isZero,
);
});
test(
'returns 25 '
'when user has seen at least 25% of content '
'and less than 50%', () {
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 25,
contentTotalCount: 100,
)
.contentMilestone,
equals(25),
);
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 49,
contentTotalCount: 100,
)
.contentMilestone,
equals(25),
);
});
test(
'returns 50 '
'when user has seen at least 50% of content '
'and less than 75%', () {
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 50,
contentTotalCount: 100,
)
.contentMilestone,
equals(50),
);
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 74,
contentTotalCount: 100,
)
.contentMilestone,
equals(50),
);
});
test(
'returns 75 '
'when user has seen at least 75% of content '
'and less than 100%', () {
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 75,
contentTotalCount: 100,
)
.contentMilestone,
equals(75),
);
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 99,
contentTotalCount: 100,
)
.contentMilestone,
equals(75),
);
});
test(
'returns 100 '
'when user has seen 100% of content', () {
expect(
ArticleState.initial()
.copyWith(
contentSeenCount: 100,
contentTotalCount: 100,
)
.contentMilestone,
equals(100),
);
});
});
group('copyWith', () {
test(
'returns same object '
'when no properties are passed', () {
expect(
ArticleState.initial().copyWith(),
equals(ArticleState.initial()),
);
});
test(
'returns object with updated title '
'when title is passed', () {
expect(
ArticleState(
status: ArticleStatus.populated,
).copyWith(title: 'title'),
equals(
ArticleState(
status: ArticleStatus.populated,
title: 'title',
),
),
);
});
test(
'returns object with updated status '
'when status is passed', () {
expect(
ArticleState.initial().copyWith(
status: ArticleStatus.loading,
),
equals(
ArticleState(
status: ArticleStatus.loading,
),
),
);
});
test(
'returns object with updated content '
'when content is passed', () {
final content = <NewsBlock>[
TextCaptionBlock(text: 'text', color: TextCaptionColor.normal),
TextParagraphBlock(text: 'text'),
];
expect(
ArticleState(status: ArticleStatus.populated).copyWith(
content: content,
),
equals(
ArticleState(
status: ArticleStatus.populated,
content: content,
),
),
);
});
test(
'returns object with updated contentTotalCount '
'when contentTotalCount is passed', () {
const contentTotalCount = 10;
expect(
ArticleState(status: ArticleStatus.populated).copyWith(
contentTotalCount: contentTotalCount,
),
equals(
ArticleState(
status: ArticleStatus.populated,
contentTotalCount: contentTotalCount,
),
),
);
});
test(
'returns object with updated contentSeenCount '
'when contentSeenCount is passed', () {
const contentSeenCount = 10;
expect(
ArticleState(status: ArticleStatus.populated).copyWith(
contentSeenCount: contentSeenCount,
),
equals(
ArticleState(
status: ArticleStatus.populated,
contentSeenCount: contentSeenCount,
),
),
);
});
test(
'returns object with updated hasMoreContent '
'when hasMoreContent is passed', () {
const hasMoreContent = false;
expect(
ArticleState(
status: ArticleStatus.populated,
hasMoreContent: false,
).copyWith(hasMoreContent: hasMoreContent),
equals(
ArticleState(
status: ArticleStatus.populated,
hasMoreContent: hasMoreContent,
),
),
);
});
test(
'returns object with updated relatedArticles '
'when relatedArticles is passed', () {
const relatedArticles = <NewsBlock>[DividerHorizontalBlock()];
expect(
ArticleState(
status: ArticleStatus.populated,
).copyWith(relatedArticles: relatedArticles),
equals(
ArticleState(
status: ArticleStatus.populated,
relatedArticles: relatedArticles,
),
),
);
});
test(
'returns object with updated hasReachedArticleViewsLimit '
'when hasReachedArticleViewsLimit is passed', () {
const hasReachedArticleViewsLimit = true;
expect(
ArticleState(
status: ArticleStatus.populated,
).copyWith(hasReachedArticleViewsLimit: hasReachedArticleViewsLimit),
equals(
ArticleState(
status: ArticleStatus.populated,
hasReachedArticleViewsLimit: hasReachedArticleViewsLimit,
),
),
);
});
test(
'returns object with updated isPreview '
'when isPreview is passed', () {
const isPreview = true;
expect(
ArticleState(
status: ArticleStatus.populated,
).copyWith(isPreview: isPreview),
equals(
ArticleState(
status: ArticleStatus.populated,
isPreview: isPreview,
),
),
);
});
test(
'returns object with updated isPremium '
'when isPremium is passed', () {
const isPremium = true;
expect(
ArticleState(
status: ArticleStatus.populated,
).copyWith(isPremium: isPremium),
equals(
ArticleState(
status: ArticleStatus.populated,
isPremium: isPremium,
),
),
);
});
});
});
}
| news_toolkit/flutter_news_example/test/article/bloc/article_state_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/article/bloc/article_state_test.dart', 'repo_id': 'news_toolkit', 'token_count': 4639} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/feed/feed.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:news_repository/news_repository.dart';
void main() {
group('FeedEvent', () {
group('FeedRequested', () {
test('supports value comparisons', () {
final event1 = FeedRequested(category: Category.health);
final event2 = FeedRequested(category: Category.health);
expect(event1, equals(event2));
});
});
group('FeedRefreshRequested', () {
test('supports value comparisons', () {
final event1 = FeedRefreshRequested(category: Category.science);
final event2 = FeedRefreshRequested(category: Category.science);
expect(event1, equals(event2));
});
});
});
}
| news_toolkit/flutter_news_example/test/feed/bloc/feed_event_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/feed/bloc/feed_event_test.dart', 'repo_id': 'news_toolkit', 'token_count': 300} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/login/login.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:form_inputs/form_inputs.dart';
void main() {
const email = Email.dirty('email');
group('LoginState', () {
test('supports value comparisons', () {
expect(LoginState(), LoginState());
});
test('returns same object when no properties are passed', () {
expect(LoginState().copyWith(), LoginState());
});
test('returns object with updated status when status is passed', () {
expect(
LoginState().copyWith(status: FormzSubmissionStatus.initial),
LoginState(),
);
});
test('returns object with updated email when email is passed', () {
expect(
LoginState().copyWith(email: email),
LoginState(email: email),
);
});
test('returns object with updated valid when valid is passed', () {
expect(
LoginState().copyWith(valid: true),
LoginState(valid: true),
);
});
});
}
| news_toolkit/flutter_news_example/test/login/bloc/login_state_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/login/bloc/login_state_test.dart', 'repo_id': 'news_toolkit', 'token_count': 390} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_news_example/network_error/network_error.dart';
import 'package:flutter_test/flutter_test.dart';
import '../../helpers/helpers.dart';
void main() {
const tapMeText = 'Tap Me';
group('NetworkError', () {
testWidgets('renders correctly', (tester) async {
await tester.pumpApp(NetworkError());
expect(find.byType(NetworkError), findsOneWidget);
});
testWidgets('router returns a valid navigation route', (tester) async {
await tester.pumpApp(
Scaffold(
body: Builder(
builder: (context) {
return ElevatedButton(
onPressed: () {
Navigator.of(context).push<void>(NetworkError.route());
},
child: const Text(tapMeText),
);
},
),
),
);
await tester.tap(find.text(tapMeText));
await tester.pumpAndSettle();
expect(find.byType(NetworkError), findsOneWidget);
});
});
}
| news_toolkit/flutter_news_example/test/network_error/view/network_error_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/network_error/view/network_error_test.dart', 'repo_id': 'news_toolkit', 'token_count': 490} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/search/search.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('SearchEvent', () {
group('SearchTermChanged', () {
test('supports empty value comparisons', () {
final event1 = SearchTermChanged();
final event2 = SearchTermChanged();
expect(event1, equals(event2));
});
});
test('supports searchTerm value comparisons', () {
final event1 = SearchTermChanged(searchTerm: 'keyword');
final event2 = SearchTermChanged(searchTerm: 'keyword');
expect(event1, equals(event2));
});
});
}
| news_toolkit/flutter_news_example/test/search/bloc/search_event_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/search/bloc/search_event_test.dart', 'repo_id': 'news_toolkit', 'token_count': 240} |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_news_example/terms_of_service/terms_of_service.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockingjay/mockingjay.dart';
import '../../helpers/helpers.dart';
void main() {
const termsOfServiceModalCloseButtonKey =
Key('termsOfServiceModal_closeModal_iconButton');
group('TermsOfServiceModal', () {
group('renders', () {
testWidgets('terms of service modal header', (tester) async {
await tester.pumpApp(TermsOfServiceModal());
expect(find.byType(TermsOfServiceModalHeader), findsOneWidget);
});
testWidgets('terms of service modal close button', (tester) async {
await tester.pumpApp(TermsOfServiceModal());
final closeButton = find.byKey(termsOfServiceModalCloseButtonKey);
expect(closeButton, findsOneWidget);
});
testWidgets('terms of service body', (tester) async {
await tester.pumpApp(TermsOfServiceModal());
expect(find.byType(TermsOfServiceBody), findsOneWidget);
});
});
group('closes terms of service modal', () {
testWidgets('when the close icon button is pressed', (tester) async {
final navigator = MockNavigator();
when(navigator.pop).thenAnswer((_) async {});
await tester.pumpApp(
TermsOfServiceModal(),
navigator: navigator,
);
await tester.tap(find.byKey(termsOfServiceModalCloseButtonKey));
await tester.pumpAndSettle();
verify(navigator.pop).called(1);
});
});
});
}
| news_toolkit/flutter_news_example/test/terms_of_service/view/terms_of_service_modal_test.dart/0 | {'file_path': 'news_toolkit/flutter_news_example/test/terms_of_service/view/terms_of_service_modal_test.dart', 'repo_id': 'news_toolkit', 'token_count': 647} |
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'package:equatable/equatable.dart';
import 'package:notely/app/model/user.dart';
abstract class SignupState extends Equatable {
const SignupState();
}
class SignupInitial extends SignupState {
@override
List<Object?> get props => [];
}
class SignupLoading extends SignupState {
@override
List<Object?> get props => [];
}
class SignupLoaded extends SignupState {
const SignupLoaded({
required this.user,
});
final User user;
@override
List<Object?> get props => [user];
}
class SignupError extends SignupState {
final String message;
const SignupError(this.message);
@override
List<Object?> get props => [message];
}
| notely/lib/app/cubits/signup/signup_state.dart/0 | {'file_path': 'notely/lib/app/cubits/signup/signup_state.dart', 'repo_id': 'notely', 'token_count': 238} |
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:http/http.dart';
import 'package:ocarina/ocarina.dart';
import 'package:path_provider/path_provider.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Ocarina Example'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({required this.title});
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
const staticFileUrl = 'https://luan.xyz/files/audio/ambient_c_motion.mp3';
class _MyHomePageState extends State<MyHomePage> {
OcarinaPlayer? _player;
String? _localFilePath;
bool _loop = true;
bool _fetchingFile = false;
Future _loadFile() async {
final bytes = await readBytes(Uri.parse(staticFileUrl));
final dir = await getApplicationDocumentsDirectory();
final file = File('${dir.path}/audio.mp3');
await file.writeAsBytes(bytes);
if (await file.exists()) {
setState(() {
_localFilePath = file.path;
});
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: (_player != null
? PlayerWidget(
player: _player!,
onBack: () {
setState(() {
_localFilePath = null;
_fetchingFile = false;
_player = null;
});
})
: Column(
children: [
ElevatedButton(
child: Text(_loop ? "Loop mode" : "Single play mode"),
onPressed: () async {
setState(() {
_loop = !_loop;
});
}),
ElevatedButton(
child: Text("Play asset audio"),
onPressed: () async {
final player = OcarinaPlayer(
asset: 'assets/Loop-Menu.wav', loop: _loop);
setState(() {
_player = player;
});
}),
ElevatedButton(
child: Text(_fetchingFile
? "Fetching file..."
: "Download file to Device, and play it"),
onPressed: () async {
if (_fetchingFile) return;
setState(() {
_fetchingFile = true;
});
await _loadFile();
final player = OcarinaPlayer(filePath: _localFilePath);
await player.load();
setState(() {
_player = player;
});
})
],
)),
),
);
}
}
class PlayerWidget extends StatelessWidget {
final OcarinaPlayer player;
final VoidCallback onBack;
PlayerWidget({required this.player, required this.onBack});
@override
Widget build(_) {
return FutureBuilder(
future: player.load(),
builder: (ctx, snapshot) {
switch (snapshot.connectionState) {
case ConnectionState.waiting:
case ConnectionState.none:
case ConnectionState.active:
return Text("Loading player");
case ConnectionState.done:
if (snapshot.hasError) {
return Column(
children: [
Text("Error loading player"),
ElevatedButton(
child: Text("Go Back"),
onPressed: onBack.call,
),
],
);
}
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ElevatedButton(
child: Text("Play"),
onPressed: () async {
await player.play();
}),
ElevatedButton(
child: Text("Stop"),
onPressed: () async {
await player.stop();
}),
ElevatedButton(
child: Text("Pause"),
onPressed: () async {
await player.pause();
}),
ElevatedButton(
child: Text("Resume"),
onPressed: () async {
await player.resume();
}),
ElevatedButton(
child: Text("Seek to 5 secs"),
onPressed: () async {
await player.seek(Duration(seconds: 5));
}),
Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Text("Volume"),
ElevatedButton(
child: Text("0.2"),
onPressed: () async {
await player.updateVolume(0.2);
}),
ElevatedButton(
child: Text("0.5"),
onPressed: () async {
await player.updateVolume(0.5);
}),
ElevatedButton(
child: Text("1.0"),
onPressed: () async {
await player.updateVolume(1.0);
}),
]),
ElevatedButton(
child: Text("Dispose"),
onPressed: () async {
await player.dispose();
}),
ElevatedButton(
child: Text("Go Back"),
onPressed: onBack.call,
),
]);
}
});
}
}
| ocarina/example/lib/main.dart/0 | {'file_path': 'ocarina/example/lib/main.dart', 'repo_id': 'ocarina', 'token_count': 3881} |
import 'package:ordered_set/comparing.dart';
import 'package:ordered_set/ordered_set.dart';
import 'package:test/test.dart';
import 'comparable_object.dart';
void main() {
group('OrderedSet', () {
group('#removeWhere', () {
test('remove single element', () {
final a = OrderedSet<int>();
expect(a.addAll([7, 4, 3, 1, 2, 6, 5]), 7);
expect(a.length, 7);
expect(a.removeWhere((e) => e == 3).length, 1);
expect(a.length, 6);
expect(a.toList().join(), '124567');
});
test('remove with property', () {
final a = OrderedSet<int>();
expect(a.addAll([7, 4, 3, 1, 2, 6, 5]), 7);
expect(a.removeWhere((e) => e.isOdd).length, 4);
expect(a.length, 3);
expect(a.toList().join(), '246');
});
test('remove when element has changed', () {
final a = OrderedSet<ComparableObject>();
final e1 = ComparableObject(1, 'e1');
final e2 = ComparableObject(1, 'e2');
final e3 = ComparableObject(2, 'e3');
final e4 = ComparableObject(2, 'e4');
a.addAll([e1, e2, e3, e4]);
e1.priority = 2;
// no rebalance! note that this is a broken state until rebalance is
// called.
expect(a.remove(e1), isTrue);
expect(a.toList().join(), 'e2e3e4');
});
test('remove returns the removed elements', () {
final a = OrderedSet<int>();
a.addAll([7, 4, 3, 1, 2, 6, 5]);
final removed = a.removeWhere((e) => e <= 2);
expect(removed.length, 2);
expect(removed.toList().join(), '12');
});
test('remove from same group and different groups', () {
final a = OrderedSet<ComparableObject>();
expect(a.add(ComparableObject(0, 'a1')), isTrue);
expect(a.add(ComparableObject(0, 'a2')), isTrue);
expect(a.add(ComparableObject(0, 'b1')), isTrue);
expect(a.add(ComparableObject(1, 'a3')), isTrue);
expect(a.add(ComparableObject(1, 'b2')), isTrue);
expect(a.add(ComparableObject(1, 'b3')), isTrue);
expect(a.add(ComparableObject(2, 'a4')), isTrue);
expect(a.add(ComparableObject(2, 'b4')), isTrue);
expect(a.removeWhere((e) => e.name.startsWith('a')).length, 4);
expect(a.length, 4);
expect(a.toList().join(), 'b1b2b3b4');
});
test('remove all', () {
final a = OrderedSet<ComparableObject>();
expect(a.add(ComparableObject(0, 'a1')), isTrue);
expect(a.add(ComparableObject(0, 'a2')), isTrue);
expect(a.add(ComparableObject(0, 'b1')), isTrue);
expect(a.add(ComparableObject(1, 'a3')), isTrue);
expect(a.add(ComparableObject(1, 'b2')), isTrue);
expect(a.add(ComparableObject(1, 'b3')), isTrue);
expect(a.add(ComparableObject(2, 'a4')), isTrue);
expect(a.add(ComparableObject(2, 'b4')), isTrue);
expect(a.removeWhere((e) => true).length, 8);
expect(a.length, 0);
expect(a.toList().join(), '');
});
});
group('#clear', () {
test('removes all and updates length', () {
final a = OrderedSet<int>();
expect(a.addAll([1, 2, 3, 4, 5, 6]), 6);
a.clear();
expect(a.length, 0);
expect(a.toList().length, 0);
});
});
group('#addAll', () {
test('maintains order', () {
final a = OrderedSet<int>();
expect(a.length, 0);
expect(a.addAll([7, 4, 3, 1, 2, 6, 5]), 7);
expect(a.length, 7);
expect(a.toList().join(), '1234567');
});
test('with repeated priority elements', () {
final a = OrderedSet<int>((a, b) => (a % 2) - (b % 2));
expect(a.addAll([7, 4, 3, 1, 2, 6, 5]), 7);
expect(a.length, 7);
expect(a.toList().join(), '4267315');
final b = OrderedSet<int>((a, b) => 0);
expect(b.addAll([7, 4, 3, 1, 2, 6, 5]), 7);
expect(a.length, 7);
expect(b.toList().join(), '7431265');
});
test('with identical elements', () {
final a = OrderedSet<int>();
expect(a.addAll([4, 3, 3, 2, 2, 2, 1]), 4);
expect(a.length, 4);
expect(a.toList().join(), '1234');
});
test('elements with same priorities', () {
final a = OrderedSet<ComparableObject>();
final e1 = ComparableObject(1, 'e1');
final e2 = ComparableObject(1, 'e2');
final e3 = ComparableObject(2, 'e3');
final e4 = ComparableObject(2, 'e4');
a.addAll([e1, e3, e2, e4]);
expect(a.toList().join(), 'e1e2e3e4');
a.remove(e2);
expect(a.toList().join(), 'e1e3e4');
a.add(e2);
expect(a.toList().join(), 'e1e2e3e4');
});
test('duplicated item is discarded', () {
final a = OrderedSet<int>();
a.add(2);
a.add(1);
a.add(2);
expect(a.length, 2);
expect(a.toList().join(), '12');
});
});
group('#length', () {
test('keeps track of length when adding', () {
final a = OrderedSet<int>();
expect(a.add(1), isTrue);
expect(a.length, 1);
expect(a.add(2), isTrue);
expect(a.length, 2);
expect(a.add(3), isTrue);
expect(a.length, 3);
});
test('keeps track of length when removing', () {
final a = OrderedSet<int>((a, b) => 0); // no priority
expect(a.addAll([1, 2, 3, 4]), 4);
expect(a.length, 4);
expect(a.remove(1), isTrue);
expect(a.length, 3);
expect(a.remove(1), isFalse);
expect(a.length, 3);
expect(a.remove(5), isFalse); // never been there
expect(a.length, 3);
expect(a.remove(2), isTrue);
expect(a.remove(3), isTrue);
expect(a.length, 1);
expect(a.remove(4), isTrue);
expect(a.length, 0);
expect(a.remove(4), isFalse);
});
});
group('#add/#remove', () {
test('no comparator test with int', () {
final a = OrderedSet<int>();
expect(a.add(2), isTrue);
expect(a.add(1), isTrue);
expect(a.toList(), [1, 2]);
});
test('no comparator test with string', () {
final a = OrderedSet<String>();
expect(a.add('aab'), isTrue);
expect(a.add('cab'), isTrue);
expect(a.add('bab'), isTrue);
expect(a.toList(), ['aab', 'bab', 'cab']);
});
test('no comparator test with comparable', () {
final a = OrderedSet<ComparableObject>();
expect(a.add(ComparableObject(12, 'Klaus')), isTrue);
expect(a.add(ComparableObject(1, 'Sunny')), isTrue);
expect(a.add(ComparableObject(14, 'Violet')), isTrue);
final expected = ['Sunny', 'Klaus', 'Violet'];
expect(a.toList().map((e) => e.name).toList(), expected);
});
test('test with custom comparator', () {
final a = OrderedSet<ComparableObject>(
(a, b) => a.name.compareTo(b.name),
);
expect(a.add(ComparableObject(1, 'Sunny')), isTrue);
expect(a.add(ComparableObject(12, 'Klaus')), isTrue);
expect(a.add(ComparableObject(14, 'Violet')), isTrue);
final expected = ['Klaus', 'Sunny', 'Violet'];
expect(a.toList().map((e) => e.name).toList(), expected);
});
test(
'test items with repeated comparables, maintain insertion order',
() {
final a = OrderedSet<int>((a, b) => (a % 2) - (b % 2));
for (var i = 0; i < 10; i++) {
expect(a.add(i), isTrue);
}
expect(a.toList(), [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]);
},
);
test('test items with actual duplicated items', () {
final a = OrderedSet<int>();
expect(a.add(1), isTrue);
expect(a.add(1), isFalse);
expect(a.toList(), [1]);
});
test('test remove items', () {
final a = OrderedSet<int>();
expect(a.add(1), isTrue);
expect(a.add(2), isTrue);
expect(a.add(0), isTrue);
expect(a.remove(1), isTrue);
expect(a.remove(3), isFalse);
expect(a.toList(), [0, 2]);
});
test('test remove with duplicates', () {
final a = OrderedSet<int>();
expect(a.add(0), isTrue);
expect(a.add(1), isTrue);
expect(a.add(1), isFalse);
expect(a.add(2), isTrue);
expect(a.toList(), [0, 1, 2]);
expect(a.remove(1), isTrue);
expect(a.toList(), [0, 2]);
expect(a.remove(1), isFalse);
expect(a.toList(), [0, 2]);
});
test('with custom comparator, repeated items and removal', () {
final a = OrderedSet<ComparableObject>(
(a, b) => -a.priority.compareTo(b.priority),
);
final a1 = ComparableObject(2, '1');
final a2 = ComparableObject(2, '2');
final a3 = ComparableObject(1, '3');
final a4 = ComparableObject(1, '4');
final a5 = ComparableObject(1, '5');
final a6 = ComparableObject(0, '6');
expect(a.add(a6), isTrue);
expect(a.add(a3), isTrue);
expect(a.add(a4), isTrue);
expect(a.add(a5), isTrue);
expect(a.add(a1), isTrue);
expect(a.add(a2), isTrue);
expect(a.toList().join(), '123456');
expect(a.remove(a4), isTrue);
expect(a.toList().join(), '12356');
expect(a.remove(a4), isFalse);
expect(a.toList().join(), '12356');
expect(a.remove(ComparableObject(1, '5')), isFalse);
expect(a.toList().join(), '12356');
expect(a.remove(a5), isTrue);
expect(a.toList().join(), '1236');
expect(a.add(ComparableObject(10, '*')), isTrue);
expect(a.toList().join(), '*1236');
expect(a.remove(a1), isTrue);
expect(a.remove(a6), isTrue);
expect(a.toList().join(), '*23');
expect(a.add(ComparableObject(-10, '*')), isTrue);
expect(a.toList().join(), '*23*');
expect(a.remove(a2), isTrue);
expect(a.toList().join(), '*3*');
expect(a.remove(a2), isFalse);
expect(a.remove(a2), isFalse);
expect(a.toList().join(), '*3*');
expect(a.remove(a3), isTrue);
expect(a.toList().join(), '**');
});
test('removeAll', () {
final orderedSet = OrderedSet<ComparableObject>(
Comparing.on((e) => e.priority),
);
final a = ComparableObject(0, 'a');
final b = ComparableObject(1, 'b');
final c = ComparableObject(2, 'c');
final d = ComparableObject(3, 'd');
orderedSet.addAll([d, b, a, c]);
expect(orderedSet.removeAll([c, a]).join(), 'ca');
expect(orderedSet.toList().join(), 'bd');
orderedSet.addAll([d, b, a, c]);
expect(orderedSet.removeAll([d, b]).join(), 'db');
expect(orderedSet.toList().join(), 'ac');
});
test('sorts after remove', () {
final orderedSet = OrderedSet<int>();
// The initial elements must be in order.
orderedSet.addAll([1, 3, 4]);
expect(orderedSet.toList().join(), '134');
expect(orderedSet.remove(4), true);
expect(orderedSet.toList().join(), '13');
expect(orderedSet.add(2), true);
expect(orderedSet.toList().join(), '123');
});
});
group('rebalancing', () {
test('rebalanceWhere and rebalanceAll', () {
final orderedSet = OrderedSet<ComparableObject>(
Comparing.on((e) => e.priority),
);
final a = ComparableObject(0, 'a');
final b = ComparableObject(1, 'b');
final c = ComparableObject(2, 'c');
final d = ComparableObject(3, 'd');
orderedSet.addAll([d, b, a, c]);
expect(orderedSet.toList().join(), 'abcd');
a.priority = 4;
expect(orderedSet.toList().join(), 'abcd');
orderedSet.rebalanceWhere((e) => identical(e, a));
expect(orderedSet.toList().join(), 'bcda');
b.priority = 5;
c.priority = -1;
expect(orderedSet.toList().join(), 'bcda');
orderedSet.rebalanceAll();
expect(orderedSet.toList().join(), 'cdab');
});
});
group('reversed', () {
test('reversed properly invalidates cache', () {
final orderedSet = OrderedSet<ComparableObject>(
Comparing.on((e) => e.priority),
);
final a = ComparableObject(0, 'a');
final b = ComparableObject(1, 'b');
final c = ComparableObject(2, 'c');
final d = ComparableObject(3, 'd');
orderedSet.addAll([d, b, a, c]);
expect(orderedSet.reversed().join(), 'dcba');
a.priority = 4;
expect(orderedSet.reversed().join(), 'dcba');
orderedSet.rebalanceWhere((e) => identical(e, a));
expect(orderedSet.reversed().join(), 'adcb');
b.priority = 5;
c.priority = -1;
expect(orderedSet.reversed().join(), 'adcb');
orderedSet.rebalanceAll();
expect(orderedSet.reversed().join(), 'badc');
orderedSet.remove(d);
expect(orderedSet.reversed().join(), 'bac');
orderedSet.add(d);
expect(orderedSet.reversed().join(), 'badc');
orderedSet.removeAll([a, b]);
expect(orderedSet.reversed().join(), 'dc');
orderedSet.addAll([a, b]);
expect(orderedSet.reversed().join(), 'badc');
});
});
});
}
| ordered_set/test/ordered_set_test.dart/0 | {'file_path': 'ordered_set/test/ordered_set_test.dart', 'repo_id': 'ordered_set', 'token_count': 6419} |
import 'package:clock/clock.dart';
import 'package:ovavue/domain.dart';
import '../auth/auth_mock_impl.dart';
class UsersMockImpl implements UsersRepository {
static final UserEntity user = UserEntity(
id: AuthMockImpl.id,
path: '/users/${AuthMockImpl.id}',
createdAt: clock.now(),
);
@override
Future<UserEntity> create(AccountEntity account) async => user;
@override
Future<UserEntity?> fetch(String uid) async => user;
}
| ovavue/lib/data/repositories/users/users_mock_impl.dart/0 | {'file_path': 'ovavue/lib/data/repositories/users/users_mock_impl.dart', 'repo_id': 'ovavue', 'token_count': 158} |
import 'budget_metadata_value_operation.dart';
class CreateBudgetMetadataData {
const CreateBudgetMetadataData({
required this.title,
required this.description,
required this.operations,
});
final String title;
final String description;
final Set<BudgetMetadataValueOperation> operations;
}
| ovavue/lib/domain/entities/create_budget_metadata_data.dart/0 | {'file_path': 'ovavue/lib/domain/entities/create_budget_metadata_data.dart', 'repo_id': 'ovavue', 'token_count': 93} |
import '../entities/account_entity.dart';
import '../entities/user_entity.dart';
abstract class UsersRepository {
Future<UserEntity> create(AccountEntity account);
Future<UserEntity?> fetch(String uid);
}
| ovavue/lib/domain/repositories/users.dart/0 | {'file_path': 'ovavue/lib/domain/repositories/users.dart', 'repo_id': 'ovavue', 'token_count': 66} |
import '../entities/budget_allocation_entity.dart';
import '../repositories/budget_allocations.dart';
class FetchBudgetAllocationsByPlanUseCase {
const FetchBudgetAllocationsByPlanUseCase({
required BudgetAllocationsRepository allocations,
}) : _allocations = allocations;
final BudgetAllocationsRepository _allocations;
Stream<BudgetAllocationEntityList> call({
required String userId,
required String planId,
}) =>
_allocations.fetchByPlan(userId: userId, planId: planId);
}
| ovavue/lib/domain/use_cases/fetch_budget_allocations_by_plan_use_case.dart/0 | {'file_path': 'ovavue/lib/domain/use_cases/fetch_budget_allocations_by_plan_use_case.dart', 'repo_id': 'ovavue', 'token_count': 160} |
import '../repositories/preferences.dart';
class UpdateThemeModeUseCase {
const UpdateThemeModeUseCase({
required PreferencesRepository preferences,
}) : _preferences = preferences;
final PreferencesRepository _preferences;
Future<bool> call(int themeMode) async => _preferences.updateThemeMode(themeMode);
}
| ovavue/lib/domain/use_cases/update_theme_mode_use_case.dart/0 | {'file_path': 'ovavue/lib/domain/use_cases/update_theme_mode_use_case.dart', 'repo_id': 'ovavue', 'token_count': 94} |
import 'package:equatable/equatable.dart';
import 'budget_metadata_key_view_model.dart';
import 'budget_metadata_value_view_model.dart';
class BudgetMetadataViewModel with EquatableMixin {
const BudgetMetadataViewModel({
required this.key,
required this.values,
});
final BudgetMetadataKeyViewModel key;
final List<BudgetMetadataValueViewModel> values;
@override
List<Object> get props => <Object>[key, values];
}
| ovavue/lib/presentation/models/budget_metadata_view_model.dart/0 | {'file_path': 'ovavue/lib/presentation/models/budget_metadata_view_model.dart', 'repo_id': 'ovavue', 'token_count': 140} |
import 'package:ovavue/domain.dart';
import 'package:registry/registry.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import '../models.dart';
import 'registry_provider.dart';
import 'user_provider.dart';
part 'budget_categories_provider.g.dart';
@Riverpod(dependencies: <Object>[registry, user])
Stream<List<BudgetCategoryViewModel>> budgetCategories(BudgetCategoriesRef ref) async* {
final Registry registry = ref.read(registryProvider);
final UserEntity user = await ref.watch(userProvider.future);
yield* registry
.get<FetchBudgetCategoriesUseCase>()
.call(user.id)
.map((_) => _.map(BudgetCategoryViewModel.fromEntity).toList(growable: false));
}
| ovavue/lib/presentation/state/budget_categories_provider.dart/0 | {'file_path': 'ovavue/lib/presentation/state/budget_categories_provider.dart', 'repo_id': 'ovavue', 'token_count': 243} |
const String kAppFontFamily = 'Poppins';
| ovavue/lib/presentation/theme/app_font.dart/0 | {'file_path': 'ovavue/lib/presentation/theme/app_font.dart', 'repo_id': 'ovavue', 'token_count': 13} |
import 'package:flutter/material.dart';
class LoadingSpinner extends StatelessWidget {
LoadingSpinner.circle({super.key, double size = 32, double strokeWidth = 4, this.color})
: size = Size.square(size),
child = CircularProgressIndicator.adaptive(
valueColor: AlwaysStoppedAnimation<Color?>(color),
strokeWidth: strokeWidth,
);
final Color? color;
final Size size;
final Widget child;
@override
Widget build(BuildContext context) => SizedBox.fromSize(size: size, child: child);
}
| ovavue/lib/presentation/widgets/loading_spinner.dart/0 | {'file_path': 'ovavue/lib/presentation/widgets/loading_spinner.dart', 'repo_id': 'ovavue', 'token_count': 186} |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:ovavue/data.dart';
import 'package:ovavue/domain.dart';
import 'package:ovavue/presentation.dart';
import 'package:riverpod/riverpod.dart';
import '../../utils.dart';
Future<void> main() async {
tearDown(mockUseCases.reset);
group('PreferencesProvider', () {
test('should get current state', () {
final AccountEntity dummyAccount = AuthMockImpl.generateAccount();
final PreferencesState expectedState = PreferencesState(
accountKey: dummyAccount.id,
themeMode: ThemeMode.system,
);
when(mockUseCases.fetchThemeModeUseCase.call).thenAnswer((_) async => 0);
final ProviderContainer container = createProviderContainer(
overrides: <Override>[
accountProvider.overrideWith((_) async => dummyAccount),
],
);
addTearDown(container.dispose);
expect(
container.read(preferencesProvider.future),
completion(expectedState),
);
});
test('should update theme mode', () {
when(() => mockUseCases.updateThemeModeUseCase.call(1)).thenAnswer((_) async => true);
final ProviderContainer container = createProviderContainer();
addTearDown(container.dispose);
expect(
container.read(preferencesProvider.notifier).updateThemeMode(ThemeMode.light),
completion(true),
);
});
});
}
| ovavue/test/presentation/state/preferences_provider_test.dart/0 | {'file_path': 'ovavue/test/presentation/state/preferences_provider_test.dart', 'repo_id': 'ovavue', 'token_count': 549} |
import 'dart:io';
import 'package:example/utils/color.dart';
import 'package:example/utils/vector2.dart';
import 'package:example/utils/rect.dart';
const ESCAPE = '\x1B';
final Terminal terminal = Terminal._();
class Terminal {
Rect get viewport => Rect.fromLTWH(
0,
0,
stdout.terminalColumns,
stdout.terminalLines,
);
bool hideCursor = true;
late List<String> buffer;
Terminal._() {
if (!stdout.supportsAnsiEscapes) {
throw Exception(
'Sorry only terminals that support ANSI escapes are supported',
);
}
buffer = [if (hideCursor) _escape('?25l') else _escape('?25h')];
ProcessSignal.sigint.watch().listen((ProcessSignal signal) {
clear();
stdout.write(_escape('?25h'));
exit(0);
});
}
final List<Vector2> _positions = [Vector2.zero()];
Vector2 get _position => _positions.last;
set _position(Vector2 position) {
_positions.last = position;
}
void translate(int x, int y) {
_position = _position.translate(x, y);
buffer.add(_escape('${_position.y};${_position.x}H'));
}
String _escape(String data) => '$ESCAPE[$data';
void draw(
String data, {
Vector2 position = const Vector2.zero(),
Color foregroundColor = Colors.white,
Color backgroundColor = Colors.black,
}) {
position = _position.translate(position.x, position.y);
buffer.addAll([
_escape('${position.y + 1};${position.x}H'),
_escape('38;2;${foregroundColor.toRGB()}m'),
_escape('48;2;${backgroundColor.toRGB()}m'),
data,
]);
}
void clear() => stdout.write('$ESCAPE[2J$ESCAPE[0;0H');
void save() => _positions.add(_position);
void restore() => _positions.removeLast();
void render() {
for (final line in buffer) {
stdout.write(line);
}
buffer = [if (hideCursor) _escape('?25l') else _escape('?25h')];
_position = Vector2.zero();
}
}
| oxygen/example/lib/utils/terminal.dart/0 | {'file_path': 'oxygen/example/lib/utils/terminal.dart', 'repo_id': 'oxygen', 'token_count': 771} |
part of oxygen;
/// Manages all registered systems.
class SystemManager {
/// The world in which this manager lives.
final World world;
/// All the registered systems.
final List<System> _systems = [];
UnmodifiableListView<System> get systems => UnmodifiableListView(_systems);
final Map<Type, System> _systemsByType = {};
SystemManager(this.world);
/// Initialize all the systems that are registered.
void init() {
for (final system in _systems) {
system.init();
}
}
/// Register a system.
///
/// If a given system type has already been added, it will simply return.
void registerSystem<T extends System>(T system) {
assert(system.world == null, '$T is already registered');
if (_systemsByType.containsKey(system.runtimeType)) {
return;
}
system.world = world;
_systems.add(system);
_systemsByType[T] = system;
_systems.sort((a, b) => a.priority - b.priority);
}
/// Deregister a previously registered system.
///
/// If the given system type is not found, it will simply return.
void deregisterSystem(Type systemType) {
if (!_systemsByType.containsKey(systemType)) {
return;
}
final system = _systemsByType.remove(systemType);
system?.dispose();
_systems.remove(system);
_systems.sort((a, b) => a.priority - b.priority);
}
/// Execute all the systems that are registered.
void _execute(double delta) {
for (final system in _systems) {
system.execute(delta);
}
}
}
| oxygen/lib/src/system/system_manager.dart/0 | {'file_path': 'oxygen/lib/src/system/system_manager.dart', 'repo_id': 'oxygen', 'token_count': 514} |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: create all_packages app
script: .ci/scripts/create_all_packages_app.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: build all_packages app for Windows debug
script: .ci/scripts/build_all_packages_app.sh
args: ["windows", "debug"]
- name: build all_packages app for Windows release
script: .ci/scripts/build_all_packages_app.sh
args: ["windows", "release"]
| packages/.ci/targets/windows_build_all_packages.yaml/0 | {'file_path': 'packages/.ci/targets/windows_build_all_packages.yaml', 'repo_id': 'packages', 'token_count': 194} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'analyzer.dart';
import 'camera.dart';
import 'camera_control.dart';
import 'camera_info.dart';
import 'camera_selector.dart';
import 'camera_state.dart';
import 'camera_state_error.dart';
import 'camerax_library.g.dart';
import 'device_orientation_manager.dart';
import 'exposure_state.dart';
import 'focus_metering_result.dart';
import 'image_proxy.dart';
import 'java_object.dart';
import 'live_data.dart';
import 'observer.dart';
import 'pending_recording.dart';
import 'plane_proxy.dart';
import 'process_camera_provider.dart';
import 'recorder.dart';
import 'recording.dart';
import 'system_services.dart';
import 'video_capture.dart';
import 'zoom_state.dart';
/// Handles initialization of Flutter APIs for the Android CameraX library.
class AndroidCameraXCameraFlutterApis {
/// Creates a [AndroidCameraXCameraFlutterApis].
AndroidCameraXCameraFlutterApis(
{JavaObjectFlutterApiImpl? javaObjectFlutterApiImpl,
CameraFlutterApiImpl? cameraFlutterApiImpl,
CameraInfoFlutterApiImpl? cameraInfoFlutterApiImpl,
CameraSelectorFlutterApiImpl? cameraSelectorFlutterApiImpl,
ProcessCameraProviderFlutterApiImpl? processCameraProviderFlutterApiImpl,
SystemServicesFlutterApiImpl? systemServicesFlutterApiImpl,
DeviceOrientationManagerFlutterApiImpl?
deviceOrientationManagerFlutterApiImpl,
CameraStateErrorFlutterApiImpl? cameraStateErrorFlutterApiImpl,
CameraStateFlutterApiImpl? cameraStateFlutterApiImpl,
PendingRecordingFlutterApiImpl? pendingRecordingFlutterApiImpl,
RecordingFlutterApiImpl? recordingFlutterApiImpl,
RecorderFlutterApiImpl? recorderFlutterApiImpl,
VideoCaptureFlutterApiImpl? videoCaptureFlutterApiImpl,
ExposureStateFlutterApiImpl? exposureStateFlutterApiImpl,
ZoomStateFlutterApiImpl? zoomStateFlutterApiImpl,
LiveDataFlutterApiImpl? liveDataFlutterApiImpl,
ObserverFlutterApiImpl? observerFlutterApiImpl,
ImageProxyFlutterApiImpl? imageProxyFlutterApiImpl,
PlaneProxyFlutterApiImpl? planeProxyFlutterApiImpl,
AnalyzerFlutterApiImpl? analyzerFlutterApiImpl,
CameraControlFlutterApiImpl? cameraControlFlutterApiImpl,
FocusMeteringResultFlutterApiImpl? focusMeteringResultFlutterApiImpl}) {
this.javaObjectFlutterApiImpl =
javaObjectFlutterApiImpl ?? JavaObjectFlutterApiImpl();
this.cameraInfoFlutterApiImpl =
cameraInfoFlutterApiImpl ?? CameraInfoFlutterApiImpl();
this.cameraSelectorFlutterApiImpl =
cameraSelectorFlutterApiImpl ?? CameraSelectorFlutterApiImpl();
this.processCameraProviderFlutterApiImpl =
processCameraProviderFlutterApiImpl ??
ProcessCameraProviderFlutterApiImpl();
this.cameraFlutterApiImpl = cameraFlutterApiImpl ?? CameraFlutterApiImpl();
this.systemServicesFlutterApiImpl =
systemServicesFlutterApiImpl ?? SystemServicesFlutterApiImpl();
this.deviceOrientationManagerFlutterApiImpl =
deviceOrientationManagerFlutterApiImpl ??
DeviceOrientationManagerFlutterApiImpl();
this.cameraStateErrorFlutterApiImpl =
cameraStateErrorFlutterApiImpl ?? CameraStateErrorFlutterApiImpl();
this.cameraStateFlutterApiImpl =
cameraStateFlutterApiImpl ?? CameraStateFlutterApiImpl();
this.pendingRecordingFlutterApiImpl =
pendingRecordingFlutterApiImpl ?? PendingRecordingFlutterApiImpl();
this.recordingFlutterApiImpl =
recordingFlutterApiImpl ?? RecordingFlutterApiImpl();
this.recorderFlutterApiImpl =
recorderFlutterApiImpl ?? RecorderFlutterApiImpl();
this.videoCaptureFlutterApiImpl =
videoCaptureFlutterApiImpl ?? VideoCaptureFlutterApiImpl();
this.exposureStateFlutterApiImpl =
exposureStateFlutterApiImpl ?? ExposureStateFlutterApiImpl();
this.zoomStateFlutterApiImpl =
zoomStateFlutterApiImpl ?? ZoomStateFlutterApiImpl();
this.liveDataFlutterApiImpl =
liveDataFlutterApiImpl ?? LiveDataFlutterApiImpl();
this.observerFlutterApiImpl =
observerFlutterApiImpl ?? ObserverFlutterApiImpl();
this.analyzerFlutterApiImpl =
analyzerFlutterApiImpl ?? AnalyzerFlutterApiImpl();
this.imageProxyFlutterApiImpl =
imageProxyFlutterApiImpl ?? ImageProxyFlutterApiImpl();
this.planeProxyFlutterApiImpl =
planeProxyFlutterApiImpl ?? PlaneProxyFlutterApiImpl();
this.cameraControlFlutterApiImpl =
cameraControlFlutterApiImpl ?? CameraControlFlutterApiImpl();
this.focusMeteringResultFlutterApiImpl =
focusMeteringResultFlutterApiImpl ??
FocusMeteringResultFlutterApiImpl();
}
static bool _haveBeenSetUp = false;
/// Mutable instance containing all Flutter Apis for Android CameraX Camera.
///
/// This should only be changed for testing purposes.
static AndroidCameraXCameraFlutterApis instance =
AndroidCameraXCameraFlutterApis();
/// Handles callbacks methods for the native Java Object class.
late final JavaObjectFlutterApi javaObjectFlutterApiImpl;
/// Flutter Api implementation for [CameraInfo].
late final CameraInfoFlutterApiImpl cameraInfoFlutterApiImpl;
/// Flutter Api implementation for [CameraSelector].
late final CameraSelectorFlutterApiImpl cameraSelectorFlutterApiImpl;
/// Flutter Api implementation for [ProcessCameraProvider].
late final ProcessCameraProviderFlutterApiImpl
processCameraProviderFlutterApiImpl;
/// Flutter Api implementation for [Camera].
late final CameraFlutterApiImpl cameraFlutterApiImpl;
/// Flutter Api implementation for [SystemServices].
late final SystemServicesFlutterApiImpl systemServicesFlutterApiImpl;
/// Flutter Api implementation for [DeviceOrientationManager].
late final DeviceOrientationManagerFlutterApiImpl
deviceOrientationManagerFlutterApiImpl;
/// Flutter Api implementation for [CameraStateError].
late final CameraStateErrorFlutterApiImpl? cameraStateErrorFlutterApiImpl;
/// Flutter Api implementation for [CameraState].
late final CameraStateFlutterApiImpl? cameraStateFlutterApiImpl;
/// Flutter Api implementation for [LiveData].
late final LiveDataFlutterApiImpl? liveDataFlutterApiImpl;
/// Flutter Api implementation for [Observer].
late final ObserverFlutterApiImpl? observerFlutterApiImpl;
/// Flutter Api for [PendingRecording].
late final PendingRecordingFlutterApiImpl pendingRecordingFlutterApiImpl;
/// Flutter Api for [Recording].
late final RecordingFlutterApiImpl recordingFlutterApiImpl;
/// Flutter Api for [Recorder].
late final RecorderFlutterApiImpl recorderFlutterApiImpl;
/// Flutter Api for [VideoCapture].
late final VideoCaptureFlutterApiImpl videoCaptureFlutterApiImpl;
/// Flutter Api for [ExposureState].
late final ExposureStateFlutterApiImpl exposureStateFlutterApiImpl;
/// Flutter Api for [ZoomState].
late final ZoomStateFlutterApiImpl zoomStateFlutterApiImpl;
/// Flutter Api implementation for [Analyzer].
late final AnalyzerFlutterApiImpl analyzerFlutterApiImpl;
/// Flutter Api implementation for [ImageProxy].
late final ImageProxyFlutterApiImpl imageProxyFlutterApiImpl;
/// Flutter Api implementation for [PlaneProxy].
late final PlaneProxyFlutterApiImpl planeProxyFlutterApiImpl;
/// Flutter Api implementation for [CameraControl].
late final CameraControlFlutterApiImpl cameraControlFlutterApiImpl;
/// Flutter Api implementation for [FocusMeteringResult].
late final FocusMeteringResultFlutterApiImpl
focusMeteringResultFlutterApiImpl;
/// Ensures all the Flutter APIs have been setup to receive calls from native code.
void ensureSetUp() {
if (!_haveBeenSetUp) {
JavaObjectFlutterApi.setup(javaObjectFlutterApiImpl);
CameraInfoFlutterApi.setup(cameraInfoFlutterApiImpl);
CameraSelectorFlutterApi.setup(cameraSelectorFlutterApiImpl);
ProcessCameraProviderFlutterApi.setup(
processCameraProviderFlutterApiImpl);
CameraFlutterApi.setup(cameraFlutterApiImpl);
SystemServicesFlutterApi.setup(systemServicesFlutterApiImpl);
DeviceOrientationManagerFlutterApi.setup(
deviceOrientationManagerFlutterApiImpl);
CameraStateErrorFlutterApi.setup(cameraStateErrorFlutterApiImpl);
CameraStateFlutterApi.setup(cameraStateFlutterApiImpl);
PendingRecordingFlutterApi.setup(pendingRecordingFlutterApiImpl);
RecordingFlutterApi.setup(recordingFlutterApiImpl);
RecorderFlutterApi.setup(recorderFlutterApiImpl);
VideoCaptureFlutterApi.setup(videoCaptureFlutterApiImpl);
ExposureStateFlutterApi.setup(exposureStateFlutterApiImpl);
ZoomStateFlutterApi.setup(zoomStateFlutterApiImpl);
AnalyzerFlutterApi.setup(analyzerFlutterApiImpl);
ImageProxyFlutterApi.setup(imageProxyFlutterApiImpl);
PlaneProxyFlutterApi.setup(planeProxyFlutterApiImpl);
LiveDataFlutterApi.setup(liveDataFlutterApiImpl);
ObserverFlutterApi.setup(observerFlutterApiImpl);
CameraControlFlutterApi.setup(cameraControlFlutterApiImpl);
FocusMeteringResultFlutterApi.setup(focusMeteringResultFlutterApiImpl);
_haveBeenSetUp = true;
}
}
}
| packages/packages/camera/camera_android_camerax/lib/src/android_camera_camerax_flutter_api_impls.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/lib/src/android_camera_camerax_flutter_api_impls.dart', 'repo_id': 'packages', 'token_count': 3170} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:meta/meta.dart' show immutable;
import 'java_object.dart';
/// Handle onto the raw buffer managed by screen compositor.
///
/// See https://developer.android.com/reference/android/view/Surface.html.
@immutable
class Surface extends JavaObject {
/// Creates a detached [Surface].
Surface.detached({super.binaryMessenger, super.instanceManager})
: super.detached();
/// Rotation constant to signify the natural orientation.
///
/// See https://developer.android.com/reference/android/view/Surface.html#ROTATION_0.
static const int ROTATION_0 = 0;
/// Rotation constant to signify a 90 degrees rotation.
///
/// See https://developer.android.com/reference/android/view/Surface.html#ROTATION_90.
static const int ROTATION_90 = 1;
/// Rotation constant to signify a 180 degrees rotation.
///
/// See https://developer.android.com/reference/android/view/Surface.html#ROTATION_180.
static const int ROTATION_180 = 2;
/// Rotation constant to signify a 270 degrees rotation.
///
/// See https://developer.android.com/reference/android/view/Surface.html#ROTATION_270.
static const int ROTATION_270 = 3;
}
| packages/packages/camera/camera_android_camerax/lib/src/surface.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/lib/src/surface.dart', 'repo_id': 'packages', 'token_count': 396} |
// Mocks generated by Mockito 5.4.4 from annotations
// in camera_android_camerax/test/camera_info_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5;
import 'package:camera_android_camerax/src/camera_state.dart' as _i4;
import 'package:camera_android_camerax/src/live_data.dart' as _i3;
import 'package:camera_android_camerax/src/observer.dart' as _i6;
import 'package:camera_android_camerax/src/zoom_state.dart' as _i7;
import 'package:mockito/mockito.dart' as _i1;
import 'test_camerax_library.g.dart' as _i2;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [TestCameraInfoHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestCameraInfoHostApi extends _i1.Mock
implements _i2.TestCameraInfoHostApi {
MockTestCameraInfoHostApi() {
_i1.throwOnMissingStub(this);
}
@override
int getSensorRotationDegrees(int? identifier) => (super.noSuchMethod(
Invocation.method(
#getSensorRotationDegrees,
[identifier],
),
returnValue: 0,
) as int);
@override
int getCameraState(int? identifier) => (super.noSuchMethod(
Invocation.method(
#getCameraState,
[identifier],
),
returnValue: 0,
) as int);
@override
int getExposureState(int? identifier) => (super.noSuchMethod(
Invocation.method(
#getExposureState,
[identifier],
),
returnValue: 0,
) as int);
@override
int getZoomState(int? identifier) => (super.noSuchMethod(
Invocation.method(
#getZoomState,
[identifier],
),
returnValue: 0,
) as int);
}
/// A class which mocks [TestInstanceManagerHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestInstanceManagerHostApi extends _i1.Mock
implements _i2.TestInstanceManagerHostApi {
MockTestInstanceManagerHostApi() {
_i1.throwOnMissingStub(this);
}
@override
void clear() => super.noSuchMethod(
Invocation.method(
#clear,
[],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [LiveData].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockLiveCameraState extends _i1.Mock
implements _i3.LiveData<_i4.CameraState> {
MockLiveCameraState() {
_i1.throwOnMissingStub(this);
}
@override
_i5.Future<void> observe(_i6.Observer<_i4.CameraState>? observer) =>
(super.noSuchMethod(
Invocation.method(
#observe,
[observer],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
_i5.Future<void> removeObservers() => (super.noSuchMethod(
Invocation.method(
#removeObservers,
[],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
}
/// A class which mocks [LiveData].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockLiveZoomState extends _i1.Mock
implements _i3.LiveData<_i7.ZoomState> {
MockLiveZoomState() {
_i1.throwOnMissingStub(this);
}
@override
_i5.Future<void> observe(_i6.Observer<_i7.ZoomState>? observer) =>
(super.noSuchMethod(
Invocation.method(
#observe,
[observer],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
_i5.Future<void> removeObservers() => (super.noSuchMethod(
Invocation.method(
#removeObservers,
[],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
}
| packages/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart', 'repo_id': 'packages', 'token_count': 1911} |
// Mocks generated by Mockito 5.4.3 from annotations
// in camera_android_camerax/test/focus_metering_action_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:camera_android_camerax/src/camerax_library.g.dart' as _i4;
import 'package:camera_android_camerax/src/metering_point.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
import 'test_camerax_library.g.dart' as _i3;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [MeteringPoint].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockMeteringPoint extends _i1.Mock implements _i2.MeteringPoint {
MockMeteringPoint() {
_i1.throwOnMissingStub(this);
}
@override
double get x => (super.noSuchMethod(
Invocation.getter(#x),
returnValue: 0.0,
) as double);
@override
double get y => (super.noSuchMethod(
Invocation.getter(#y),
returnValue: 0.0,
) as double);
}
/// A class which mocks [TestFocusMeteringActionHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestFocusMeteringActionHostApi extends _i1.Mock
implements _i3.TestFocusMeteringActionHostApi {
MockTestFocusMeteringActionHostApi() {
_i1.throwOnMissingStub(this);
}
@override
void create(
int? identifier,
List<_i4.MeteringPointInfo?>? meteringPointInfos,
) =>
super.noSuchMethod(
Invocation.method(
#create,
[
identifier,
meteringPointInfos,
],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [TestInstanceManagerHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestInstanceManagerHostApi extends _i1.Mock
implements _i3.TestInstanceManagerHostApi {
MockTestInstanceManagerHostApi() {
_i1.throwOnMissingStub(this);
}
@override
void clear() => super.noSuchMethod(
Invocation.method(
#clear,
[],
),
returnValueForMissingStub: null,
);
}
| packages/packages/camera/camera_android_camerax/test/focus_metering_action_test.mocks.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/test/focus_metering_action_test.mocks.dart', 'repo_id': 'packages', 'token_count': 1025} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:camera_android_camerax/src/camerax_library.g.dart';
import 'package:camera_android_camerax/src/instance_manager.dart';
import 'package:camera_android_camerax/src/pending_recording.dart';
import 'package:camera_android_camerax/src/recording.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'pending_recording_test.mocks.dart';
import 'test_camerax_library.g.dart';
@GenerateMocks(
<Type>[TestPendingRecordingHostApi, TestInstanceManagerHostApi, Recording])
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
// Mocks the call to clear the native InstanceManager.
TestInstanceManagerHostApi.setup(MockTestInstanceManagerHostApi());
test('start calls start on the Java side', () async {
final MockTestPendingRecordingHostApi mockApi =
MockTestPendingRecordingHostApi();
TestPendingRecordingHostApi.setup(mockApi);
final InstanceManager instanceManager = InstanceManager(
onWeakReferenceRemoved: (_) {},
);
final PendingRecording pendingRecording =
PendingRecording.detached(instanceManager: instanceManager);
const int pendingRecordingId = 2;
instanceManager.addHostCreatedInstance(pendingRecording, pendingRecordingId,
onCopy: (_) =>
PendingRecording.detached(instanceManager: instanceManager));
final Recording mockRecording = MockRecording();
const int mockRecordingId = 3;
instanceManager.addHostCreatedInstance(mockRecording, mockRecordingId,
onCopy: (_) => Recording.detached(instanceManager: instanceManager));
when(mockApi.start(pendingRecordingId)).thenReturn(mockRecordingId);
expect(await pendingRecording.start(), mockRecording);
verify(mockApi.start(pendingRecordingId));
});
test('flutterApiCreateTest', () async {
final InstanceManager instanceManager = InstanceManager(
onWeakReferenceRemoved: (_) {},
);
final PendingRecordingFlutterApi flutterApi =
PendingRecordingFlutterApiImpl(
instanceManager: instanceManager,
);
flutterApi.create(0);
expect(instanceManager.getInstanceWithWeakReference(0),
isA<PendingRecording>());
});
}
| packages/packages/camera/camera_android_camerax/test/pending_recording_test.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/test/pending_recording_test.dart', 'repo_id': 'packages', 'token_count': 818} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:camera_android_camerax/src/camerax_library.g.dart';
import 'package:camera_android_camerax/src/instance_manager.dart';
import 'package:camera_android_camerax/src/resolution_strategy.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'resolution_strategy_test.mocks.dart';
import 'test_camerax_library.g.dart';
@GenerateMocks(<Type>[
TestResolutionStrategyHostApi,
TestInstanceManagerHostApi,
])
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
group('ResolutionStrategy', () {
tearDown(() {
TestResolutionStrategyHostApi.setup(null);
TestInstanceManagerHostApi.setup(null);
});
test(
'detached resolutionStrategy constructors do not make call to Host API create',
() {
final MockTestResolutionStrategyHostApi mockApi =
MockTestResolutionStrategyHostApi();
TestResolutionStrategyHostApi.setup(mockApi);
TestInstanceManagerHostApi.setup(MockTestInstanceManagerHostApi());
final InstanceManager instanceManager = InstanceManager(
onWeakReferenceRemoved: (_) {},
);
const Size boundSize = Size(70, 20);
const int fallbackRule = 1;
ResolutionStrategy.detached(
boundSize: boundSize,
fallbackRule: fallbackRule,
instanceManager: instanceManager,
);
verifyNever(mockApi.create(
argThat(isA<int>()),
argThat(isA<ResolutionInfo>()
.having((ResolutionInfo size) => size.width, 'width', 50)
.having((ResolutionInfo size) => size.height, 'height', 30)),
fallbackRule,
));
ResolutionStrategy.detachedHighestAvailableStrategy(
instanceManager: instanceManager,
);
verifyNever(mockApi.create(
argThat(isA<int>()),
null,
null,
));
});
test('HostApi create creates expected ResolutionStrategies', () {
final MockTestResolutionStrategyHostApi mockApi =
MockTestResolutionStrategyHostApi();
TestResolutionStrategyHostApi.setup(mockApi);
TestInstanceManagerHostApi.setup(MockTestInstanceManagerHostApi());
final InstanceManager instanceManager = InstanceManager(
onWeakReferenceRemoved: (_) {},
);
const Size boundSize = Size(50, 30);
const int fallbackRule = 0;
final ResolutionStrategy instance = ResolutionStrategy(
boundSize: boundSize,
fallbackRule: fallbackRule,
instanceManager: instanceManager,
);
verify(mockApi.create(
instanceManager.getIdentifier(instance),
argThat(isA<ResolutionInfo>()
.having((ResolutionInfo size) => size.width, 'width', 50)
.having((ResolutionInfo size) => size.height, 'height', 30)),
fallbackRule,
));
final ResolutionStrategy highestAvailableInstance =
ResolutionStrategy.highestAvailableStrategy(
instanceManager: instanceManager,
);
verify(mockApi.create(
instanceManager.getIdentifier(highestAvailableInstance),
null,
null,
));
});
});
}
| packages/packages/camera/camera_android_camerax/test/resolution_strategy_test.dart/0 | {'file_path': 'packages/packages/camera/camera_android_camerax/test/resolution_strategy_test.dart', 'repo_id': 'packages', 'token_count': 1317} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
group('CameraLensDirection tests', () {
test('CameraLensDirection should contain 3 options', () {
const List<CameraLensDirection> values = CameraLensDirection.values;
expect(values.length, 3);
});
test('CameraLensDirection enum should have items in correct index', () {
const List<CameraLensDirection> values = CameraLensDirection.values;
expect(values[0], CameraLensDirection.front);
expect(values[1], CameraLensDirection.back);
expect(values[2], CameraLensDirection.external);
});
});
group('CameraDescription tests', () {
test('Constructor should initialize all properties', () {
const CameraDescription description = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
expect(description.name, 'Test');
expect(description.lensDirection, CameraLensDirection.front);
expect(description.sensorOrientation, 90);
});
test('equals should return true if objects are the same', () {
const CameraDescription firstDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
const CameraDescription secondDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
expect(firstDescription == secondDescription, true);
});
test('equals should return false if name is different', () {
const CameraDescription firstDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
const CameraDescription secondDescription = CameraDescription(
name: 'Testing',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
expect(firstDescription == secondDescription, false);
});
test('equals should return false if lens direction is different', () {
const CameraDescription firstDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
const CameraDescription secondDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.back,
sensorOrientation: 90,
);
expect(firstDescription == secondDescription, false);
});
test('equals should return true if sensor orientation is different', () {
const CameraDescription firstDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 0,
);
const CameraDescription secondDescription = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 90,
);
expect(firstDescription == secondDescription, true);
});
test('hashCode should match hashCode of all equality-tested properties',
() {
const CameraDescription description = CameraDescription(
name: 'Test',
lensDirection: CameraLensDirection.front,
sensorOrientation: 0,
);
final int expectedHashCode =
Object.hash(description.name, description.lensDirection);
expect(description.hashCode, expectedHashCode);
});
});
}
| packages/packages/camera/camera_platform_interface/test/types/camera_description_test.dart/0 | {'file_path': 'packages/packages/camera/camera_platform_interface/test/types/camera_description_test.dart', 'repo_id': 'packages', 'token_count': 1305} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html';
import 'package:camera_web/src/types/types.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'helpers/helpers.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group('CameraErrorCode', () {
group('toString returns a correct type for', () {
testWidgets('notSupported', (WidgetTester tester) async {
expect(
CameraErrorCode.notSupported.toString(),
equals('cameraNotSupported'),
);
});
testWidgets('notFound', (WidgetTester tester) async {
expect(
CameraErrorCode.notFound.toString(),
equals('cameraNotFound'),
);
});
testWidgets('notReadable', (WidgetTester tester) async {
expect(
CameraErrorCode.notReadable.toString(),
equals('cameraNotReadable'),
);
});
testWidgets('overconstrained', (WidgetTester tester) async {
expect(
CameraErrorCode.overconstrained.toString(),
equals('cameraOverconstrained'),
);
});
testWidgets('permissionDenied', (WidgetTester tester) async {
expect(
CameraErrorCode.permissionDenied.toString(),
equals('CameraAccessDenied'),
);
});
testWidgets('type', (WidgetTester tester) async {
expect(
CameraErrorCode.type.toString(),
equals('cameraType'),
);
});
testWidgets('abort', (WidgetTester tester) async {
expect(
CameraErrorCode.abort.toString(),
equals('cameraAbort'),
);
});
testWidgets('security', (WidgetTester tester) async {
expect(
CameraErrorCode.security.toString(),
equals('cameraSecurity'),
);
});
testWidgets('missingMetadata', (WidgetTester tester) async {
expect(
CameraErrorCode.missingMetadata.toString(),
equals('cameraMissingMetadata'),
);
});
testWidgets('orientationNotSupported', (WidgetTester tester) async {
expect(
CameraErrorCode.orientationNotSupported.toString(),
equals('orientationNotSupported'),
);
});
testWidgets('torchModeNotSupported', (WidgetTester tester) async {
expect(
CameraErrorCode.torchModeNotSupported.toString(),
equals('torchModeNotSupported'),
);
});
testWidgets('zoomLevelNotSupported', (WidgetTester tester) async {
expect(
CameraErrorCode.zoomLevelNotSupported.toString(),
equals('zoomLevelNotSupported'),
);
});
testWidgets('zoomLevelInvalid', (WidgetTester tester) async {
expect(
CameraErrorCode.zoomLevelInvalid.toString(),
equals('zoomLevelInvalid'),
);
});
testWidgets('notStarted', (WidgetTester tester) async {
expect(
CameraErrorCode.notStarted.toString(),
equals('cameraNotStarted'),
);
});
testWidgets('videoRecordingNotStarted', (WidgetTester tester) async {
expect(
CameraErrorCode.videoRecordingNotStarted.toString(),
equals('videoRecordingNotStarted'),
);
});
testWidgets('unknown', (WidgetTester tester) async {
expect(
CameraErrorCode.unknown.toString(),
equals('cameraUnknown'),
);
});
group('fromMediaError', () {
testWidgets('with aborted error code', (WidgetTester tester) async {
expect(
CameraErrorCode.fromMediaError(
FakeMediaError(MediaError.MEDIA_ERR_ABORTED),
).toString(),
equals('mediaErrorAborted'),
);
});
testWidgets('with network error code', (WidgetTester tester) async {
expect(
CameraErrorCode.fromMediaError(
FakeMediaError(MediaError.MEDIA_ERR_NETWORK),
).toString(),
equals('mediaErrorNetwork'),
);
});
testWidgets('with decode error code', (WidgetTester tester) async {
expect(
CameraErrorCode.fromMediaError(
FakeMediaError(MediaError.MEDIA_ERR_DECODE),
).toString(),
equals('mediaErrorDecode'),
);
});
testWidgets('with source not supported error code',
(WidgetTester tester) async {
expect(
CameraErrorCode.fromMediaError(
FakeMediaError(MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED),
).toString(),
equals('mediaErrorSourceNotSupported'),
);
});
testWidgets('with unknown error code', (WidgetTester tester) async {
expect(
CameraErrorCode.fromMediaError(
FakeMediaError(5),
).toString(),
equals('mediaErrorUnknown'),
);
});
});
});
});
}
| packages/packages/camera/camera_web/example/integration_test/camera_error_code_test.dart/0 | {'file_path': 'packages/packages/camera/camera_web/example/integration_test/camera_error_code_test.dart', 'repo_id': 'packages', 'token_count': 2335} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@TestOn('chrome') // Uses web-only Flutter SDK
library;
import 'dart:convert';
import 'dart:js_interop';
import 'dart:typed_data';
import 'package:cross_file/cross_file.dart';
import 'package:test/test.dart';
import 'package:web/helpers.dart' as html;
const String expectedStringContents = 'Hello, world! I ❤ ñ! 空手';
final Uint8List bytes = Uint8List.fromList(utf8.encode(expectedStringContents));
final html.File textFile =
html.File(<JSUint8Array>[bytes.toJS].toJS, 'hello.txt');
final String textFileUrl =
// TODO(kevmoo): drop ignore when pkg:web constraint excludes v0.3
// ignore: unnecessary_cast
html.URL.createObjectURL(textFile as JSObject);
void main() {
group('Create with an objectUrl', () {
final XFile file = XFile(textFileUrl);
test('Can be read as a string', () async {
expect(await file.readAsString(), equals(expectedStringContents));
});
test('Can be read as bytes', () async {
expect(await file.readAsBytes(), equals(bytes));
});
test('Can be read as a stream', () async {
expect(await file.openRead().first, equals(bytes));
});
test('Stream can be sliced', () async {
expect(await file.openRead(2, 5).first, equals(bytes.sublist(2, 5)));
});
});
group('Create from data', () {
final XFile file = XFile.fromData(bytes);
test('Can be read as a string', () async {
expect(await file.readAsString(), equals(expectedStringContents));
});
test('Can be read as bytes', () async {
expect(await file.readAsBytes(), equals(bytes));
});
test('Can be read as a stream', () async {
expect(await file.openRead().first, equals(bytes));
});
test('Stream can be sliced', () async {
expect(await file.openRead(2, 5).first, equals(bytes.sublist(2, 5)));
});
});
group('Blob backend', () {
final XFile file = XFile(textFileUrl);
test('Stores data as a Blob', () async {
// Read the blob from its path 'natively'
final html.Response response =
(await html.window.fetch(file.path.toJS).toDart)! as html.Response;
final JSAny? arrayBuffer = await response.arrayBuffer().toDart;
final ByteBuffer data = (arrayBuffer! as JSArrayBuffer).toDart;
expect(data.asUint8List(), equals(bytes));
});
test('Data may be purged from the blob!', () async {
html.URL.revokeObjectURL(file.path);
expect(() async {
await file.readAsBytes();
}, throwsException);
});
});
group('saveTo(..)', () {
const String crossFileDomElementId = '__x_file_dom_element';
group('CrossFile saveTo(..)', () {
test('creates a DOM container', () async {
final XFile file = XFile.fromData(bytes);
await file.saveTo('');
final html.Element? container =
html.querySelector('#$crossFileDomElementId');
expect(container, isNotNull);
});
test('create anchor element', () async {
final XFile file = XFile.fromData(bytes, name: textFile.name);
await file.saveTo('path');
final html.Element container =
html.querySelector('#$crossFileDomElementId')!;
late html.HTMLAnchorElement element;
for (int i = 0; i < container.childNodes.length; i++) {
final html.Element test = container.children.item(i)!;
if (test.tagName == 'A') {
element = test as html.HTMLAnchorElement;
break;
}
}
// if element is not found, the `firstWhere` call will throw StateError.
expect(element.href, file.path);
expect(element.download, file.name);
});
test('anchor element is clicked', () async {
final html.HTMLAnchorElement mockAnchor =
html.document.createElement('a') as html.HTMLAnchorElement;
final CrossFileTestOverrides overrides = CrossFileTestOverrides(
createAnchorElement: (_, __) => mockAnchor,
);
final XFile file =
XFile.fromData(bytes, name: textFile.name, overrides: overrides);
bool clicked = false;
mockAnchor.onClick.listen((html.MouseEvent event) => clicked = true);
await file.saveTo('path');
expect(clicked, true);
});
});
});
}
| packages/packages/cross_file/test/x_file_html_test.dart/0 | {'file_path': 'packages/packages/cross_file/test/x_file_html_test.dart', 'repo_id': 'packages', 'token_count': 1718} |
name: example
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
cupertino_icons: ^1.0.5
dynamic_layouts:
path: ../
flutter:
sdk: flutter
dev_dependencies:
flutter_lints: ^2.0.0
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
| packages/packages/dynamic_layouts/example/pubspec.yaml/0 | {'file_path': 'packages/packages/dynamic_layouts/example/pubspec.yaml', 'repo_id': 'packages', 'token_count': 157} |
name: dynamic_layouts
description: Widgets for building dynamic grid layouts.
version: 0.0.1+1
issue_tracker: https://github.com/flutter/flutter/labels/p%3A%20dynamic_layouts
repository: https://github.com/flutter/packages/tree/main/packages/dynamic_layouts
# Temporarily unpublished while in process of releasing full package in multiple stages.
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
| packages/packages/dynamic_layouts/pubspec.yaml/0 | {'file_path': 'packages/packages/dynamic_layouts/pubspec.yaml', 'repo_id': 'packages', 'token_count': 191} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file_selector_android/file_selector_android.dart';
import 'package:file_selector_platform_interface/file_selector_platform_interface.dart';
import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'home_page.dart';
import 'open_image_page.dart';
import 'open_multiple_images_page.dart';
import 'open_text_page.dart';
/// Entry point for integration tests that require espresso.
@pragma('vm:entry-point')
void integrationTestMain() {
enableFlutterDriverExtension();
main();
}
void main() {
FileSelectorPlatform.instance = FileSelectorAndroid();
runApp(const MyApp());
}
/// MyApp is the Main Application.
class MyApp extends StatelessWidget {
/// Default Constructor
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'File Selector Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: const HomePage(),
routes: <String, WidgetBuilder>{
'/open/image': (BuildContext context) => const OpenImagePage(),
'/open/images': (BuildContext context) =>
const OpenMultipleImagesPage(),
'/open/text': (BuildContext context) => const OpenTextPage(),
},
);
}
}
| packages/packages/file_selector/file_selector_android/example/lib/main.dart/0 | {'file_path': 'packages/packages/file_selector/file_selector_android/example/lib/main.dart', 'repo_id': 'packages', 'token_count': 506} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show immutable;
/// A set of allowed XTypes.
@immutable
class XTypeGroup {
/// Creates a new group with the given label and file extensions.
///
/// A group with none of the type options provided indicates that any type is
/// allowed.
const XTypeGroup({
this.label,
List<String>? extensions,
this.mimeTypes,
List<String>? uniformTypeIdentifiers,
this.webWildCards,
@Deprecated('Use uniformTypeIdentifiers instead') List<String>? macUTIs,
}) : _extensions = extensions,
assert(uniformTypeIdentifiers == null || macUTIs == null,
'Only one of uniformTypeIdentifiers or macUTIs can be non-null'),
uniformTypeIdentifiers = uniformTypeIdentifiers ?? macUTIs;
/// The 'name' or reference to this group of types.
final String? label;
/// The MIME types for this group.
final List<String>? mimeTypes;
/// The uniform type identifiers for this group
final List<String>? uniformTypeIdentifiers;
/// The web wild cards for this group (ex: image/*, video/*).
final List<String>? webWildCards;
final List<String>? _extensions;
/// The extensions for this group.
List<String>? get extensions {
return _removeLeadingDots(_extensions);
}
/// Converts this object into a JSON formatted object.
Map<String, dynamic> toJSON() {
return <String, dynamic>{
'label': label,
'extensions': extensions,
'mimeTypes': mimeTypes,
'uniformTypeIdentifiers': uniformTypeIdentifiers,
'webWildCards': webWildCards,
// This is kept for backwards compatibility with anything that was
// relying on it, including implementers of `MethodChannelFileSelector`
// (since toJSON is used in the method channel parameter serialization).
'macUTIs': uniformTypeIdentifiers,
};
}
/// True if this type group should allow any file.
bool get allowsAny {
return (extensions?.isEmpty ?? true) &&
(mimeTypes?.isEmpty ?? true) &&
(uniformTypeIdentifiers?.isEmpty ?? true) &&
(webWildCards?.isEmpty ?? true);
}
/// Returns the list of uniform type identifiers for this group
@Deprecated('Use uniformTypeIdentifiers instead')
List<String>? get macUTIs => uniformTypeIdentifiers;
static List<String>? _removeLeadingDots(List<String>? exts) => exts
?.map((String ext) => ext.startsWith('.') ? ext.substring(1) : ext)
.toList();
}
| packages/packages/file_selector/file_selector_platform_interface/lib/src/types/x_type_group.dart/0 | {'file_path': 'packages/packages/file_selector/file_selector_platform_interface/lib/src/types/x_type_group.dart', 'repo_id': 'packages', 'token_count': 847} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
const Set<TargetPlatform> _desktop = <TargetPlatform>{
TargetPlatform.linux,
TargetPlatform.macOS,
TargetPlatform.windows
};
const Set<TargetPlatform> _mobile = <TargetPlatform>{
TargetPlatform.android,
TargetPlatform.fuchsia,
TargetPlatform.iOS,
};
/// A group of standard breakpoints built according to the material
/// specifications for screen width size.
///
/// See also:
///
/// * [AdaptiveScaffold], which uses some of these Breakpoints as defaults.
class Breakpoints {
/// This is a standard breakpoint that can be used as a fallthrough in the
/// case that no other breakpoint is active.
///
/// It is active from a width of -1 dp to infinity.
static const Breakpoint standard = WidthPlatformBreakpoint(begin: -1);
/// A window whose width is less than 600 dp and greater than 0 dp.
static const Breakpoint small = WidthPlatformBreakpoint(begin: 0, end: 600);
/// A window whose width is greater than 0 dp.
static const Breakpoint smallAndUp = WidthPlatformBreakpoint(begin: 0);
/// A desktop screen whose width is less than 600 dp and greater than 0 dp.
static const Breakpoint smallDesktop =
WidthPlatformBreakpoint(begin: 0, end: 600, platform: _desktop);
/// A mobile screen whose width is less than 600 dp and greater than 0 dp.
static const Breakpoint smallMobile =
WidthPlatformBreakpoint(begin: 0, end: 600, platform: _mobile);
/// A window whose width is between 600 dp and 840 dp.
static const Breakpoint medium =
WidthPlatformBreakpoint(begin: 600, end: 840);
/// A window whose width is greater than 600 dp.
static const Breakpoint mediumAndUp = WidthPlatformBreakpoint(begin: 600);
/// A desktop window whose width is between 600 dp and 840 dp.
static const Breakpoint mediumDesktop =
WidthPlatformBreakpoint(begin: 600, end: 840, platform: _desktop);
/// A mobile window whose width is between 600 dp and 840 dp.
static const Breakpoint mediumMobile =
WidthPlatformBreakpoint(begin: 600, end: 840, platform: _mobile);
/// A window whose width is greater than 840 dp.
static const Breakpoint large = WidthPlatformBreakpoint(begin: 840);
/// A desktop window whose width is greater than 840 dp.
static const Breakpoint largeDesktop =
WidthPlatformBreakpoint(begin: 840, platform: _desktop);
/// A mobile window whose width is greater than 840 dp.
static const Breakpoint largeMobile =
WidthPlatformBreakpoint(begin: 840, platform: _mobile);
}
/// A class that can be used to quickly generate [Breakpoint]s that depend on
/// the screen width and the platform.
class WidthPlatformBreakpoint extends Breakpoint {
/// Returns a const [Breakpoint] with the given constraints.
const WidthPlatformBreakpoint({this.begin, this.end, this.platform});
/// The beginning width dp value. If left null then the [Breakpoint] will have
/// no lower bound.
final double? begin;
/// The end width dp value. If left null then the [Breakpoint] will have no
/// upper bound.
final double? end;
/// A Set of [TargetPlatform]s that the [Breakpoint] will be active on. If
/// left null then it will be active on all platforms.
final Set<TargetPlatform>? platform;
@override
bool isActive(BuildContext context) {
final TargetPlatform host = Theme.of(context).platform;
final bool isRightPlatform = platform?.contains(host) ?? true;
// Null boundaries are unbounded, assign the max/min of their associated
// direction on a number line.
final double width = MediaQuery.of(context).size.width;
final double lowerBound = begin ?? double.negativeInfinity;
final double upperBound = end ?? double.infinity;
return width >= lowerBound && width < upperBound && isRightPlatform;
}
}
/// An interface to define the conditions that distinguish between types of
/// screens.
///
/// Adaptive apps usually display differently depending on the screen type: a
/// compact layout for smaller screens, or a relaxed layout for larger screens.
/// Override this class by defining `isActive` to fetch the screen property
/// (usually `MediaQuery.of`) and return true if the condition is met.
///
/// Breakpoints do not need to be exclusive because they are tested in order
/// with the last Breakpoint active taking priority.
///
/// If the condition is only based on the screen width and/or the device type,
/// use [WidthPlatformBreakpoint] to define the [Breakpoint].
///
/// See also:
///
/// * [SlotLayout.config], which uses breakpoints to dictate the layout of the
/// screen.
abstract class Breakpoint {
/// Returns a const [Breakpoint].
const Breakpoint();
/// A method that returns true based on conditions related to the context of
/// the screen such as MediaQuery.of(context).size.width.
bool isActive(BuildContext context);
}
| packages/packages/flutter_adaptive_scaffold/lib/src/breakpoints.dart/0 | {'file_path': 'packages/packages/flutter_adaptive_scaffold/lib/src/breakpoints.dart', 'repo_id': 'packages', 'token_count': 1354} |
name: flutter_markdown_example
description: Demonstrates how to use the flutter_markdown package.
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
flutter:
sdk: flutter
flutter_markdown:
path: ../
markdown: ^7.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
assets:
- assets/
fonts:
- family: 'Roboto Mono'
fonts:
- asset: fonts/RobotoMono-Regular.ttf
uses-material-design: true
| packages/packages/flutter_markdown/example/pubspec.yaml/0 | {'file_path': 'packages/packages/flutter_markdown/example/pubspec.yaml', 'repo_id': 'packages', 'token_count': 212} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:flutter_test/flutter_test.dart';
import 'utils.dart';
void main() => defineTests();
void defineTests() {
group('Padding builders', () {
testWidgets(
'use paddingBuilders for p',
(WidgetTester tester) async {
const double paddingX = 10.0;
await tester.pumpWidget(
boilerplate(
Markdown(
data: '**line 1**\n\n# H1\n',
paddingBuilders: <String, MarkdownPaddingBuilder>{
'p': CustomPaddingBuilder(paddingX * 1),
'strong': CustomPaddingBuilder(paddingX * 2),
'h1': CustomPaddingBuilder(paddingX * 3),
'img': CustomPaddingBuilder(paddingX * 4),
}),
),
);
final List<Padding> paddings =
tester.widgetList<Padding>(find.byType(Padding)).toList();
expect(paddings.length, 4);
expect(
paddings[0].padding.along(Axis.horizontal) == paddingX * 1 * 2,
true,
);
expect(
paddings[1].padding.along(Axis.horizontal) == paddingX * 3 * 2,
true,
);
expect(
paddings[2].padding.along(Axis.horizontal) == paddingX * 1 * 2,
true,
);
expect(
paddings[3].padding.along(Axis.horizontal) == paddingX * 4 * 2,
true,
);
},
);
});
}
class CustomPaddingBuilder extends MarkdownPaddingBuilder {
CustomPaddingBuilder(this.paddingX);
double paddingX;
@override
EdgeInsets getPadding() {
return EdgeInsets.symmetric(horizontal: paddingX);
}
}
| packages/packages/flutter_markdown/test/padding_test.dart/0 | {'file_path': 'packages/packages/flutter_markdown/test/padding_test.dart', 'repo_id': 'packages', 'token_count': 894} |
test_on: vm
| packages/packages/flutter_migrate/dart_test.yaml/0 | {'file_path': 'packages/packages/flutter_migrate/dart_test.yaml', 'repo_id': 'packages', 'token_count': 6} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:url_launcher/link.dart';
import '../auth.dart';
/// The settings screen.
class SettingsScreen extends StatefulWidget {
/// Creates a [SettingsScreen].
const SettingsScreen({super.key});
@override
State<SettingsScreen> createState() => _SettingsScreenState();
}
class _SettingsScreenState extends State<SettingsScreen> {
@override
Widget build(BuildContext context) => Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Align(
alignment: Alignment.topCenter,
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 400),
child: const Card(
child: Padding(
padding: EdgeInsets.symmetric(vertical: 18, horizontal: 12),
child: SettingsContent(),
),
),
),
),
),
),
);
}
/// The content of a [SettingsScreen].
class SettingsContent extends StatelessWidget {
/// Creates a [SettingsContent].
const SettingsContent({
super.key,
});
@override
Widget build(BuildContext context) => Column(
children: <Widget>[
...<Widget>[
Text(
'Settings',
style: Theme.of(context).textTheme.headlineMedium,
),
ElevatedButton(
onPressed: () {
BookstoreAuthScope.of(context).signOut();
},
child: const Text('Sign out'),
),
Link(
uri: Uri.parse('/book/0'),
builder: (BuildContext context, FollowLink? followLink) =>
TextButton(
onPressed: followLink,
child: const Text('Go directly to /book/0 (Link)'),
),
),
TextButton(
onPressed: () {
context.go('/book/0');
},
child: const Text('Go directly to /book/0 (GoRouter)'),
),
].map<Widget>((Widget w) =>
Padding(padding: const EdgeInsets.all(8), child: w)),
TextButton(
onPressed: () => showDialog<String>(
context: context,
builder: (BuildContext context) => AlertDialog(
title: const Text('Alert!'),
content: const Text('The alert description goes here.'),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.pop(context, 'Cancel'),
child: const Text('Cancel'),
),
TextButton(
onPressed: () => Navigator.pop(context, 'OK'),
child: const Text('OK'),
),
],
),
),
child: const Text('Show Dialog'),
)
],
);
}
| packages/packages/go_router/example/lib/books/src/screens/settings.dart/0 | {'file_path': 'packages/packages/go_router/example/lib/books/src/screens/settings.dart', 'repo_id': 'packages', 'token_count': 1589} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
void main() => runApp(
const RootRestorationScope(restorationId: 'root', child: App()),
);
/// The main app.
class App extends StatefulWidget {
/// Creates an [App].
const App({super.key});
/// The title of the app.
static const String title = 'GoRouter Example: State Restoration';
@override
State<App> createState() => _AppState();
}
class _AppState extends State<App> with RestorationMixin {
@override
String get restorationId => 'wrapper';
@override
void restoreState(RestorationBucket? oldBucket, bool initialRestore) {
// Implement restoreState for your app
}
@override
Widget build(BuildContext context) => MaterialApp.router(
routerConfig: _router,
title: App.title,
restorationScopeId: 'app',
);
final GoRouter _router = GoRouter(
routes: <GoRoute>[
// restorationId set for the route automatically
GoRoute(
path: '/',
builder: (BuildContext context, GoRouterState state) =>
const Page1Screen(),
),
// restorationId set for the route automatically
GoRoute(
path: '/page2',
builder: (BuildContext context, GoRouterState state) =>
const Page2Screen(),
),
],
restorationScopeId: 'router',
);
}
/// The screen of the first page.
class Page1Screen extends StatelessWidget {
/// Creates a [Page1Screen].
const Page1Screen({super.key});
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(title: const Text(App.title)),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ElevatedButton(
onPressed: () => context.go('/page2'),
child: const Text('Go to page 2'),
),
],
),
),
);
}
/// The screen of the second page.
class Page2Screen extends StatelessWidget {
/// Creates a [Page2Screen].
const Page2Screen({super.key});
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(title: const Text(App.title)),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ElevatedButton(
onPressed: () => context.go('/'),
child: const Text('Go to home page'),
),
],
),
),
);
}
| packages/packages/go_router/example/lib/others/state_restoration.dart/0 | {'file_path': 'packages/packages/go_router/example/lib/others/state_restoration.dart', 'repo_id': 'packages', 'token_count': 1112} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import '../router.dart';
/// Dart extension to add navigation function to a BuildContext object, e.g.
/// context.go('/');
extension GoRouterHelper on BuildContext {
/// Get a location from route name and parameters.
///
/// This method can't be called during redirects.
String namedLocation(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
}) =>
GoRouter.of(this).namedLocation(name,
pathParameters: pathParameters, queryParameters: queryParameters);
/// Navigate to a location.
void go(String location, {Object? extra}) =>
GoRouter.of(this).go(location, extra: extra);
/// Navigate to a named route.
void goNamed(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
}) =>
GoRouter.of(this).goNamed(
name,
pathParameters: pathParameters,
queryParameters: queryParameters,
extra: extra,
);
/// Push a location onto the page stack.
///
/// See also:
/// * [pushReplacement] which replaces the top-most page of the page stack and
/// always uses a new page key.
/// * [replace] which replaces the top-most page of the page stack but treats
/// it as the same page. The page key will be reused. This will preserve the
/// state and not run any page animation.
Future<T?> push<T extends Object?>(String location, {Object? extra}) =>
GoRouter.of(this).push<T>(location, extra: extra);
/// Navigate to a named route onto the page stack.
Future<T?> pushNamed<T extends Object?>(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
}) =>
GoRouter.of(this).pushNamed<T>(
name,
pathParameters: pathParameters,
queryParameters: queryParameters,
extra: extra,
);
/// Returns `true` if there is more than 1 page on the stack.
bool canPop() => GoRouter.of(this).canPop();
/// Pop the top page off the Navigator's page stack by calling
/// [Navigator.pop].
void pop<T extends Object?>([T? result]) => GoRouter.of(this).pop(result);
/// Replaces the top-most page of the page stack with the given URL location
/// w/ optional query parameters, e.g. `/family/f2/person/p1?color=blue`.
///
/// See also:
/// * [go] which navigates to the location.
/// * [push] which pushes the given location onto the page stack.
/// * [replace] which replaces the top-most page of the page stack but treats
/// it as the same page. The page key will be reused. This will preserve the
/// state and not run any page animation.
void pushReplacement(String location, {Object? extra}) =>
GoRouter.of(this).pushReplacement(location, extra: extra);
/// Replaces the top-most page of the page stack with the named route w/
/// optional parameters, e.g. `name='person', pathParameters={'fid': 'f2', 'pid':
/// 'p1'}`.
///
/// See also:
/// * [goNamed] which navigates a named route.
/// * [pushNamed] which pushes a named route onto the page stack.
void pushReplacementNamed(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
}) =>
GoRouter.of(this).pushReplacementNamed(
name,
pathParameters: pathParameters,
queryParameters: queryParameters,
extra: extra,
);
/// Replaces the top-most page of the page stack with the given one but treats
/// it as the same page.
///
/// The page key will be reused. This will preserve the state and not run any
/// page animation.
///
/// See also:
/// * [push] which pushes the given location onto the page stack.
/// * [pushReplacement] which replaces the top-most page of the page stack but
/// always uses a new page key.
void replace(String location, {Object? extra}) =>
GoRouter.of(this).replace<Object?>(location, extra: extra);
/// Replaces the top-most page with the named route and optional parameters,
/// preserving the page key.
///
/// This will preserve the state and not run any page animation. Optional
/// parameters can be provided to the named route, e.g. `name='person',
/// pathParameters={'fid': 'f2', 'pid': 'p1'}`.
///
/// See also:
/// * [pushNamed] which pushes the given location onto the page stack.
/// * [pushReplacementNamed] which replaces the top-most page of the page
/// stack but always uses a new page key.
void replaceNamed(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
}) =>
GoRouter.of(this).replaceNamed<Object?>(name,
pathParameters: pathParameters,
queryParameters: queryParameters,
extra: extra);
}
| packages/packages/go_router/lib/src/misc/extensions.dart/0 | {'file_path': 'packages/packages/go_router/lib/src/misc/extensions.dart', 'repo_id': 'packages', 'token_count': 1726} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:go_router/go_router.dart';
void main() {
testWidgets('CustomTransitionPage builds its child using transitionsBuilder',
(WidgetTester tester) async {
const HomeScreen child = HomeScreen();
final CustomTransitionPage<void> transition = CustomTransitionPage<void>(
transitionsBuilder: expectAsync4((_, __, ___, Widget child) => child),
child: child,
);
final GoRouter router = GoRouter(
routes: <GoRoute>[
GoRoute(
path: '/',
pageBuilder: (_, __) => transition,
),
],
);
await tester.pumpWidget(
MaterialApp.router(
routerConfig: router,
title: 'GoRouter Example',
),
);
expect(find.byWidget(child), findsOneWidget);
});
testWidgets('NoTransitionPage does not apply any transition',
(WidgetTester tester) async {
final ValueNotifier<bool> showHomeValueNotifier =
ValueNotifier<bool>(false);
await tester.pumpWidget(
MaterialApp(
home: ValueListenableBuilder<bool>(
valueListenable: showHomeValueNotifier,
builder: (_, bool showHome, __) {
return Navigator(
pages: <Page<void>>[
const NoTransitionPage<void>(
child: LoginScreen(),
),
if (showHome)
const NoTransitionPage<void>(
child: HomeScreen(),
),
],
onPopPage: (Route<dynamic> route, dynamic result) {
return route.didPop(result);
},
);
},
),
),
);
final Finder homeScreenFinder = find.byType(HomeScreen);
expect(homeScreenFinder, findsNothing);
showHomeValueNotifier.value = true;
await tester.pump();
expect(homeScreenFinder, findsOneWidget);
await tester.pumpAndSettle();
showHomeValueNotifier.value = false;
await tester.pump();
expect(homeScreenFinder, findsNothing);
await tester.pumpAndSettle();
});
testWidgets('NoTransitionPage does not apply any reverse transition',
(WidgetTester tester) async {
final ValueNotifier<bool> showHomeValueNotifier = ValueNotifier<bool>(true);
await tester.pumpWidget(
MaterialApp(
home: ValueListenableBuilder<bool>(
valueListenable: showHomeValueNotifier,
builder: (_, bool showHome, __) {
return Navigator(
pages: <Page<void>>[
const NoTransitionPage<void>(
child: LoginScreen(),
),
if (showHome)
const NoTransitionPage<void>(
child: HomeScreen(),
),
],
onPopPage: (Route<dynamic> route, dynamic result) {
return route.didPop(result);
},
);
},
),
),
);
final Finder homeScreenFinder = find.byType(HomeScreen);
showHomeValueNotifier.value = false;
await tester.pump();
expect(homeScreenFinder, findsNothing);
});
testWidgets('Dismiss a screen by tapping a modal barrier',
(WidgetTester tester) async {
const ValueKey<String> homeKey = ValueKey<String>('home');
const ValueKey<String> dismissibleModalKey =
ValueKey<String>('dismissibleModal');
final GoRouter router = GoRouter(
routes: <GoRoute>[
GoRoute(
path: '/',
builder: (_, __) => const HomeScreen(key: homeKey),
),
GoRoute(
path: '/dismissible-modal',
pageBuilder: (_, GoRouterState state) => CustomTransitionPage<void>(
key: state.pageKey,
barrierDismissible: true,
transitionsBuilder: (_, __, ___, Widget child) => child,
child: const DismissibleModal(key: dismissibleModalKey),
),
),
],
);
await tester.pumpWidget(MaterialApp.router(routerConfig: router));
expect(find.byKey(homeKey), findsOneWidget);
router.push('/dismissible-modal');
await tester.pumpAndSettle();
expect(find.byKey(dismissibleModalKey), findsOneWidget);
await tester.tapAt(const Offset(50, 50));
await tester.pumpAndSettle();
expect(find.byKey(homeKey), findsOneWidget);
});
testWidgets('transitionDuration and reverseTransitionDuration is different',
(WidgetTester tester) async {
const ValueKey<String> homeKey = ValueKey<String>('home');
const ValueKey<String> loginKey = ValueKey<String>('login');
const Duration transitionDuration = Duration(milliseconds: 50);
const Duration reverseTransitionDuration = Duration(milliseconds: 500);
final GoRouter router = GoRouter(
routes: <GoRoute>[
GoRoute(
path: '/',
builder: (_, __) => const HomeScreen(key: homeKey),
),
GoRoute(
path: '/login',
pageBuilder: (_, GoRouterState state) => CustomTransitionPage<void>(
key: state.pageKey,
transitionDuration: transitionDuration,
reverseTransitionDuration: reverseTransitionDuration,
transitionsBuilder:
(_, Animation<double> animation, ___, Widget child) =>
FadeTransition(opacity: animation, child: child),
child: const LoginScreen(key: loginKey),
),
),
],
);
await tester.pumpWidget(MaterialApp.router(routerConfig: router));
expect(find.byKey(homeKey), findsOneWidget);
router.push('/login');
final int pushingPumped = await tester.pumpAndSettle();
expect(find.byKey(loginKey), findsOneWidget);
router.pop();
final int poppingPumped = await tester.pumpAndSettle();
expect(find.byKey(homeKey), findsOneWidget);
expect(pushingPumped != poppingPumped, true);
});
}
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: Text('HomeScreen'),
),
);
}
}
class LoginScreen extends StatelessWidget {
const LoginScreen({super.key});
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: Text('LoginScreen'),
),
);
}
}
class DismissibleModal extends StatelessWidget {
const DismissibleModal({super.key});
@override
Widget build(BuildContext context) {
return const SizedBox(
width: 200,
height: 200,
child: Center(child: Text('Dismissible Modal')),
);
}
}
| packages/packages/go_router/test/custom_transition_page_test.dart/0 | {'file_path': 'packages/packages/go_router/test/custom_transition_page_test.dart', 'repo_id': 'packages', 'token_count': 2912} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:go_router/src/pages/material.dart';
import 'helpers/error_screen_helpers.dart';
void main() {
group('isMaterialApp', () {
testWidgets('returns [true] when MaterialApp is present',
(WidgetTester tester) async {
final GlobalKey<_DummyStatefulWidgetState> key =
GlobalKey<_DummyStatefulWidgetState>();
await tester.pumpWidget(
MaterialApp(
home: DummyStatefulWidget(key: key),
),
);
final bool isMaterial = isMaterialApp(key.currentContext! as Element);
expect(isMaterial, true);
});
testWidgets('returns [false] when CupertinoApp is present',
(WidgetTester tester) async {
final GlobalKey<_DummyStatefulWidgetState> key =
GlobalKey<_DummyStatefulWidgetState>();
await tester.pumpWidget(
CupertinoApp(
home: DummyStatefulWidget(key: key),
),
);
final bool isMaterial = isMaterialApp(key.currentContext! as Element);
expect(isMaterial, false);
});
});
test('pageBuilderForMaterialApp creates a [MaterialPage] accordingly', () {
final UniqueKey key = UniqueKey();
const String name = 'name';
const String arguments = 'arguments';
const String restorationId = 'restorationId';
const DummyStatefulWidget child = DummyStatefulWidget();
final MaterialPage<void> page = pageBuilderForMaterialApp(
key: key,
name: name,
arguments: arguments,
restorationId: restorationId,
child: child,
);
expect(page.key, key);
expect(page.name, name);
expect(page.arguments, arguments);
expect(page.restorationId, restorationId);
expect(page.child, child);
});
group('GoRouterMaterialErrorScreen', () {
testWidgets(
'shows "page not found" by default',
testPageNotFound(
widget: const MaterialApp(
home: MaterialErrorScreen(null),
),
),
);
final Exception exception = Exception('Something went wrong!');
testWidgets(
'shows the exception message when provided',
testPageShowsExceptionMessage(
exception: exception,
widget: MaterialApp(
home: MaterialErrorScreen(exception),
),
),
);
testWidgets(
'clicking the TextButton should redirect to /',
testClickingTheButtonRedirectsToRoot(
buttonFinder: find.byType(TextButton),
widget: const MaterialApp(
home: MaterialErrorScreen(null),
),
),
);
});
}
class DummyStatefulWidget extends StatefulWidget {
const DummyStatefulWidget({super.key});
@override
State<DummyStatefulWidget> createState() => _DummyStatefulWidgetState();
}
class _DummyStatefulWidgetState extends State<DummyStatefulWidget> {
@override
Widget build(BuildContext context) => Container();
}
| packages/packages/go_router/test/material_test.dart/0 | {'file_path': 'packages/packages/go_router/test/material_test.dart', 'repo_id': 'packages', 'token_count': 1175} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:math';
import 'package:flutter/foundation.dart';
enum PersonDetails {
hobbies,
favoriteFood,
favoriteSport,
}
enum SportDetails {
volleyball(
imageUrl: '/sportdetails/url/volleyball.jpg',
playerPerTeam: 6,
accessory: null,
hasNet: true,
),
football(
imageUrl: '/sportdetails/url/Football.jpg',
playerPerTeam: 11,
accessory: null,
hasNet: true,
),
tennis(
imageUrl: '/sportdetails/url/tennis.jpg',
playerPerTeam: 2,
accessory: 'Rackets',
hasNet: true,
),
hockey(
imageUrl: '/sportdetails/url/hockey.jpg',
playerPerTeam: 6,
accessory: 'Hockey sticks',
hasNet: true,
),
;
const SportDetails({
required this.accessory,
required this.hasNet,
required this.imageUrl,
required this.playerPerTeam,
});
final String imageUrl;
final int playerPerTeam;
final String? accessory;
final bool hasNet;
}
/// An enum used only in iterables.
enum CookingRecipe {
burger,
pizza,
tacos,
}
/// sample Person class
class Person {
Person({
required this.id,
required this.name,
required this.age,
this.details = const <PersonDetails, String>{},
});
final int id;
final String name;
final int age;
final Map<PersonDetails, String> details;
}
class Family {
Family({required this.id, required this.name, required this.people});
final String id;
final String name;
final List<Person> people;
Person person(int pid) => people.singleWhere(
(Person p) => p.id == pid,
orElse: () => throw Exception('unknown person $pid for family $id'),
);
}
final List<Family> familyData = <Family>[
Family(
id: 'f1',
name: 'Sells',
people: <Person>[
Person(id: 1, name: 'Chris', age: 52, details: <PersonDetails, String>{
PersonDetails.hobbies: 'coding',
PersonDetails.favoriteFood: 'all of the above',
PersonDetails.favoriteSport: 'football?'
}),
Person(id: 2, name: 'John', age: 27),
Person(id: 3, name: 'Tom', age: 26),
],
),
Family(
id: 'f2',
name: 'Addams',
people: <Person>[
Person(id: 1, name: 'Gomez', age: 55),
Person(id: 2, name: 'Morticia', age: 50),
Person(id: 3, name: 'Pugsley', age: 10),
Person(id: 4, name: 'Wednesday', age: 17),
],
),
Family(
id: 'f3',
name: 'Hunting',
people: <Person>[
Person(id: 1, name: 'Mom', age: 54),
Person(id: 2, name: 'Dad', age: 55),
Person(id: 3, name: 'Will', age: 20),
Person(id: 4, name: 'Marky', age: 21),
Person(id: 5, name: 'Ricky', age: 22),
Person(id: 6, name: 'Danny', age: 23),
Person(id: 7, name: 'Terry', age: 24),
Person(id: 8, name: 'Mikey', age: 25),
Person(id: 9, name: 'Davey', age: 26),
Person(id: 10, name: 'Timmy', age: 27),
Person(id: 11, name: 'Tommy', age: 28),
Person(id: 12, name: 'Joey', age: 29),
Person(id: 13, name: 'Robby', age: 30),
Person(id: 14, name: 'Johnny', age: 31),
Person(id: 15, name: 'Brian', age: 32),
],
),
];
Family familyById(String fid) => familyData.family(fid);
extension on List<Family> {
Family family(String fid) => singleWhere(
(Family f) => f.id == fid,
orElse: () => throw Exception('unknown family $fid'),
);
}
class LoginInfo extends ChangeNotifier {
String _userName = '';
String get userName => _userName;
bool get loggedIn => _userName.isNotEmpty;
void login(String userName) {
_userName = userName;
notifyListeners();
}
void logout() {
_userName = '';
notifyListeners();
}
}
class FamilyPerson {
FamilyPerson({required this.family, required this.person});
final Family family;
final Person person;
}
class Repository {
static final Random rnd = Random();
Future<List<Family>> getFamilies() async {
// simulate network delay
await Future<void>.delayed(const Duration(seconds: 1));
// simulate error
// if (rnd.nextBool()) throw Exception('error fetching families');
// return data "fetched over the network"
return familyData;
}
Future<Family> getFamily(String fid) async =>
(await getFamilies()).family(fid);
Future<FamilyPerson> getPerson(String fid, int pid) async {
final Family family = await getFamily(fid);
return FamilyPerson(family: family, person: family.person(pid));
}
}
| packages/packages/go_router_builder/example/lib/shared/data.dart/0 | {'file_path': 'packages/packages/go_router_builder/example/lib/shared/data.dart', 'repo_id': 'packages', 'token_count': 1764} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// the following ignore is needed for downgraded analyzer (casts to JSObject).
// ignore_for_file: unnecessary_cast
import 'dart:async';
import 'dart:js_interop';
import 'dart:js_interop_unsafe';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_identity_services_web/id.dart';
import 'package:google_identity_services_web/oauth2.dart';
import 'package:web/web.dart' as web;
/// Function that lets us expect that a JSObject has a [name] property that matches [matcher].
///
/// Use [createExpectConfigValue] to create one of this functions associated with
/// a specific [JSObject].
typedef ExpectConfigValueFn = void Function(String name, Object? matcher);
/// Creates a [ExpectConfigValueFn] for the `config` [JSObject].
ExpectConfigValueFn createExpectConfigValue(JSObject config) {
return (String name, Object? matcher) {
expect(config[name], matcher, reason: name);
};
}
/// A matcher that checks if: value typeof [thing] == true (in JS).
///
/// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
Matcher isAJs(String thing) => isA<JSAny?>()
.having((JSAny? p0) => p0.typeofEquals(thing), 'typeof "$thing"', isTrue);
/// Installs mock-gis.js in the page.
/// Returns a future that completes when the 'load' event of the script fires.
Future<void> installGisMock() {
final Completer<void> completer = Completer<void>();
final web.HTMLScriptElement script =
web.document.createElement('script') as web.HTMLScriptElement;
script.src = 'mock-gis.js';
script.type = 'module';
script.addEventListener(
'load',
(JSAny? _) {
completer.complete();
}.toJS);
web.document.head!.appendChild(script);
return completer.future;
}
/// Fakes authorization with the given scopes.
Future<TokenResponse> fakeAuthZWithScopes(List<String> scopes) {
final StreamController<TokenResponse> controller =
StreamController<TokenResponse>();
final TokenClient client = oauth2.initTokenClient(TokenClientConfig(
client_id: 'for-tests',
callback: controller.add,
scope: scopes,
));
setMockTokenResponse(client, 'some-non-null-auth-token-value');
client.requestAccessToken();
return controller.stream.first;
}
/// Allows calling a `setMockTokenResponse` method (added by mock-gis.js)
extension on TokenClient {
external void setMockTokenResponse(JSString? token);
}
/// Sets a mock TokenResponse value in a [client].
void setMockTokenResponse(TokenClient client, [String? authToken]) {
client.setMockTokenResponse(authToken?.toJS);
}
/// Allows calling a `setMockCredentialResponse` method (set by mock-gis.js)
extension on GoogleAccountsId {
external void setMockCredentialResponse(
JSString credential,
JSString select_by, //ignore: non_constant_identifier_names
);
}
/// Sets a mock credential response in `google.accounts.id`.
void setMockCredentialResponse([String value = 'default_value']) {
_getGoogleAccountsId().setMockCredentialResponse(value.toJS, 'auto'.toJS);
}
GoogleAccountsId _getGoogleAccountsId() {
return _getDeepProperty<GoogleAccountsId>(
web.window as JSObject, 'google.accounts.id');
}
// Attempts to retrieve a deeply nested property from a jsObject (or die tryin')
T _getDeepProperty<T>(JSObject jsObject, String deepProperty) {
final List<String> properties = deepProperty.split('.');
return properties.fold<JSObject?>(
jsObject,
(JSObject? jsObj, String prop) => jsObj?[prop] as JSObject?,
) as T;
}
| packages/packages/google_identity_services_web/example/integration_test/utils.dart/0 | {'file_path': 'packages/packages/google_identity_services_web/example/integration_test/utils.dart', 'repo_id': 'packages', 'token_count': 1194} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains shared definitions used across multiple test scenarios.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
/// Initial map center
const LatLng kInitialMapCenter = LatLng(0, 0);
/// Initial zoom level
const double kInitialZoomLevel = 5;
/// Initial camera position
const CameraPosition kInitialCameraPosition =
CameraPosition(target: kInitialMapCenter, zoom: kInitialZoomLevel);
// Dummy map ID
const String kCloudMapId = '000000000000000'; // Dummy map ID.
/// True if the test is running in an iOS device
final bool isIOS = defaultTargetPlatform == TargetPlatform.iOS;
/// True if the test is running in an Android device
final bool isAndroid =
defaultTargetPlatform == TargetPlatform.android && !kIsWeb;
/// True if the test is running in a web browser.
const bool isWeb = kIsWeb;
/// Pumps a [map] widget in [tester] of a certain [size], then waits until it settles.
Future<void> pumpMap(WidgetTester tester, GoogleMap map,
[Size size = const Size.square(200)]) async {
await tester.pumpWidget(wrapMap(map, size));
await tester.pumpAndSettle();
}
/// Wraps a [map] in a bunch of widgets so it renders in all platforms.
///
/// An optional [size] can be passed.
Widget wrapMap(GoogleMap map, [Size size = const Size.square(200)]) {
return MaterialApp(
home: Scaffold(
body: Center(
child: SizedBox.fromSize(
size: size,
child: map,
),
),
),
);
}
| packages/packages/google_maps_flutter/google_maps_flutter/example/integration_test/src/shared.dart/0 | {'file_path': 'packages/packages/google_maps_flutter/google_maps_flutter/example/integration_test/src/shared.dart', 'repo_id': 'packages', 'token_count': 562} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show immutable, objectRuntimeType;
/// Represents a point coordinate in the [GoogleMap]'s view.
///
/// The screen location is specified in screen pixels (not display pixels) relative
/// to the top left of the map, not top left of the whole screen. (x, y) = (0, 0)
/// corresponds to top-left of the [GoogleMap] not the whole screen.
@immutable
class ScreenCoordinate {
/// Creates an immutable representation of a point coordinate in the [GoogleMap]'s view.
const ScreenCoordinate({
required this.x,
required this.y,
});
/// Represents the number of pixels from the left of the [GoogleMap].
final int x;
/// Represents the number of pixels from the top of the [GoogleMap].
final int y;
/// Converts this object to something serializable in JSON.
Object toJson() {
return <String, int>{
'x': x,
'y': y,
};
}
@override
String toString() => '${objectRuntimeType(this, 'ScreenCoordinate')}($x, $y)';
@override
bool operator ==(Object other) {
return other is ScreenCoordinate && other.x == x && other.y == y;
}
@override
int get hashCode => Object.hash(x, y);
}
| packages/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/screen_coordinate.dart/0 | {'file_path': 'packages/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/screen_coordinate.dart', 'repo_id': 'packages', 'token_count': 410} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
dartOut: 'lib/src/messages.g.dart',
javaOut:
'android/src/main/java/io/flutter/plugins/googlesignin/Messages.java',
javaOptions: JavaOptions(package: 'io.flutter.plugins.googlesignin'),
copyrightHeader: 'pigeons/copyright.txt',
))
/// Pigeon version of SignInOption.
enum SignInType {
/// Default configuration.
standard,
/// Recommended configuration for game sign in.
games,
}
/// Pigeon version of SignInInitParams.
///
/// See SignInInitParams for details.
class InitParams {
/// The parameters to use when initializing the sign in process.
const InitParams({
this.scopes = const <String>[],
this.signInType = SignInType.standard,
this.hostedDomain,
this.clientId,
this.serverClientId,
this.forceCodeForRefreshToken = false,
});
// TODO(stuartmorgan): Make the generic type non-nullable once supported.
// https://github.com/flutter/flutter/issues/97848
// The Java code treats the values as non-nullable.
final List<String?> scopes;
final SignInType signInType;
final String? hostedDomain;
final String? clientId;
final String? serverClientId;
final bool forceCodeForRefreshToken;
}
/// Pigeon version of GoogleSignInUserData.
///
/// See GoogleSignInUserData for details.
class UserData {
UserData({
required this.email,
required this.id,
this.displayName,
this.photoUrl,
this.idToken,
this.serverAuthCode,
});
final String? displayName;
final String email;
final String id;
final String? photoUrl;
final String? idToken;
final String? serverAuthCode;
}
@HostApi()
abstract class GoogleSignInApi {
/// Initializes a sign in request with the given parameters.
void init(InitParams params);
/// Starts a silent sign in.
@async
UserData signInSilently();
/// Starts a sign in with user interaction.
@async
UserData signIn();
/// Requests the access token for the current sign in.
@async
String getAccessToken(String email, bool shouldRecoverAuth);
/// Signs out the current user.
@async
void signOut();
/// Revokes scope grants to the application.
@async
void disconnect();
/// Returns whether the user is currently signed in.
bool isSignedIn();
/// Clears the authentication caching for the given token, requiring a
/// new sign in.
@async
void clearAuthCache(String token);
/// Requests access to the given scopes.
@async
bool requestScopes(List<String> scopes);
}
| packages/packages/google_sign_in/google_sign_in_android/pigeons/messages.dart/0 | {'file_path': 'packages/packages/google_sign_in/google_sign_in_android/pigeons/messages.dart', 'repo_id': 'packages', 'token_count': 855} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import '../../image_picker_platform_interface.dart';
const MethodChannel _channel = MethodChannel('plugins.flutter.io/image_picker');
/// An implementation of [ImagePickerPlatform] that uses method channels.
class MethodChannelImagePicker extends ImagePickerPlatform {
/// The MethodChannel that is being used by this implementation of the plugin.
@visibleForTesting
MethodChannel get channel => _channel;
@override
Future<PickedFile?> pickImage({
required ImageSource source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
CameraDevice preferredCameraDevice = CameraDevice.rear,
}) async {
final String? path = await _getImagePath(
source: source,
maxWidth: maxWidth,
maxHeight: maxHeight,
imageQuality: imageQuality,
preferredCameraDevice: preferredCameraDevice,
);
return path != null ? PickedFile(path) : null;
}
@override
Future<List<PickedFile>?> pickMultiImage({
double? maxWidth,
double? maxHeight,
int? imageQuality,
}) async {
final List<dynamic>? paths = await _getMultiImagePath(
maxWidth: maxWidth,
maxHeight: maxHeight,
imageQuality: imageQuality,
);
if (paths == null) {
return null;
}
return paths.map((dynamic path) => PickedFile(path as String)).toList();
}
Future<List<dynamic>?> _getMultiImagePath({
double? maxWidth,
double? maxHeight,
int? imageQuality,
bool requestFullMetadata = true,
}) {
if (imageQuality != null && (imageQuality < 0 || imageQuality > 100)) {
throw ArgumentError.value(
imageQuality, 'imageQuality', 'must be between 0 and 100');
}
if (maxWidth != null && maxWidth < 0) {
throw ArgumentError.value(maxWidth, 'maxWidth', 'cannot be negative');
}
if (maxHeight != null && maxHeight < 0) {
throw ArgumentError.value(maxHeight, 'maxHeight', 'cannot be negative');
}
return _channel.invokeMethod<List<dynamic>?>(
'pickMultiImage',
<String, dynamic>{
'maxWidth': maxWidth,
'maxHeight': maxHeight,
'imageQuality': imageQuality,
'requestFullMetadata': requestFullMetadata,
},
);
}
Future<String?> _getImagePath({
required ImageSource source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
CameraDevice preferredCameraDevice = CameraDevice.rear,
bool requestFullMetadata = true,
}) {
if (imageQuality != null && (imageQuality < 0 || imageQuality > 100)) {
throw ArgumentError.value(
imageQuality, 'imageQuality', 'must be between 0 and 100');
}
if (maxWidth != null && maxWidth < 0) {
throw ArgumentError.value(maxWidth, 'maxWidth', 'cannot be negative');
}
if (maxHeight != null && maxHeight < 0) {
throw ArgumentError.value(maxHeight, 'maxHeight', 'cannot be negative');
}
return _channel.invokeMethod<String>(
'pickImage',
<String, dynamic>{
'source': source.index,
'maxWidth': maxWidth,
'maxHeight': maxHeight,
'imageQuality': imageQuality,
'cameraDevice': preferredCameraDevice.index,
'requestFullMetadata': requestFullMetadata,
},
);
}
@override
Future<PickedFile?> pickVideo({
required ImageSource source,
CameraDevice preferredCameraDevice = CameraDevice.rear,
Duration? maxDuration,
}) async {
final String? path = await _getVideoPath(
source: source,
maxDuration: maxDuration,
preferredCameraDevice: preferredCameraDevice,
);
return path != null ? PickedFile(path) : null;
}
Future<String?> _getVideoPath({
required ImageSource source,
CameraDevice preferredCameraDevice = CameraDevice.rear,
Duration? maxDuration,
}) {
return _channel.invokeMethod<String>(
'pickVideo',
<String, dynamic>{
'source': source.index,
'maxDuration': maxDuration?.inSeconds,
'cameraDevice': preferredCameraDevice.index
},
);
}
@override
Future<LostData> retrieveLostData() async {
final Map<String, dynamic>? result =
await _channel.invokeMapMethod<String, dynamic>('retrieve');
if (result == null) {
return LostData.empty();
}
assert(result.containsKey('path') != result.containsKey('errorCode'));
final String? type = result['type'] as String?;
assert(type == kTypeImage || type == kTypeVideo);
RetrieveType? retrieveType;
if (type == kTypeImage) {
retrieveType = RetrieveType.image;
} else if (type == kTypeVideo) {
retrieveType = RetrieveType.video;
}
PlatformException? exception;
if (result.containsKey('errorCode')) {
exception = PlatformException(
code: result['errorCode']! as String,
message: result['errorMessage'] as String?);
}
final String? path = result['path'] as String?;
return LostData(
file: path != null ? PickedFile(path) : null,
exception: exception,
type: retrieveType,
);
}
@override
Future<XFile?> getImage({
required ImageSource source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
CameraDevice preferredCameraDevice = CameraDevice.rear,
}) async {
final String? path = await _getImagePath(
source: source,
maxWidth: maxWidth,
maxHeight: maxHeight,
imageQuality: imageQuality,
preferredCameraDevice: preferredCameraDevice,
);
return path != null ? XFile(path) : null;
}
@override
Future<XFile?> getImageFromSource({
required ImageSource source,
ImagePickerOptions options = const ImagePickerOptions(),
}) async {
final String? path = await _getImagePath(
source: source,
maxHeight: options.maxHeight,
maxWidth: options.maxWidth,
imageQuality: options.imageQuality,
preferredCameraDevice: options.preferredCameraDevice,
requestFullMetadata: options.requestFullMetadata,
);
return path != null ? XFile(path) : null;
}
@override
Future<List<XFile>?> getMultiImage({
double? maxWidth,
double? maxHeight,
int? imageQuality,
}) async {
final List<dynamic>? paths = await _getMultiImagePath(
maxWidth: maxWidth,
maxHeight: maxHeight,
imageQuality: imageQuality,
);
if (paths == null) {
return null;
}
return paths.map((dynamic path) => XFile(path as String)).toList();
}
@override
Future<List<XFile>> getMultiImageWithOptions({
MultiImagePickerOptions options = const MultiImagePickerOptions(),
}) async {
final List<dynamic>? paths = await _getMultiImagePath(
maxWidth: options.imageOptions.maxWidth,
maxHeight: options.imageOptions.maxHeight,
imageQuality: options.imageOptions.imageQuality,
requestFullMetadata: options.imageOptions.requestFullMetadata,
);
if (paths == null) {
return <XFile>[];
}
return paths.map((dynamic path) => XFile(path as String)).toList();
}
@override
Future<List<XFile>> getMedia({
required MediaOptions options,
}) async {
final ImageOptions imageOptions = options.imageOptions;
final Map<String, dynamic> args = <String, dynamic>{
'maxImageWidth': imageOptions.maxWidth,
'maxImageHeight': imageOptions.maxHeight,
'imageQuality': imageOptions.imageQuality,
'allowMultiple': options.allowMultiple,
};
final List<XFile>? paths = await _channel
.invokeMethod<List<dynamic>?>(
'pickMedia',
args,
)
.then((List<dynamic>? paths) =>
paths?.map((dynamic path) => XFile(path as String)).toList());
return paths ?? <XFile>[];
}
@override
Future<XFile?> getVideo({
required ImageSource source,
CameraDevice preferredCameraDevice = CameraDevice.rear,
Duration? maxDuration,
}) async {
final String? path = await _getVideoPath(
source: source,
maxDuration: maxDuration,
preferredCameraDevice: preferredCameraDevice,
);
return path != null ? XFile(path) : null;
}
@override
Future<LostDataResponse> getLostData() async {
List<XFile>? pickedFileList;
final Map<String, dynamic>? result =
await _channel.invokeMapMethod<String, dynamic>('retrieve');
if (result == null) {
return LostDataResponse.empty();
}
assert(result.containsKey('path') != result.containsKey('errorCode'));
final String? type = result['type'] as String?;
assert(
type == kTypeImage || type == kTypeVideo || type == kTypeMedia,
);
RetrieveType? retrieveType;
switch (type) {
case kTypeImage:
retrieveType = RetrieveType.image;
case kTypeVideo:
retrieveType = RetrieveType.video;
case kTypeMedia:
retrieveType = RetrieveType.media;
}
PlatformException? exception;
if (result.containsKey('errorCode')) {
exception = PlatformException(
code: result['errorCode']! as String,
message: result['errorMessage'] as String?);
}
final String? path = result['path'] as String?;
final List<String>? pathList =
(result['pathList'] as List<dynamic>?)?.cast<String>();
if (pathList != null) {
pickedFileList = <XFile>[];
for (final String path in pathList) {
pickedFileList.add(XFile(path));
}
}
return LostDataResponse(
file: path != null ? XFile(path) : null,
exception: exception,
type: retrieveType,
files: pickedFileList,
);
}
}
| packages/packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart/0 | {'file_path': 'packages/packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart', 'repo_id': 'packages', 'token_count': 3599} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The type of the retrieved data in a [LostDataResponse].
enum RetrieveType {
/// A static picture. See [ImagePicker.pickImage].
image,
/// A video. See [ImagePicker.pickVideo].
video,
/// Either a video or a static picture. See [ImagePicker.pickMedia].
media,
}
| packages/packages/image_picker/image_picker_platform_interface/lib/src/types/retrieve_type.dart/0 | {'file_path': 'packages/packages/image_picker/image_picker_platform_interface/lib/src/types/retrieve_type.dart', 'repo_id': 'packages', 'token_count': 128} |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'one_time_purchase_offer_details_wrapper.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
OneTimePurchaseOfferDetailsWrapper _$OneTimePurchaseOfferDetailsWrapperFromJson(
Map json) =>
OneTimePurchaseOfferDetailsWrapper(
formattedPrice: json['formattedPrice'] as String? ?? '',
priceAmountMicros: json['priceAmountMicros'] as int? ?? 0,
priceCurrencyCode: json['priceCurrencyCode'] as String? ?? '',
);
| packages/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/one_time_purchase_offer_details_wrapper.g.dart/0 | {'file_path': 'packages/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/one_time_purchase_offer_details_wrapper.g.dart', 'repo_id': 'packages', 'token_count': 180} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Exception codes for `PlatformException` returned by
// `authenticate`.
/// Indicates that the user has not yet configured a passcode (iOS) or
/// PIN/pattern/password (Android) on the device.
const String passcodeNotSet = 'PasscodeNotSet';
/// Indicates the user has not enrolled any biometrics on the device.
const String notEnrolled = 'NotEnrolled';
/// Indicates the device does not have hardware support for biometrics.
const String notAvailable = 'NotAvailable';
/// Indicates the device operating system is unsupported.
const String otherOperatingSystem = 'OtherOperatingSystem';
/// Indicates the API is temporarily locked out due to too many attempts.
const String lockedOut = 'LockedOut';
/// Indicates the API is locked out more persistently than [lockedOut].
/// Strong authentication like PIN/Pattern/Password is required to unlock.
const String permanentlyLockedOut = 'PermanentlyLockedOut';
/// Indicates that the biometricOnly parameter can't be true on Windows
const String biometricOnlyNotSupported = 'biometricOnlyNotSupported';
| packages/packages/local_auth/local_auth/lib/error_codes.dart/0 | {'file_path': 'packages/packages/local_auth/local_auth/lib/error_codes.dart', 'repo_id': 'packages', 'token_count': 299} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_android/src/messages.g.dart';
import 'package:local_auth_platform_interface/local_auth_platform_interface.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'local_auth_test.mocks.dart';
@GenerateMocks(<Type>[LocalAuthApi])
void main() {
late MockLocalAuthApi api;
late LocalAuthAndroid plugin;
setUp(() {
api = MockLocalAuthApi();
plugin = LocalAuthAndroid(api: api);
});
test('registers instance', () {
LocalAuthAndroid.registerWith();
expect(LocalAuthPlatform.instance, isA<LocalAuthAndroid>());
});
group('deviceSupportsBiometrics', () {
test('handles true', () async {
when(api.deviceCanSupportBiometrics()).thenAnswer((_) async => true);
expect(await plugin.deviceSupportsBiometrics(), true);
});
test('handles false', () async {
when(api.deviceCanSupportBiometrics()).thenAnswer((_) async => false);
expect(await plugin.deviceSupportsBiometrics(), false);
});
});
group('isDeviceSupported', () {
test('handles true', () async {
when(api.isDeviceSupported()).thenAnswer((_) async => true);
expect(await plugin.isDeviceSupported(), true);
});
test('handles false', () async {
when(api.isDeviceSupported()).thenAnswer((_) async => false);
expect(await plugin.isDeviceSupported(), false);
});
});
group('stopAuthentication', () {
test('handles true', () async {
when(api.stopAuthentication()).thenAnswer((_) async => true);
expect(await plugin.stopAuthentication(), true);
});
test('handles false', () async {
when(api.stopAuthentication()).thenAnswer((_) async => false);
expect(await plugin.stopAuthentication(), false);
});
});
group('getEnrolledBiometrics', () {
test('translates values', () async {
when(api.getEnrolledBiometrics())
.thenAnswer((_) async => <AuthClassificationWrapper>[
AuthClassificationWrapper(value: AuthClassification.weak),
AuthClassificationWrapper(value: AuthClassification.strong),
]);
final List<BiometricType> result = await plugin.getEnrolledBiometrics();
expect(result, <BiometricType>[
BiometricType.weak,
BiometricType.strong,
]);
});
test('handles empty', () async {
when(api.getEnrolledBiometrics())
.thenAnswer((_) async => <AuthClassificationWrapper>[]);
final List<BiometricType> result = await plugin.getEnrolledBiometrics();
expect(result, <BiometricType>[]);
});
});
group('authenticate', () {
group('strings', () {
test('passes default values when nothing is provided', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
const String reason = 'test reason';
await plugin.authenticate(
localizedReason: reason, authMessages: <AuthMessages>[]);
final VerificationResult result =
verify(api.authenticate(any, captureAny));
final AuthStrings strings = result.captured[0] as AuthStrings;
expect(strings.reason, reason);
// These should all be the default values from
// auth_messages_android.dart
expect(strings.biometricHint, androidBiometricHint);
expect(strings.biometricNotRecognized, androidBiometricNotRecognized);
expect(strings.biometricRequiredTitle, androidBiometricRequiredTitle);
expect(strings.cancelButton, androidCancelButton);
expect(strings.deviceCredentialsRequiredTitle,
androidDeviceCredentialsRequiredTitle);
expect(strings.deviceCredentialsSetupDescription,
androidDeviceCredentialsSetupDescription);
expect(strings.goToSettingsButton, goToSettings);
expect(strings.goToSettingsDescription, androidGoToSettingsDescription);
expect(strings.signInTitle, androidSignInTitle);
});
test('passes default values when only other platform values are provided',
() async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
const String reason = 'test reason';
await plugin.authenticate(
localizedReason: reason,
authMessages: <AuthMessages>[AnotherPlatformAuthMessages()]);
final VerificationResult result =
verify(api.authenticate(any, captureAny));
final AuthStrings strings = result.captured[0] as AuthStrings;
expect(strings.reason, reason);
// These should all be the default values from
// auth_messages_android.dart
expect(strings.biometricHint, androidBiometricHint);
expect(strings.biometricNotRecognized, androidBiometricNotRecognized);
expect(strings.biometricRequiredTitle, androidBiometricRequiredTitle);
expect(strings.cancelButton, androidCancelButton);
expect(strings.deviceCredentialsRequiredTitle,
androidDeviceCredentialsRequiredTitle);
expect(strings.deviceCredentialsSetupDescription,
androidDeviceCredentialsSetupDescription);
expect(strings.goToSettingsButton, goToSettings);
expect(strings.goToSettingsDescription, androidGoToSettingsDescription);
expect(strings.signInTitle, androidSignInTitle);
});
test('passes all non-default values correctly', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
// These are arbitrary values; all that matters is that:
// - they are different from the defaults, and
// - they are different from each other.
const String reason = 'A';
const String hint = 'B';
const String bioNotRecognized = 'C';
const String bioRequired = 'D';
const String cancel = 'E';
const String credentialsRequired = 'F';
const String credentialsSetup = 'G';
const String goButton = 'H';
const String goDescription = 'I';
const String signInTitle = 'J';
await plugin
.authenticate(localizedReason: reason, authMessages: <AuthMessages>[
const AndroidAuthMessages(
biometricHint: hint,
biometricNotRecognized: bioNotRecognized,
biometricRequiredTitle: bioRequired,
cancelButton: cancel,
deviceCredentialsRequiredTitle: credentialsRequired,
deviceCredentialsSetupDescription: credentialsSetup,
goToSettingsButton: goButton,
goToSettingsDescription: goDescription,
signInTitle: signInTitle,
),
AnotherPlatformAuthMessages(),
]);
final VerificationResult result =
verify(api.authenticate(any, captureAny));
final AuthStrings strings = result.captured[0] as AuthStrings;
expect(strings.reason, reason);
expect(strings.biometricHint, hint);
expect(strings.biometricNotRecognized, bioNotRecognized);
expect(strings.biometricRequiredTitle, bioRequired);
expect(strings.cancelButton, cancel);
expect(strings.deviceCredentialsRequiredTitle, credentialsRequired);
expect(strings.deviceCredentialsSetupDescription, credentialsSetup);
expect(strings.goToSettingsButton, goButton);
expect(strings.goToSettingsDescription, goDescription);
expect(strings.signInTitle, signInTitle);
});
test('passes provided messages with default fallbacks', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
// These are arbitrary values; all that matters is that:
// - they are different from the defaults, and
// - they are different from each other.
const String reason = 'A';
const String hint = 'B';
const String bioNotRecognized = 'C';
const String bioRequired = 'D';
const String cancel = 'E';
await plugin
.authenticate(localizedReason: reason, authMessages: <AuthMessages>[
const AndroidAuthMessages(
biometricHint: hint,
biometricNotRecognized: bioNotRecognized,
biometricRequiredTitle: bioRequired,
cancelButton: cancel,
),
]);
final VerificationResult result =
verify(api.authenticate(any, captureAny));
final AuthStrings strings = result.captured[0] as AuthStrings;
expect(strings.reason, reason);
// These should all be the provided values.
expect(strings.biometricHint, hint);
expect(strings.biometricNotRecognized, bioNotRecognized);
expect(strings.biometricRequiredTitle, bioRequired);
expect(strings.cancelButton, cancel);
// These were non set, so should all be the default values from
// auth_messages_android.dart
expect(strings.deviceCredentialsRequiredTitle,
androidDeviceCredentialsRequiredTitle);
expect(strings.deviceCredentialsSetupDescription,
androidDeviceCredentialsSetupDescription);
expect(strings.goToSettingsButton, goToSettings);
expect(strings.goToSettingsDescription, androidGoToSettingsDescription);
expect(strings.signInTitle, androidSignInTitle);
});
});
group('options', () {
test('passes default values', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
await plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]);
final VerificationResult result =
verify(api.authenticate(captureAny, any));
final AuthOptions options = result.captured[0] as AuthOptions;
expect(options.biometricOnly, false);
expect(options.sensitiveTransaction, true);
expect(options.sticky, false);
expect(options.useErrorDialgs, true);
});
test('passes provided non-default values', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
await plugin.authenticate(
localizedReason: 'reason',
authMessages: <AuthMessages>[],
options: const AuthenticationOptions(
biometricOnly: true,
sensitiveTransaction: false,
stickyAuth: true,
useErrorDialogs: false,
));
final VerificationResult result =
verify(api.authenticate(captureAny, any));
final AuthOptions options = result.captured[0] as AuthOptions;
expect(options.biometricOnly, true);
expect(options.sensitiveTransaction, false);
expect(options.sticky, true);
expect(options.useErrorDialgs, false);
});
});
group('return values', () {
test('handles success', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.success);
final bool result = await plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]);
expect(result, true);
});
test('handles failure', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.failure);
final bool result = await plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]);
expect(result, false);
});
test('converts errorAlreadyInProgress to legacy PlatformException',
() async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorAlreadyInProgress);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having(
(PlatformException e) => e.code, 'code', 'auth_in_progress')
.having((PlatformException e) => e.message, 'message',
'Authentication in progress')));
});
test('converts errorNoActivity to legacy PlatformException', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorNoActivity);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code', 'no_activity')
.having((PlatformException e) => e.message, 'message',
'local_auth plugin requires a foreground activity')));
});
test('converts errorNotFragmentActivity to legacy PlatformException',
() async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorNotFragmentActivity);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code',
'no_fragment_activity')
.having((PlatformException e) => e.message, 'message',
'local_auth plugin requires activity to be a FragmentActivity.')));
});
test('converts errorNotAvailable to legacy PlatformException', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorNotAvailable);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code', 'NotAvailable')
.having((PlatformException e) => e.message, 'message',
'Security credentials not available.')));
});
test('converts errorNotEnrolled to legacy PlatformException', () async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorNotEnrolled);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code', 'NotEnrolled')
.having((PlatformException e) => e.message, 'message',
'No Biometrics enrolled on this device.')));
});
test('converts errorLockedOutTemporarily to legacy PlatformException',
() async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorLockedOutTemporarily);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code', 'LockedOut')
.having(
(PlatformException e) => e.message,
'message',
'The operation was canceled because the API is locked out '
'due to too many attempts. This occurs after 5 failed '
'attempts, and lasts for 30 seconds.')));
});
test('converts errorLockedOutPermanently to legacy PlatformException',
() async {
when(api.authenticate(any, any))
.thenAnswer((_) async => AuthResult.errorLockedOutPermanently);
expect(
() async => plugin.authenticate(
localizedReason: 'reason', authMessages: <AuthMessages>[]),
throwsA(isA<PlatformException>()
.having((PlatformException e) => e.code, 'code',
'PermanentlyLockedOut')
.having(
(PlatformException e) => e.message,
'message',
'The operation was canceled because ERROR_LOCKOUT occurred '
'too many times. Biometric authentication is disabled '
'until the user unlocks with strong '
'authentication (PIN/Pattern/Password)')));
});
});
});
}
class AnotherPlatformAuthMessages extends AuthMessages {
@override
Map<String, String> get args => throw UnimplementedError();
}
| packages/packages/local_auth/local_auth_android/test/local_auth_test.dart/0 | {'file_path': 'packages/packages/local_auth/local_auth_android/test/local_auth_test.dart', 'repo_id': 'packages', 'token_count': 6761} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:test/test.dart' as test_package show TypeMatcher;
export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
// Defines a 'package:test' shim.
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
/// A matcher that compares the type of the actual value to the type argument T.
test_package.TypeMatcher<T> isInstanceOf<T>() => isA<T>();
void tryToDelete(Directory directory) {
// This should not be necessary, but it turns out that
// on Windows it's common for deletions to fail due to
// bogus (we think) "access denied" errors.
try {
directory.deleteSync(recursive: true);
} on FileSystemException catch (error) {
// TODO(goderbauer): We should not be printing from a test util function.
// ignore: avoid_print
print('Failed to delete ${directory.path}: $error');
}
}
| packages/packages/metrics_center/test/common.dart/0 | {'file_path': 'packages/packages/metrics_center/test/common.dart', 'repo_id': 'packages', 'token_count': 346} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Example script to illustrate how to use the mdns package to discover services
// on the local network.
// ignore_for_file: avoid_print
import 'package:multicast_dns/multicast_dns.dart';
Future<void> main(List<String> args) async {
if (args.isEmpty) {
print('''
Please provide the name of a service as argument.
For example:
dart mdns_sd.dart [--verbose] _workstation._tcp.local''');
return;
}
final bool verbose = args.contains('--verbose') || args.contains('-v');
final String name = args.last;
final MDnsClient client = MDnsClient();
await client.start();
await for (final PtrResourceRecord ptr in client
.lookup<PtrResourceRecord>(ResourceRecordQuery.serverPointer(name))) {
if (verbose) {
print(ptr);
}
await for (final SrvResourceRecord srv in client.lookup<SrvResourceRecord>(
ResourceRecordQuery.service(ptr.domainName))) {
if (verbose) {
print(srv);
}
if (verbose) {
await client
.lookup<TxtResourceRecord>(ResourceRecordQuery.text(ptr.domainName))
.forEach(print);
}
await for (final IPAddressResourceRecord ip
in client.lookup<IPAddressResourceRecord>(
ResourceRecordQuery.addressIPv4(srv.target))) {
if (verbose) {
print(ip);
}
print('Service instance found at '
'${srv.target}:${srv.port} with ${ip.address}.');
}
await for (final IPAddressResourceRecord ip
in client.lookup<IPAddressResourceRecord>(
ResourceRecordQuery.addressIPv6(srv.target))) {
if (verbose) {
print(ip);
}
print('Service instance found at '
'${srv.target}:${srv.port} with ${ip.address}.');
}
}
}
client.stop();
}
| packages/packages/multicast_dns/example/mdns_sd.dart/0 | {'file_path': 'packages/packages/multicast_dns/example/mdns_sd.dart', 'repo_id': 'packages', 'token_count': 790} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:typed_data';
// This file contains base64-ecoded versions of the images in assets/, so that
// unit tests can be run on web where loading from files isn't an option and
// loading from assets requires user action.
/// Data version of assets/dominant.png.
final Uint8List kImageDataDominant = base64.decode(
'iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAA'
'AAqElEQVR42u3WoQ0AIAxFwV/C/ivDBmAgIO7ZpuZS0RpZVetx7i3/WItgwYIFCxYswYL1uF7Z'
'/PCMXBYsWLBgwRIsWLD+qZJBwWXBggULFizBggULFixYggULFixYsAQLFixYsGAJFixYsGDBEi'
'xYsGDBgiVYsGDBggVLsGDBggULlmDBggULFizBggULFixYggULFixYsAQLFixYsGAJFixYsGDB'
'EqzzTawXBchMuogIAAAAAElFTkSuQmCC');
/// Data version of assets/tall_blue.png.
final Uint8List kImageDataTallBlue = base64.decode(
'iVBORw0KGgoAAAANSUhEUgAAAAEAAAPoCAIAAACQ1AMJAAAACXBIWXMAAAsTAAALEwEAmpwYAA'
'AAH0lEQVRIx+3DQQkAAAgAscP+nTWGnw1W7VSqqqrq3wOa1wjO6jYVpgAAAABJRU5ErkJggg='
'=');
/// Data version of assets/wide_red.png.
final Uint8List kImageDataWideRed = base64.decode(
'iVBORw0KGgoAAAANSUhEUgAAA+gAAAABCAIAAADCYhNkAAAACXBIWXMAAAsTAAALEwEAmpwYAA'
'AAG0lEQVRIx+3BMQEAAAwCoNk/9KzhAeQPAABYV8RfAQE8QBqiAAAAAElFTkSuQmCC');
/// Data version of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8G'
'7+sYOvkcGPYM50F9A8t4FWvZDs4I7INNoeHzh2l2qMtzxfP57PL5aCbstsW8d1jUeXd36+1mS2'
'Jnzl+66gUDEsb2cObJW7APjKpmlQnX0h+juC+e+tU0pra2+hELPgZe55yifctmIpKQn01rqZ6T'
'TvBqWzl29chAZr/SAbdfF2m+i114+lnP4FRv8xxX0dam3wXgIQpUinq1O1cdLaf97Fmxjlu5zh'
'Kv3VXl9NcMdtGMDy2qN6U8tv29UoqOx4GGGIwfztdwaZTThDCD5ylLfS/Myl8Oi1XWtwFgJu1f'
'pSp2/LchmV29Pvv5/J4IpKhi+6d6SLbiINLdqMi5IKRkFzwsf3MbcWsawexKED0/usvtCNdVLB'
'6Yj5tsbJFUZzKw5YW72Mmg2VaojHDR2oXCJVduDM0t6nZVkBtmSfJjOPfoHUMC4K6u9uJ5ZjJR'
'aoB68zyf5WMVNgtqjj+5fIlkd58OO6dmRlNS7Zo8+NifnwXPC6+DMN2CWukqdso/OKMRZ8Ct7q'
'H7/f7pdxHgLywfLUCj0EC369TGSThUzbthHGYA8yTyr6U79LXx8aOq8fymVdsAtn8qk0dVfayv'
'gx5dZgvtfdrZj+FU9/vgderalwjFkrLs474VRrafoldQJgBlRVK7Rb7qBWGqlPGlriwrgnWm+t'
'BuUvvd3Xq1zNIK63PKKRvuw/twNTbGkRglv8q73NUomDJ2x7ucSxwbbVhnz/8AJhB5T41vTHkA'
'AAAQZVhJZklJKgAIAAAAAAAAAAAAAACcPLkoAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA2LT'
'EyVDExOjM2OjI2LTA3OjAw4P5bqgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wNi0xMlQxMToz'
'NjoyNi0wNzowMJGj4xYAAAAASUVORK5CYII=');
| packages/packages/palette_generator/test/encoded_images.dart/0 | {'file_path': 'packages/packages/palette_generator/test/encoded_images.dart', 'repo_id': 'packages', 'token_count': 83397} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' show Directory;
import 'package:flutter_test/flutter_test.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path_provider_platform_interface/path_provider_platform_interface.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
const String kTemporaryPath = 'temporaryPath';
const String kApplicationSupportPath = 'applicationSupportPath';
const String kDownloadsPath = 'downloadsPath';
const String kLibraryPath = 'libraryPath';
const String kApplicationDocumentsPath = 'applicationDocumentsPath';
const String kExternalCachePath = 'externalCachePath';
const String kExternalStoragePath = 'externalStoragePath';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
group('PathProvider full implementation', () {
setUp(() async {
PathProviderPlatform.instance = FakePathProviderPlatform();
});
test('getTemporaryDirectory', () async {
final Directory result = await getTemporaryDirectory();
expect(result.path, kTemporaryPath);
});
test('getApplicationSupportDirectory', () async {
final Directory result = await getApplicationSupportDirectory();
expect(result.path, kApplicationSupportPath);
});
test('getLibraryDirectory', () async {
final Directory result = await getLibraryDirectory();
expect(result.path, kLibraryPath);
});
test('getApplicationDocumentsDirectory', () async {
final Directory result = await getApplicationDocumentsDirectory();
expect(result.path, kApplicationDocumentsPath);
});
test('getExternalStorageDirectory', () async {
final Directory? result = await getExternalStorageDirectory();
expect(result?.path, kExternalStoragePath);
});
test('getExternalCacheDirectories', () async {
final List<Directory>? result = await getExternalCacheDirectories();
expect(result?.length, 1);
expect(result?.first.path, kExternalCachePath);
});
test('getExternalStorageDirectories', () async {
final List<Directory>? result = await getExternalStorageDirectories();
expect(result?.length, 1);
expect(result?.first.path, kExternalStoragePath);
});
test('getDownloadsDirectory', () async {
final Directory? result = await getDownloadsDirectory();
expect(result?.path, kDownloadsPath);
});
});
group('PathProvider null implementation', () {
setUp(() async {
PathProviderPlatform.instance = AllNullFakePathProviderPlatform();
});
test('getTemporaryDirectory throws on null', () async {
expect(getTemporaryDirectory(),
throwsA(isA<MissingPlatformDirectoryException>()));
});
test('getApplicationSupportDirectory throws on null', () async {
expect(getApplicationSupportDirectory(),
throwsA(isA<MissingPlatformDirectoryException>()));
});
test('getLibraryDirectory throws on null', () async {
expect(getLibraryDirectory(),
throwsA(isA<MissingPlatformDirectoryException>()));
});
test('getApplicationDocumentsDirectory throws on null', () async {
expect(getApplicationDocumentsDirectory(),
throwsA(isA<MissingPlatformDirectoryException>()));
});
test('getExternalStorageDirectory passes null through', () async {
final Directory? result = await getExternalStorageDirectory();
expect(result, isNull);
});
test('getExternalCacheDirectories passes null through', () async {
final List<Directory>? result = await getExternalCacheDirectories();
expect(result, isNull);
});
test('getExternalStorageDirectories passes null through', () async {
final List<Directory>? result = await getExternalStorageDirectories();
expect(result, isNull);
});
test('getDownloadsDirectory passses null through', () async {
final Directory? result = await getDownloadsDirectory();
expect(result, isNull);
});
});
}
class FakePathProviderPlatform extends Fake
with MockPlatformInterfaceMixin
implements PathProviderPlatform {
@override
Future<String?> getTemporaryPath() async {
return kTemporaryPath;
}
@override
Future<String?> getApplicationSupportPath() async {
return kApplicationSupportPath;
}
@override
Future<String?> getLibraryPath() async {
return kLibraryPath;
}
@override
Future<String?> getApplicationDocumentsPath() async {
return kApplicationDocumentsPath;
}
@override
Future<String?> getExternalStoragePath() async {
return kExternalStoragePath;
}
@override
Future<List<String>?> getExternalCachePaths() async {
return <String>[kExternalCachePath];
}
@override
Future<List<String>?> getExternalStoragePaths({
StorageDirectory? type,
}) async {
return <String>[kExternalStoragePath];
}
@override
Future<String?> getDownloadsPath() async {
return kDownloadsPath;
}
}
class AllNullFakePathProviderPlatform extends Fake
with MockPlatformInterfaceMixin
implements PathProviderPlatform {
@override
Future<String?> getTemporaryPath() async {
return null;
}
@override
Future<String?> getApplicationSupportPath() async {
return null;
}
@override
Future<String?> getLibraryPath() async {
return null;
}
@override
Future<String?> getApplicationDocumentsPath() async {
return null;
}
@override
Future<String?> getExternalStoragePath() async {
return null;
}
@override
Future<List<String>?> getExternalCachePaths() async {
return null;
}
@override
Future<List<String>?> getExternalStoragePaths({
StorageDirectory? type,
}) async {
return null;
}
@override
Future<String?> getDownloadsPath() async {
return null;
}
}
| packages/packages/path_provider/path_provider/test/path_provider_test.dart/0 | {'file_path': 'packages/packages/path_provider/path_provider/test/path_provider_test.dart', 'repo_id': 'packages', 'token_count': 1850} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'generated.dart';
void main() {
runApp(const ExampleApp());
}
/// A trivial example that validates that Pigeon is able to successfully call
/// into native code.
///
/// Actual testing is all done in the integration tests, which run in the
/// context of the example app but don't actually rely on this class.
class ExampleApp extends StatefulWidget {
/// Creates a new example app.
const ExampleApp({super.key});
@override
State<ExampleApp> createState() => _ExampleAppState();
}
class _ExampleAppState extends State<ExampleApp> {
late final HostIntegrationCoreApi api;
String status = 'Calling...';
@override
void initState() {
super.initState();
initPlatformState();
}
Future<void> initPlatformState() async {
api = HostIntegrationCoreApi();
try {
// Make a single trivial call just to validate that everything is wired
// up.
await api.noop();
} catch (e) {
setState(() {
status = 'Failed: $e';
});
return;
}
setState(() {
status = 'Success!';
});
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Pigeon integration tests'),
),
body: Center(
child: Text(status),
),
),
);
}
}
| packages/packages/pigeon/platform_tests/shared_test_plugin_code/lib/example_app.dart/0 | {'file_path': 'packages/packages/pigeon/platform_tests/shared_test_plugin_code/lib/example_app.dart', 'repo_id': 'packages', 'token_count': 550} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:shared_test_plugin_code/src/generated/multiple_arity.gen.dart';
import 'multiple_arity_test.mocks.dart';
@GenerateMocks(<Type>[BinaryMessenger])
void main() {
test('multiple arity', () async {
final BinaryMessenger mockMessenger = MockBinaryMessenger();
when(mockMessenger.send(
'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract',
any))
.thenAnswer((Invocation realInvocation) async {
final Object input = MultipleArityHostApi.pigeonChannelCodec
.decodeMessage(realInvocation.positionalArguments[1] as ByteData?)!;
final List<Object?> args = input as List<Object?>;
final int x = (args[0] as int?)!;
final int y = (args[1] as int?)!;
return MultipleArityHostApi.pigeonChannelCodec
.encodeMessage(<Object>[x - y]);
});
final MultipleArityHostApi api =
MultipleArityHostApi(binaryMessenger: mockMessenger);
final int result = await api.subtract(30, 10);
expect(result, 20);
});
}
| packages/packages/pigeon/platform_tests/shared_test_plugin_code/test/multiple_arity_test.dart/0 | {'file_path': 'packages/packages/pigeon/platform_tests/shared_test_plugin_code/test/multiple_arity_test.dart', 'repo_id': 'packages', 'token_count': 519} |
test_on: vm
| packages/packages/platform/dart_test.yaml/0 | {'file_path': 'packages/packages/platform/dart_test.yaml', 'repo_id': 'packages', 'token_count': 6} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:shared_preferences_foundation/shared_preferences_foundation.dart';
import 'package:shared_preferences_platform_interface/shared_preferences_platform_interface.dart';
import 'package:shared_preferences_platform_interface/types.dart';
import 'test_api.g.dart';
class _MockSharedPreferencesApi implements TestUserDefaultsApi {
final Map<String, Object> items = <String, Object>{};
@override
Map<String?, Object?> getAll(
String prefix,
List<String?>? allowList,
) {
Set<String?>? allowSet;
if (allowList != null) {
allowSet = Set<String>.from(allowList);
}
return <String?, Object?>{
for (final String key in items.keys)
if (key.startsWith(prefix) &&
(allowSet == null || allowSet.contains(key)))
key: items[key]
};
}
@override
void remove(String key) {
items.remove(key);
}
@override
void setBool(String key, bool value) {
items[key] = value;
}
@override
void setDouble(String key, double value) {
items[key] = value;
}
@override
void setValue(String key, Object value) {
items[key] = value;
}
@override
bool clear(String prefix, List<String?>? allowList) {
items.keys.toList().forEach((String key) {
if (key.startsWith(prefix) &&
(allowList == null || allowList.contains(key))) {
items.remove(key);
}
});
return true;
}
}
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
late _MockSharedPreferencesApi api;
const Map<String, Object> flutterTestValues = <String, Object>{
'flutter.String': 'hello world',
'flutter.Bool': true,
'flutter.Int': 42,
'flutter.Double': 3.14159,
'flutter.StringList': <String>['foo', 'bar'],
};
const Map<String, Object> prefixTestValues = <String, Object>{
'prefix.String': 'hello world',
'prefix.Bool': true,
'prefix.Int': 42,
'prefix.Double': 3.14159,
'prefix.StringList': <String>['foo', 'bar'],
};
const Map<String, Object> nonPrefixTestValues = <String, Object>{
'String': 'hello world',
'Bool': true,
'Int': 42,
'Double': 3.14159,
'StringList': <String>['foo', 'bar'],
};
final Map<String, Object> allTestValues = <String, Object>{};
allTestValues.addAll(flutterTestValues);
allTestValues.addAll(prefixTestValues);
allTestValues.addAll(nonPrefixTestValues);
setUp(() {
api = _MockSharedPreferencesApi();
TestUserDefaultsApi.setup(api);
});
test('registerWith', () {
SharedPreferencesFoundation.registerWith();
expect(SharedPreferencesStorePlatform.instance,
isA<SharedPreferencesFoundation>());
});
test('remove', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
api.items['flutter.hi'] = 'world';
expect(await plugin.remove('flutter.hi'), isTrue);
expect(api.items.containsKey('flutter.hi'), isFalse);
});
test('clear', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
api.items['flutter.hi'] = 'world';
expect(await plugin.clear(), isTrue);
expect(api.items.containsKey('flutter.hi'), isFalse);
});
test('clearWithPrefix', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
Map<String?, Object?> all = await plugin.getAllWithPrefix('prefix.');
expect(all.length, 5);
await plugin.clearWithPrefix('prefix.');
all = await plugin.getAll();
expect(all.length, 5);
all = await plugin.getAllWithPrefix('prefix.');
expect(all.length, 0);
});
test('clearWithParameters', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
expect(all.length, 5);
await plugin.clearWithParameters(
ClearParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
all = await plugin.getAll();
expect(all.length, 5);
all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
expect(all.length, 0);
});
test('clearWithParameters with allow list', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
expect(all.length, 5);
await plugin.clearWithParameters(
ClearParameters(
filter: PreferencesFilter(
prefix: 'prefix.',
allowList: <String>{'prefix.String'},
),
),
);
all = await plugin.getAll();
expect(all.length, 5);
all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
expect(all.length, 4);
});
test('getAll', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in flutterTestValues.keys) {
api.items[key] = flutterTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAll();
expect(all.length, 5);
expect(all, flutterTestValues);
});
test('getAllWithPrefix', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAllWithPrefix('prefix.');
expect(all.length, 5);
expect(all, prefixTestValues);
});
test('getAllWithParameters', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: 'prefix.'),
),
);
expect(all.length, 5);
expect(all, prefixTestValues);
});
test('getAllWithParameters with allow list', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(
prefix: 'prefix.',
allowList: <String>{'prefix.Bool'},
),
),
);
expect(all.length, 1);
expect(all['prefix.Bool'], prefixTestValues['prefix.Bool']);
});
test('setValue', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
expect(await plugin.setValue('Bool', 'flutter.Bool', true), isTrue);
expect(api.items['flutter.Bool'], true);
expect(await plugin.setValue('Double', 'flutter.Double', 1.5), isTrue);
expect(api.items['flutter.Double'], 1.5);
expect(await plugin.setValue('Int', 'flutter.Int', 12), isTrue);
expect(api.items['flutter.Int'], 12);
expect(await plugin.setValue('String', 'flutter.String', 'hi'), isTrue);
expect(api.items['flutter.String'], 'hi');
expect(
await plugin
.setValue('StringList', 'flutter.StringList', <String>['hi']),
isTrue);
expect(api.items['flutter.StringList'], <String>['hi']);
});
test('setValue with unsupported type', () {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
expect(() async {
await plugin.setValue('Map', 'flutter.key', <String, String>{});
}, throwsA(isA<PlatformException>()));
});
test('getAllWithNoPrefix', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAllWithPrefix('');
expect(all.length, 15);
expect(all, allTestValues);
});
test('clearWithNoPrefix', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
Map<String?, Object?> all = await plugin.getAllWithPrefix('');
expect(all.length, 15);
await plugin.clearWithPrefix('');
all = await plugin.getAllWithPrefix('');
expect(all.length, 0);
});
test('getAllWithNoPrefix with param', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
final Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: ''),
),
);
expect(all.length, 15);
expect(all, allTestValues);
});
test('clearWithNoPrefix with param', () async {
final SharedPreferencesFoundation plugin = SharedPreferencesFoundation();
for (final String key in allTestValues.keys) {
api.items[key] = allTestValues[key]!;
}
Map<String?, Object?> all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: ''),
),
);
expect(all.length, 15);
await plugin.clearWithParameters(
ClearParameters(
filter: PreferencesFilter(prefix: ''),
),
);
all = await plugin.getAllWithParameters(
GetAllParameters(
filter: PreferencesFilter(prefix: ''),
),
);
expect(all.length, 0);
});
}
| packages/packages/shared_preferences/shared_preferences_foundation/test/shared_preferences_foundation_test.dart/0 | {'file_path': 'packages/packages/shared_preferences/shared_preferences_foundation/test/shared_preferences_foundation_test.dart', 'repo_id': 'packages', 'token_count': 3808} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:typed_data';
import 'package:standard_message_codec/standard_message_codec.dart';
import 'package:test/test.dart';
const StandardMessageCodec messageCodec = StandardMessageCodec();
void main() {
group('Standard method codec', () {
test('Should encode and decode objects produced from codec', () {
final ByteData? data = messageCodec.encodeMessage(<Object, Object>{
'foo': true,
3: 'fizz',
});
expect(messageCodec.decodeMessage(data), <Object?, Object?>{
'foo': true,
3: 'fizz',
});
});
});
group('Write and read buffer round-trip', () {
test('of empty buffer', () {
final WriteBuffer write = WriteBuffer();
final ByteData written = write.done();
expect(written.lengthInBytes, 0);
});
test('of single byte', () {
final WriteBuffer write = WriteBuffer();
write.putUint8(201);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(1));
final ReadBuffer read = ReadBuffer(written);
expect(read.getUint8(), equals(201));
});
test('of 32-bit integer', () {
final WriteBuffer write = WriteBuffer();
write.putInt32(-9);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(4));
final ReadBuffer read = ReadBuffer(written);
expect(read.getInt32(), equals(-9));
});
test('of 32-bit integer in big endian', () {
final WriteBuffer write = WriteBuffer();
write.putInt32(-9, endian: Endian.big);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(4));
final ReadBuffer read = ReadBuffer(written);
expect(read.getInt32(endian: Endian.big), equals(-9));
});
test('of 64-bit integer', () {
final WriteBuffer write = WriteBuffer();
write.putInt64(-9000000000000);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(8));
final ReadBuffer read = ReadBuffer(written);
expect(read.getInt64(), equals(-9000000000000));
}, testOn: 'vm' /* Int64 isn't supported on web */);
test('of 64-bit integer in big endian', () {
final WriteBuffer write = WriteBuffer();
write.putInt64(-9000000000000, endian: Endian.big);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(8));
final ReadBuffer read = ReadBuffer(written);
expect(read.getInt64(endian: Endian.big), equals(-9000000000000));
}, testOn: 'vm' /* Int64 isn't supported on web */);
test('of double', () {
final WriteBuffer write = WriteBuffer();
write.putFloat64(3.14);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(8));
final ReadBuffer read = ReadBuffer(written);
expect(read.getFloat64(), equals(3.14));
});
test('of double in big endian', () {
final WriteBuffer write = WriteBuffer();
write.putFloat64(3.14, endian: Endian.big);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(8));
final ReadBuffer read = ReadBuffer(written);
expect(read.getFloat64(endian: Endian.big), equals(3.14));
});
test('of 32-bit int list when unaligned', () {
final Int32List integers = Int32List.fromList(<int>[-99, 2, 99]);
final WriteBuffer write = WriteBuffer();
write.putUint8(9);
write.putInt32List(integers);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(16));
final ReadBuffer read = ReadBuffer(written);
read.getUint8();
expect(read.getInt32List(3), equals(integers));
});
test('of 64-bit int list when unaligned', () {
final Int64List integers = Int64List.fromList(<int>[-99, 2, 99]);
final WriteBuffer write = WriteBuffer();
write.putUint8(9);
write.putInt64List(integers);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(32));
final ReadBuffer read = ReadBuffer(written);
read.getUint8();
expect(read.getInt64List(3), equals(integers));
}, testOn: 'vm' /* Int64 isn't supported on web */);
test('of float list when unaligned', () {
final Float32List floats =
Float32List.fromList(<double>[3.14, double.nan]);
final WriteBuffer write = WriteBuffer();
write.putUint8(9);
write.putFloat32List(floats);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(12));
final ReadBuffer read = ReadBuffer(written);
read.getUint8();
final Float32List readFloats = read.getFloat32List(2);
expect(readFloats[0], closeTo(3.14, 0.0001));
expect(readFloats[1], isNaN);
});
test('of double list when unaligned', () {
final Float64List doubles =
Float64List.fromList(<double>[3.14, double.nan]);
final WriteBuffer write = WriteBuffer();
write.putUint8(9);
write.putFloat64List(doubles);
final ByteData written = write.done();
expect(written.lengthInBytes, equals(24));
final ReadBuffer read = ReadBuffer(written);
read.getUint8();
final Float64List readDoubles = read.getFloat64List(2);
expect(readDoubles[0], equals(3.14));
expect(readDoubles[1], isNaN);
});
test('done twice', () {
final WriteBuffer write = WriteBuffer();
write.done();
expect(() => write.done(), throwsStateError);
});
test('empty WriteBuffer', () {
expect(
() => WriteBuffer(startCapacity: 0), throwsA(isA<AssertionError>()));
});
test('size 1', () {
expect(() => WriteBuffer(startCapacity: 1), returnsNormally);
});
});
}
| packages/packages/standard_message_codec/test/standard_message_codec_test.dart/0 | {'file_path': 'packages/packages/standard_message_codec/test/standard_message_codec_test.dart', 'repo_id': 'packages', 'token_count': 2240} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:url_launcher/link.dart';
import 'package:url_launcher/url_launcher.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'URL Launcher',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'URL Launcher'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
bool _hasCallSupport = false;
Future<void>? _launched;
String _phone = '';
@override
void initState() {
super.initState();
// Check for phone call support.
canLaunchUrl(Uri(scheme: 'tel', path: '123')).then((bool result) {
setState(() {
_hasCallSupport = result;
});
});
}
Future<void> _launchInBrowser(Uri url) async {
if (!await launchUrl(
url,
mode: LaunchMode.externalApplication,
)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchInBrowserView(Uri url) async {
if (!await launchUrl(url, mode: LaunchMode.inAppBrowserView)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchInWebView(Uri url) async {
if (!await launchUrl(url, mode: LaunchMode.inAppWebView)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchAsInAppWebViewWithCustomHeaders(Uri url) async {
if (!await launchUrl(
url,
mode: LaunchMode.inAppWebView,
webViewConfiguration: const WebViewConfiguration(
headers: <String, String>{'my_header_key': 'my_header_value'}),
)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchInWebViewWithoutJavaScript(Uri url) async {
if (!await launchUrl(
url,
mode: LaunchMode.inAppWebView,
webViewConfiguration: const WebViewConfiguration(enableJavaScript: false),
)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchInWebViewWithoutDomStorage(Uri url) async {
if (!await launchUrl(
url,
mode: LaunchMode.inAppWebView,
webViewConfiguration: const WebViewConfiguration(enableDomStorage: false),
)) {
throw Exception('Could not launch $url');
}
}
Future<void> _launchUniversalLinkIOS(Uri url) async {
final bool nativeAppLaunchSucceeded = await launchUrl(
url,
mode: LaunchMode.externalNonBrowserApplication,
);
if (!nativeAppLaunchSucceeded) {
await launchUrl(
url,
mode: LaunchMode.inAppBrowserView,
);
}
}
Widget _launchStatus(BuildContext context, AsyncSnapshot<void> snapshot) {
if (snapshot.hasError) {
return Text('Error: ${snapshot.error}');
} else {
return const Text('');
}
}
Future<void> _makePhoneCall(String phoneNumber) async {
final Uri launchUri = Uri(
scheme: 'tel',
path: phoneNumber,
);
await launchUrl(launchUri);
}
@override
Widget build(BuildContext context) {
// onPressed calls using this URL are not gated on a 'canLaunch' check
// because the assumption is that every device can launch a web URL.
final Uri toLaunch =
Uri(scheme: 'https', host: 'www.cylog.org', path: 'headers/');
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: ListView(
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Padding(
padding: const EdgeInsets.all(16.0),
child: TextField(
onChanged: (String text) => _phone = text,
decoration: const InputDecoration(
hintText: 'Input the phone number to launch')),
),
ElevatedButton(
onPressed: _hasCallSupport
? () => setState(() {
_launched = _makePhoneCall(_phone);
})
: null,
child: _hasCallSupport
? const Text('Make phone call')
: const Text('Calling not supported'),
),
Padding(
padding: const EdgeInsets.all(16.0),
child: Text(toLaunch.toString()),
),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchInBrowser(toLaunch);
}),
child: const Text('Launch in browser'),
),
const Padding(padding: EdgeInsets.all(16.0)),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchInBrowserView(toLaunch);
}),
child: const Text('Launch in app'),
),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchAsInAppWebViewWithCustomHeaders(toLaunch);
}),
child: const Text('Launch in app (Custom Headers)'),
),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchInWebViewWithoutJavaScript(toLaunch);
}),
child: const Text('Launch in app (JavaScript OFF)'),
),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchInWebViewWithoutDomStorage(toLaunch);
}),
child: const Text('Launch in app (DOM storage OFF)'),
),
const Padding(padding: EdgeInsets.all(16.0)),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchUniversalLinkIOS(toLaunch);
}),
child: const Text(
'Launch a universal link in a native app, fallback to Safari.(Youtube)'),
),
const Padding(padding: EdgeInsets.all(16.0)),
ElevatedButton(
onPressed: () => setState(() {
_launched = _launchInWebView(toLaunch);
Timer(const Duration(seconds: 5), () {
closeInAppWebView();
});
}),
child: const Text('Launch in app + close after 5 seconds'),
),
const Padding(padding: EdgeInsets.all(16.0)),
Link(
uri: Uri.parse(
'https://pub.dev/documentation/url_launcher/latest/link/link-library.html'),
target: LinkTarget.blank,
builder: (BuildContext ctx, FollowLink? openLink) {
return TextButton.icon(
onPressed: openLink,
label: const Text('Link Widget documentation'),
icon: const Icon(Icons.read_more),
);
},
),
const Padding(padding: EdgeInsets.all(16.0)),
FutureBuilder<void>(future: _launched, builder: _launchStatus),
],
),
],
),
);
}
}
| packages/packages/url_launcher/url_launcher/example/lib/main.dart/0 | {'file_path': 'packages/packages/url_launcher/url_launcher/example/lib/main.dart', 'repo_id': 'packages', 'token_count': 3646} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:url_launcher_platform_interface/link.dart';
import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart';
class CapturingUrlLauncher extends UrlLauncherPlatform {
String? url;
bool? useSafariVC;
bool? useWebView;
bool? enableJavaScript;
bool? enableDomStorage;
bool? universalLinksOnly;
Map<String, String> headers = <String, String>{};
String? webOnlyWindowName;
@override
final LinkDelegate? linkDelegate = null;
@override
Future<bool> launch(
String url, {
required bool useSafariVC,
required bool useWebView,
required bool enableJavaScript,
required bool enableDomStorage,
required bool universalLinksOnly,
required Map<String, String> headers,
String? webOnlyWindowName,
}) async {
this.url = url;
this.useSafariVC = useSafariVC;
this.useWebView = useWebView;
this.enableJavaScript = enableJavaScript;
this.enableDomStorage = enableDomStorage;
this.universalLinksOnly = universalLinksOnly;
this.headers = headers;
this.webOnlyWindowName = webOnlyWindowName;
return true;
}
}
void main() {
test('launchUrl calls through to launch with default options for web URL',
() async {
final CapturingUrlLauncher launcher = CapturingUrlLauncher();
await launcher.launchUrl('https://flutter.dev', const LaunchOptions());
expect(launcher.url, 'https://flutter.dev');
expect(launcher.useSafariVC, true);
expect(launcher.useWebView, true);
expect(launcher.enableJavaScript, true);
expect(launcher.enableDomStorage, true);
expect(launcher.universalLinksOnly, false);
expect(launcher.headers, isEmpty);
expect(launcher.webOnlyWindowName, null);
});
test('launchUrl calls through to launch with default options for non-web URL',
() async {
final CapturingUrlLauncher launcher = CapturingUrlLauncher();
await launcher.launchUrl('tel:123456789', const LaunchOptions());
expect(launcher.url, 'tel:123456789');
expect(launcher.useSafariVC, false);
expect(launcher.useWebView, false);
expect(launcher.enableJavaScript, true);
expect(launcher.enableDomStorage, true);
expect(launcher.universalLinksOnly, false);
expect(launcher.headers, isEmpty);
expect(launcher.webOnlyWindowName, null);
});
test('launchUrl calls through to launch with universal links', () async {
final CapturingUrlLauncher launcher = CapturingUrlLauncher();
await launcher.launchUrl(
'https://flutter.dev',
const LaunchOptions(
mode: PreferredLaunchMode.externalNonBrowserApplication));
expect(launcher.url, 'https://flutter.dev');
expect(launcher.useSafariVC, false);
expect(launcher.useWebView, false);
expect(launcher.enableJavaScript, true);
expect(launcher.enableDomStorage, true);
expect(launcher.universalLinksOnly, true);
expect(launcher.headers, isEmpty);
expect(launcher.webOnlyWindowName, null);
});
test('launchUrl calls through to launch with all non-default options',
() async {
final CapturingUrlLauncher launcher = CapturingUrlLauncher();
await launcher.launchUrl(
'https://flutter.dev',
const LaunchOptions(
mode: PreferredLaunchMode.externalApplication,
webViewConfiguration: InAppWebViewConfiguration(
enableJavaScript: false,
enableDomStorage: false,
headers: <String, String>{'foo': 'bar'}),
webOnlyWindowName: 'a_name',
));
expect(launcher.url, 'https://flutter.dev');
expect(launcher.useSafariVC, false);
expect(launcher.useWebView, false);
expect(launcher.enableJavaScript, false);
expect(launcher.enableDomStorage, false);
expect(launcher.universalLinksOnly, false);
expect(launcher.headers['foo'], 'bar');
expect(launcher.webOnlyWindowName, 'a_name');
});
test('supportsMode defaults to true for platform default', () async {
final UrlLauncherPlatform launcher = CapturingUrlLauncher();
expect(
await launcher.supportsMode(PreferredLaunchMode.platformDefault), true);
});
test('supportsMode defaults to false for all specific values', () async {
final UrlLauncherPlatform launcher = CapturingUrlLauncher();
expect(await launcher.supportsMode(PreferredLaunchMode.externalApplication),
false);
expect(
await launcher
.supportsMode(PreferredLaunchMode.externalNonBrowserApplication),
false);
expect(await launcher.supportsMode(PreferredLaunchMode.inAppBrowserView),
false);
expect(
await launcher.supportsMode(PreferredLaunchMode.inAppWebView), false);
});
test('supportsCloseForMode defaults to true for in-app web views', () async {
final UrlLauncherPlatform launcher = CapturingUrlLauncher();
expect(
await launcher.supportsCloseForMode(PreferredLaunchMode.inAppWebView),
true);
});
test('supportsCloseForMode defaults to false for all other values', () async {
final UrlLauncherPlatform launcher = CapturingUrlLauncher();
expect(
await launcher
.supportsCloseForMode(PreferredLaunchMode.externalApplication),
false);
expect(
await launcher.supportsCloseForMode(
PreferredLaunchMode.externalNonBrowserApplication),
false);
expect(
await launcher
.supportsCloseForMode(PreferredLaunchMode.inAppBrowserView),
false);
expect(
await launcher
.supportsCloseForMode(PreferredLaunchMode.platformDefault),
false);
});
}
| packages/packages/url_launcher/url_launcher_platform_interface/test/url_launcher_platform_test.dart/0 | {'file_path': 'packages/packages/url_launcher/url_launcher_platform_interface/test/url_launcher_platform_test.dart', 'repo_id': 'packages', 'token_count': 2016} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
dartOut: 'lib/src/messages.g.dart',
dartTestOut: 'test/test_api.g.dart',
javaOut: 'android/src/main/java/io/flutter/plugins/videoplayer/Messages.java',
javaOptions: JavaOptions(
package: 'io.flutter.plugins.videoplayer',
),
copyrightHeader: 'pigeons/copyright.txt',
))
class TextureMessage {
TextureMessage(this.textureId);
int textureId;
}
class LoopingMessage {
LoopingMessage(this.textureId, this.isLooping);
int textureId;
bool isLooping;
}
class VolumeMessage {
VolumeMessage(this.textureId, this.volume);
int textureId;
double volume;
}
class PlaybackSpeedMessage {
PlaybackSpeedMessage(this.textureId, this.speed);
int textureId;
double speed;
}
class PositionMessage {
PositionMessage(this.textureId, this.position);
int textureId;
int position;
}
class CreateMessage {
CreateMessage({required this.httpHeaders});
String? asset;
String? uri;
String? packageName;
String? formatHint;
Map<String?, String?> httpHeaders;
}
class MixWithOthersMessage {
MixWithOthersMessage(this.mixWithOthers);
bool mixWithOthers;
}
@HostApi(dartHostTestHandler: 'TestHostVideoPlayerApi')
abstract class AndroidVideoPlayerApi {
void initialize();
TextureMessage create(CreateMessage msg);
void dispose(TextureMessage msg);
void setLooping(LoopingMessage msg);
void setVolume(VolumeMessage msg);
void setPlaybackSpeed(PlaybackSpeedMessage msg);
void play(TextureMessage msg);
PositionMessage position(TextureMessage msg);
void seekTo(PositionMessage msg);
void pause(TextureMessage msg);
void setMixWithOthers(MixWithOthersMessage msg);
}
| packages/packages/video_player/video_player_android/pigeons/messages.dart/0 | {'file_path': 'packages/packages/video_player/video_player_android/pigeons/messages.dart', 'repo_id': 'packages', 'token_count': 587} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player_platform_interface/video_player_platform_interface.dart';
void main() {
// Store the initial instance before any tests change it.
final VideoPlayerPlatform initialInstance = VideoPlayerPlatform.instance;
test('default implementation init throws unimplemented', () async {
await expectLater(() => initialInstance.init(), throwsUnimplementedError);
});
test('default implementation setWebOptions throws unimplemented', () async {
await expectLater(
() => initialInstance.setWebOptions(
1,
const VideoPlayerWebOptions(),
),
throwsUnimplementedError,
);
});
}
| packages/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart/0 | {'file_path': 'packages/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart', 'repo_id': 'packages', 'token_count': 252} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The "length" of a video which doesn't have finite duration.
// See: https://github.com/flutter/flutter/issues/107882
const Duration jsCompatibleTimeUnset = Duration(
milliseconds: -9007199254740990, // Number.MIN_SAFE_INTEGER + 1. -(2^53 - 1)
);
/// Converts a `num` duration coming from a [VideoElement] into a [Duration] that
/// the plugin can use.
///
/// From the documentation, `videoDuration` is "a double-precision floating-point
/// value indicating the duration of the media in seconds.
/// If no media data is available, the value `NaN` is returned.
/// If the element's media doesn't have a known duration —such as for live media
/// streams— the value of duration is `+Infinity`."
///
/// If the `videoDuration` is finite, this method returns it as a `Duration`.
/// If the `videoDuration` is `Infinity`, the duration will be
/// `-9007199254740990` milliseconds. (See https://github.com/flutter/flutter/issues/107882)
/// If the `videoDuration` is `NaN`, this will return null.
Duration? convertNumVideoDurationToPluginDuration(num duration) {
if (duration.isFinite) {
return Duration(
milliseconds: (duration * 1000).round(),
);
} else if (duration.isInfinite) {
return jsCompatibleTimeUnset;
}
return null;
}
| packages/packages/video_player/video_player_web/lib/src/duration_utils.dart/0 | {'file_path': 'packages/packages/video_player/video_player_web/lib/src/duration_utils.dart', 'repo_id': 'packages', 'token_count': 421} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// This library contains code that's common between the client and the server.
///
/// The code must be compilable both as a command-line program and as a web
/// program.
library web_benchmarks.common;
/// The number of samples we use to collect statistics from.
const int kMeasuredSampleCount = 100;
/// A special value returned by the `/next-benchmark` HTTP POST request when
/// all benchmarks have run and there are no more benchmarks to run.
const String kEndOfBenchmarks = '__end_of_benchmarks__';
/// The default initial page to load upon opening the benchmark app or reloading
/// it in Chrome.
const String defaultInitialPage = 'index.html';
| packages/packages/web_benchmarks/lib/src/common.dart/0 | {'file_path': 'packages/packages/web_benchmarks/lib/src/common.dart', 'repo_id': 'packages', 'token_count': 207} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:web_benchmarks/client.dart';
import '../about_page.dart' show backKey;
import '../home_page.dart' show aboutPageKey, textKey;
import '../main.dart';
/// A recorder that measures frame building durations.
abstract class AppRecorder extends WidgetRecorder {
AppRecorder({required this.benchmarkName}) : super(name: benchmarkName);
final String benchmarkName; // ignore: unreachable_from_main
Future<void> automate();
@override
Widget createWidget() {
Future<void>.delayed(const Duration(milliseconds: 400), automate);
return const MyApp();
}
Future<void> animationStops() async {
while (WidgetsBinding.instance.hasScheduledFrame) {
await Future<void>.delayed(const Duration(milliseconds: 200));
}
}
}
class ScrollRecorder extends AppRecorder {
ScrollRecorder() : super(benchmarkName: 'scroll');
@override
Future<void> automate() async {
final ScrollableState scrollable =
Scrollable.of(find.byKey(textKey).evaluate().single);
await scrollable.position.animateTo(
30000,
curve: Curves.linear,
duration: const Duration(seconds: 20),
);
}
}
class PageRecorder extends AppRecorder {
PageRecorder() : super(benchmarkName: 'page');
bool _completed = false;
@override
bool shouldContinue() => profile.shouldContinue() || !_completed;
@override
Future<void> automate() async {
final LiveWidgetController controller =
LiveWidgetController(WidgetsBinding.instance);
for (int i = 0; i < 10; ++i) {
print('Testing round $i...');
await controller.tap(find.byKey(aboutPageKey));
await animationStops();
await controller.tap(find.byKey(backKey));
await animationStops();
}
_completed = true;
}
}
class TapRecorder extends AppRecorder {
TapRecorder() : super(benchmarkName: 'tap');
bool _completed = false;
@override
bool shouldContinue() => profile.shouldContinue() || !_completed;
@override
Future<void> automate() async {
final LiveWidgetController controller =
LiveWidgetController(WidgetsBinding.instance);
for (int i = 0; i < 10; ++i) {
print('Testing round $i...');
await controller.tap(find.byIcon(Icons.add));
await animationStops();
}
_completed = true;
}
}
Future<void> main() async {
await runBenchmarks(<String, RecorderFactory>{
'scroll': () => ScrollRecorder(),
'page': () => PageRecorder(),
'tap': () => TapRecorder(),
});
}
| packages/packages/web_benchmarks/testing/test_app/lib/benchmarks/runner.dart/0 | {'file_path': 'packages/packages/web_benchmarks/testing/test_app/lib/benchmarks/runner.dart', 'repo_id': 'packages', 'token_count': 941} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart';
import 'webview_controller.dart';
/// Displays a native WebView as a Widget.
///
/// ## Platform-Specific Features
/// This class contains an underlying implementation provided by the current
/// platform. Once a platform implementation is imported, the examples below
/// can be followed to use features provided by a platform's implementation.
///
/// {@macro webview_flutter.WebViewWidget.fromPlatformCreationParams}
///
/// Below is an example of accessing the platform-specific implementation for
/// iOS and Android:
///
/// ```dart
/// final WebViewController controller = WebViewController();
///
/// final WebViewWidget webViewWidget = WebViewWidget(controller: controller);
///
/// if (WebViewPlatform.instance is WebKitWebViewPlatform) {
/// final WebKitWebViewWidget webKitWidget =
/// webViewWidget.platform as WebKitWebViewWidget;
/// } else if (WebViewPlatform.instance is AndroidWebViewPlatform) {
/// final AndroidWebViewWidget androidWidget =
/// webViewWidget.platform as AndroidWebViewWidget;
/// }
/// ```
class WebViewWidget extends StatelessWidget {
/// Constructs a [WebViewWidget].
///
/// See [WebViewWidget.fromPlatformCreationParams] for setting parameters for
/// a specific platform.
WebViewWidget({
Key? key,
required WebViewController controller,
TextDirection layoutDirection = TextDirection.ltr,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers =
const <Factory<OneSequenceGestureRecognizer>>{},
}) : this.fromPlatformCreationParams(
key: key,
params: PlatformWebViewWidgetCreationParams(
controller: controller.platform,
layoutDirection: layoutDirection,
gestureRecognizers: gestureRecognizers,
),
);
/// Constructs a [WebViewWidget] from creation params for a specific platform.
///
/// {@template webview_flutter.WebViewWidget.fromPlatformCreationParams}
/// Below is an example of setting platform-specific creation parameters for
/// iOS and Android:
///
/// ```dart
/// final WebViewController controller = WebViewController();
///
/// PlatformWebViewWidgetCreationParams params =
/// PlatformWebViewWidgetCreationParams(
/// controller: controller.platform,
/// layoutDirection: TextDirection.ltr,
/// gestureRecognizers: const <Factory<OneSequenceGestureRecognizer>>{},
/// );
///
/// if (WebViewPlatform.instance is WebKitWebViewPlatform) {
/// params = WebKitWebViewWidgetCreationParams
/// .fromPlatformWebViewWidgetCreationParams(
/// params,
/// );
/// } else if (WebViewPlatform.instance is AndroidWebViewPlatform) {
/// params = AndroidWebViewWidgetCreationParams
/// .fromPlatformWebViewWidgetCreationParams(
/// params,
/// );
/// }
///
/// final WebViewWidget webViewWidget =
/// WebViewWidget.fromPlatformCreationParams(
/// params: params,
/// );
/// ```
/// {@endtemplate}
WebViewWidget.fromPlatformCreationParams({
Key? key,
required PlatformWebViewWidgetCreationParams params,
}) : this.fromPlatform(key: key, platform: PlatformWebViewWidget(params));
/// Constructs a [WebViewWidget] from a specific platform implementation.
WebViewWidget.fromPlatform({super.key, required this.platform});
/// Implementation of [PlatformWebViewWidget] for the current platform.
final PlatformWebViewWidget platform;
/// The layout direction to use for the embedded WebView.
late final TextDirection layoutDirection = platform.params.layoutDirection;
/// Specifies which gestures should be consumed by the web view.
///
/// It is possible for other gesture recognizers to be competing with the web
/// view on pointer events, e.g. if the web view is inside a [ListView] the
/// [ListView] will want to handle vertical drags. The web view will claim
/// gestures that are recognized by any of the recognizers on this list.
///
/// When `gestureRecognizers` is empty (default), the web view will only
/// handle pointer events for gestures that were not claimed by any other
/// gesture recognizer.
late final Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers =
platform.params.gestureRecognizers;
@override
Widget build(BuildContext context) {
return platform.build(context);
}
}
| packages/packages/webview_flutter/webview_flutter/lib/src/webview_widget.dart/0 | {'file_path': 'packages/packages/webview_flutter/webview_flutter/lib/src/webview_widget.dart', 'repo_id': 'packages', 'token_count': 1398} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
/// A message that was sent by JavaScript code running in a [WebView].
///
/// Platform specific implementations can add additional fields by extending
/// this class and providing a factory method that takes the
/// [JavaScriptMessage] as a parameter.
///
/// {@tool sample}
/// This example demonstrates how to extend the [JavaScriptMessage] to
/// provide additional platform specific parameters.
///
/// When extending [JavaScriptMessage] additional parameters should always
/// accept `null` or have a default value to prevent breaking changes.
///
/// ```dart
/// @immutable
/// class WKWebViewScriptMessage extends JavaScriptMessage {
/// WKWebViewScriptMessage._(
/// JavaScriptMessage javaScriptMessage,
/// this.extraData,
/// ) : super(javaScriptMessage.message);
///
/// factory WKWebViewScriptMessage.fromJavaScripMessage(
/// JavaScriptMessage javaScripMessage, {
/// String? extraData,
/// }) {
/// return WKWebViewScriptMessage._(
/// javaScriptMessage,
/// extraData: extraData,
/// );
/// }
///
/// final String? extraData;
/// }
/// ```
/// {@end-tool}
@immutable
class JavaScriptMessage {
/// Creates a new JavaScript message object.
const JavaScriptMessage({
required this.message,
});
/// The contents of the message that was sent by the JavaScript code.
final String message;
}
| packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_message.dart/0 | {'file_path': 'packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_message.dart', 'repo_id': 'packages', 'token_count': 440} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
/// A cookie that can be set globally for all web views using [WebViewCookieManagerPlatform].
@immutable
class WebViewCookie {
/// Creates a new [WebViewCookieDelegate]
const WebViewCookie({
required this.name,
required this.value,
required this.domain,
this.path = '/',
});
/// The cookie-name of the cookie.
///
/// Its value should match "cookie-name" in RFC6265bis:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-02#section-4.1.1
final String name;
/// The cookie-value of the cookie.
///
/// Its value should match "cookie-value" in RFC6265bis:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-02#section-4.1.1
final String value;
/// The domain-value of the cookie.
///
/// Its value should match "domain-value" in RFC6265bis:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-02#section-4.1.1
final String domain;
/// The path-value of the cookie, set to `/` by default.
///
/// Its value should match "path-value" in RFC6265bis:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-02#section-4.1.1
final String path;
}
| packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_cookie.dart/0 | {'file_path': 'packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_cookie.dart', 'repo_id': 'packages', 'token_count': 482} |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: unnecessary_statements
import 'package:flutter_test/flutter_test.dart';
import 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart'
as main_file;
void main() {
test(
'ensures webview_flutter_platform_interface.dart exports classes in types directory',
() {
main_file.JavaScriptConsoleMessage;
main_file.JavaScriptLogLevel;
main_file.JavaScriptMessage;
main_file.JavaScriptMode;
main_file.LoadRequestMethod;
main_file.NavigationDecision;
main_file.NavigationRequest;
main_file.NavigationRequestCallback;
main_file.PageEventCallback;
main_file.PlatformNavigationDelegateCreationParams;
main_file.PlatformWebViewControllerCreationParams;
main_file.PlatformWebViewCookieManagerCreationParams;
main_file.PlatformWebViewPermissionRequest;
main_file.PlatformWebViewWidgetCreationParams;
main_file.ProgressCallback;
main_file.WebViewPermissionResourceType;
main_file.WebResourceRequest;
main_file.WebResourceResponse;
main_file.WebResourceError;
main_file.WebResourceErrorCallback;
main_file.WebViewCookie;
main_file.WebResourceErrorType;
main_file.UrlChange;
},
);
}
| packages/packages/webview_flutter/webview_flutter_platform_interface/test/webview_flutter_platform_interface_export_test.dart/0 | {'file_path': 'packages/packages/webview_flutter/webview_flutter_platform_interface/test/webview_flutter_platform_interface_export_test.dart', 'repo_id': 'packages', 'token_count': 517} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.