text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
export 'news_data_source_provider.dart';
export 'user_provider.dart';
| news_toolkit/flutter_news_example/api/lib/src/middleware/middleware.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/middleware/middleware.dart",
"repo_id": "news_toolkit",
"token_count": 26
} | 912 |
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}
@JsonS... | 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
} | 913 |
/// 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_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
} | 914 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'post_grid_tile_block.dart';
// **************************************************************************
//... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 988
} | 915 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'spacer_block.dart';
// **************************************************************************
// JsonSer... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 466
} | 916 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'video_introduction_block.dart';
// *************************************************************************... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 591
} | 917 |
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(20... | 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
} | 918 |
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 {... | 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
} | 919 |
export 'bloc/full_screen_ads_bloc.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/ads/ads.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/ads/ads.dart",
"repo_id": "news_toolkit",
"token_count": 30
} | 920 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/analytics/analytics.dart';
import 'package:flutter_news_example/app/app.dart';
class AuthenticatedUserListener extends StatelessWidget {
const AuthenticatedUserListener({
required this.ch... | news_toolkit/flutter_news_example/lib/app/widgets/authenticated_user_listener.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/app/widgets/authenticated_user_listener.dart",
"repo_id": "news_toolkit",
"token_count": 354
} | 921 |
import 'dart:async';
import 'package:collection/collection.dart';
import 'package:equatable/equatable.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_repository/news_repository.dart';
part 'categories_event.dart';
part 'categories_s... | news_toolkit/flutter_news_example/lib/categories/bloc/categories_bloc.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/categories/bloc/categories_bloc.dart",
"repo_id": "news_toolkit",
"token_count": 609
} | 922 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
/// Renders a widget containing a progress indicator that calls
/// [onPresented] when the item becomes visible.
class CategoryFeedLoaderItem extends StatefulWidget {
const CategoryFeedLoaderItem({super.key, this.onPresented});
/// A cal... | news_toolkit/flutter_news_example/lib/feed/widgets/category_feed_loader_item.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/feed/widgets/category_feed_loader_item.dart",
"repo_id": "news_toolkit",
"token_count": 282
} | 923 |
export 'bloc/login_bloc.dart';
export 'bloc/login_with_email_link_bloc.dart';
export 'view/view.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/login/login.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/login/login.dart",
"repo_id": "news_toolkit",
"token_count": 56
} | 924 |
export 'view/view.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/navigation/navigation.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/navigation/navigation.dart",
"repo_id": "news_toolkit",
"token_count": 22
} | 925 |
part of 'notification_preferences_bloc.dart';
enum NotificationPreferencesStatus {
initial,
loading,
success,
failure,
}
class NotificationPreferencesState extends Equatable {
const NotificationPreferencesState({
required this.selectedCategories,
required this.status,
required this.categories,
... | news_toolkit/flutter_news_example/lib/notification_preferences/bloc/notification_preferences_state.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/notification_preferences/bloc/notification_preferences_state.dart",
"repo_id": "news_toolkit",
"token_count": 341
} | 926 |
part of 'search_bloc.dart';
abstract class SearchEvent extends Equatable {
const SearchEvent();
}
class SearchTermChanged extends SearchEvent {
const SearchTermChanged({this.searchTerm = ''});
final String searchTerm;
@override
List<Object?> get props => [searchTerm];
}
| news_toolkit/flutter_news_example/lib/search/bloc/search_event.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/search/bloc/search_event.dart",
"repo_id": "news_toolkit",
"token_count": 83
} | 927 |
part of 'subscriptions_bloc.dart';
enum PurchaseStatus {
none,
pending,
completed,
failed,
}
class SubscriptionsState extends Equatable {
const SubscriptionsState({
required this.subscriptions,
required this.purchaseStatus,
});
SubscriptionsState.initial()
: this(
subscriptions:... | news_toolkit/flutter_news_example/lib/subscriptions/dialog/bloc/subscriptions_state.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/subscriptions/dialog/bloc/subscriptions_state.dart",
"repo_id": "news_toolkit",
"token_count": 274
} | 928 |
export 'terms_of_service_body.dart';
| news_toolkit/flutter_news_example/lib/terms_of_service/widgets/widgets.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/terms_of_service/widgets/widgets.dart",
"repo_id": "news_toolkit",
"token_count": 14
} | 929 |
include: package:very_good_analysis/analysis_options.5.1.0.yaml
| news_toolkit/flutter_news_example/packages/ads_consent_client/analysis_options.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/ads_consent_client/analysis_options.yaml",
"repo_id": "news_toolkit",
"token_count": 23
} | 930 |
include: package:very_good_analysis/analysis_options.5.1.0.yaml
analyzer:
exclude:
- lib/src/generated/**
| news_toolkit/flutter_news_example/packages/app_ui/analysis_options.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/analysis_options.yaml",
"repo_id": "news_toolkit",
"token_count": 43
} | 931 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:gallery/colors/colors.dart';
import 'package:gallery/spacing/spacing.dart';
import 'package:gallery/typography/typography.dart';
import 'package:gallery/widgets/widgets.dart';
void main() => runApp(const MyApp());
class MyApp... | news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/main.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/main.dart",
"repo_id": "news_toolkit",
"token_count": 1037
} | 932 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
/// The app consists of two main text style definitions: UI and Content.
///
/// Content text style is primarily used for all content-based components,
/// e.g. news feed including articles and sections, while the UI text style
/// is used fo... | news_toolkit/flutter_news_example/packages/app_ui/lib/src/typography/app_text_styles.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/lib/src/typography/app_text_styles.dart",
"repo_id": "news_toolkit",
"token_count": 2432
} | 933 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockingjay/mockingjay.dart';
import '../helpers/helpers.dart';
class MockFunction extends Mock {
void call();
}
void main() {
group('AppBackButton', () {
testWidgets('... | news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_back_button_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_back_button_test.dart",
"repo_id": "news_toolkit",
"token_count": 974
} | 934 |
import 'package:article_repository/article_repository.dart';
import 'package:clock/clock.dart';
import 'package:flutter_news_example_api/client.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class MockFlutterNewsExampleApiClient extends Mock
implements FlutterNewsExampleApiClient ... | news_toolkit/flutter_news_example/packages/article_repository/test/src/article_repository_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/article_repository/test/src/article_repository_test.dart",
"repo_id": "news_toolkit",
"token_count": 4678
} | 935 |
import 'package:authentication_client/authentication_client.dart';
import 'package:firebase_auth/firebase_auth.dart' as firebase_auth;
import 'package:flutter_facebook_auth/flutter_facebook_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:sign_in_with_apple/sign_in_with_apple.dart';
impo... | news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/lib/src/firebase_authentication_client.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/lib/src/firebase_authentication_client.dart",
"repo_id": "news_toolkit",
"token_count": 3605
} | 936 |
# email_launcher
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
A package to open an external email app on Android and iOS.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licen... | news_toolkit/flutter_news_example/packages/email_launcher/README.md/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/email_launcher/README.md",
"repo_id": "news_toolkit",
"token_count": 173
} | 937 |
# in_app_purchase_repository
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
A repository that manages user in-app purchases.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/lice... | news_toolkit/flutter_news_example/packages/in_app_purchase_repository/README.md/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/in_app_purchase_repository/README.md",
"repo_id": "news_toolkit",
"token_count": 177
} | 938 |
import 'package:flutter/material.dart' hide ProgressIndicator;
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/src/widgets/widgets.dart';
/// {@template banner_ad}
/// A reusable banner ad block widget.
/// {@endtemplate}
class BannerAd extends StatelessWidget {
/// {@macro banner_ad}
... | news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/banner_ad.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/banner_ad.dart",
"repo_id": "news_toolkit",
"token_count": 289
} | 939 |
import 'package:flutter/material.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/news_blocks_ui.dart';
/// {@template post_medium}
/// A reusable post medium block widget.
/// {@endtemplate}
class PostMedium extends StatelessWidget {
/// {@macro post_medium}
const PostMedium({r... | news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/post_medium.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/post_medium.dart",
"repo_id": "news_toolkit",
"token_count": 482
} | 940 |
/// {@template ads_retry_policy}
/// A retry policy for ads.
/// {@endtemplate}
class AdsRetryPolicy {
/// {@macro ads_retry_policy}
const AdsRetryPolicy({
this.maxRetryCount = 3,
this.retryIntervals = const [
Duration(seconds: 1),
Duration(seconds: 2),
Duration(seconds: 4),
],
});
... | news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/ads_retry_policy.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/ads_retry_policy.dart",
"repo_id": "news_toolkit",
"token_count": 246
} | 941 |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:video_player_platform_interface/video_player_platform_interface.dart';
class FakeVideoPlayerPlatform extends VideoPlayerPlatform {
Completer<bool> initialized = Completer<bool>();
List<String> call... | news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/fake_video_player_platform.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/fake_video_player_platform.dart",
"repo_id": "news_toolkit",
"token_count": 924
} | 942 |
// ignore_for_file: unnecessary_const, prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail_image_network/mocktail_image_network.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/news_blocks_ui.dar... | news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/post_grid_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/post_grid_test.dart",
"repo_id": "news_toolkit",
"token_count": 1297
} | 943 |
// ignore_for_file: unnecessary_const, prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail_image_network/mocktail_image_network.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_blocks_ui/news_blocks_ui.dar... | news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/slideshow_introduction_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/slideshow_introduction_test.dart",
"repo_id": "news_toolkit",
"token_count": 1878
} | 944 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart' hide ProgressIndicator;
import 'package:flutter_test/flutter_test.dart';
import 'package:news_blocks_ui/src/widgets/widgets.dart';
import 'package:video_player/video_player.dart';
import 'package:video_player_platform_interface/video_... | news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/inline_video_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/inline_video_test.dart",
"repo_id": "news_toolkit",
"token_count": 2382
} | 945 |
# news_repository
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
A repository that manages content feed data.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_... | news_toolkit/flutter_news_example/packages/news_repository/README.md/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/news_repository/README.md",
"repo_id": "news_toolkit",
"token_count": 169
} | 946 |
export 'src/notifications_client.dart';
| news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/lib/notifications_client.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/lib/notifications_client.dart",
"repo_id": "news_toolkit",
"token_count": 13
} | 947 |
part of 'notifications_repository.dart';
/// Storage keys for the [NotificationsStorage].
abstract class NotificationsStorageKeys {
/// Whether the notifications are enabled.
static const notificationsEnabled = '__notifications_enabled_storage_key__';
/// The list of user's categories preferences.
static cons... | news_toolkit/flutter_news_example/packages/notifications_repository/lib/src/notifications_storage.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/notifications_repository/lib/src/notifications_storage.dart",
"repo_id": "news_toolkit",
"token_count": 649
} | 948 |
name: permission_client
description: A client that handles requesting permissions on a device.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
permission_handler: ^11.0.0
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.2
very_go... | news_toolkit/flutter_news_example/packages/permission_client/pubspec.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/permission_client/pubspec.yaml",
"repo_id": "news_toolkit",
"token_count": 139
} | 949 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:share_launcher/share_launcher.dart';
import 'package:share_plus_platform_interface/share_plus... | news_toolkit/flutter_news_example/packages/share_launcher/test/src/share_launcher_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/share_launcher/test/src/share_launcher_test.dart",
"repo_id": "news_toolkit",
"token_count": 646
} | 950 |
include: package:very_good_analysis/analysis_options.5.1.0.yaml
| news_toolkit/flutter_news_example/packages/storage/storage/analysis_options.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/storage/storage/analysis_options.yaml",
"repo_id": "news_toolkit",
"token_count": 23
} | 951 |
name: flutter_news_example
version: 0.0.1+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.7.6"
dependencies:
ads_consent_client:
path: packages/ads_consent_client
analytics_repository:
path: packages/analytics_repository
app_ui:
path: packages/app_ui
article_repository:
... | news_toolkit/flutter_news_example/pubspec.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/pubspec.yaml",
"repo_id": "news_toolkit",
"token_count": 1151
} | 952 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/feed/feed.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:news_blocks/news_blocks.dart';
void main() {
group('FeedState', () {
test('initial has correct status', () {
expect(
FeedState.initia... | news_toolkit/flutter_news_example/test/feed/bloc/feed_state_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/test/feed/bloc/feed_state_test.dart",
"repo_id": "news_toolkit",
"token_count": 1014
} | 953 |
// ignore_for_file: prefer_const_constructors
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_news_example/login/login.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:user_repository/user_repository.dart';
class M... | news_toolkit/flutter_news_example/test/login/bloc/login_with_email_link_bloc_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/test/login/bloc/login_with_email_link_bloc_test.dart",
"repo_id": "news_toolkit",
"token_count": 2731
} | 954 |
// ignore_for_file: prefer_const_constructors
// ignore_for_file: prefer_const_literals_to_create_immutables
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_news_example/newsletter/newsletter.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:form_inputs/form_inputs.dart';
impor... | news_toolkit/flutter_news_example/test/newsletter/bloc/newsletter_bloc_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/test/newsletter/bloc/newsletter_bloc_test.dart",
"repo_id": "news_toolkit",
"token_count": 1362
} | 955 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example/search/search.dart';
import 'package:flutter_news_example_api/client.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('SearchState', () {
test('has correct initial status', () {
expect(
co... | news_toolkit/flutter_news_example/test/search/bloc/search_state_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/test/search/bloc/search_state_test.dart",
"repo_id": "news_toolkit",
"token_count": 1260
} | 956 |
// ignore_for_file: prefer_const_constructors
import 'package:app_ui/app_ui.dart';
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 '../../helpers/helpers.dart';
void main() {
const tapMeTex... | news_toolkit/flutter_news_example/test/terms_of_service/view/terms_of_service_page_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/test/terms_of_service/view/terms_of_service_page_test.dart",
"repo_id": "news_toolkit",
"token_count": 889
} | 957 |
// Replace with google-services.json from the Firebase Console // | news_toolkit/tool/generator/static/google-services.json/0 | {
"file_path": "news_toolkit/tool/generator/static/google-services.json",
"repo_id": "news_toolkit",
"token_count": 14
} | 958 |
#!/bin/bash
# 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.
set -e
# To set FETCH_HEAD for "git merge-base" to work
git fetch origin main
cd script/tool
dart pub get
| packages/.ci/scripts/prepare_tool.sh/0 | {
"file_path": "packages/.ci/scripts/prepare_tool.sh",
"repo_id": "packages",
"token_count": 86
} | 959 |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: create simulator
script: .ci/scripts/create_simulator.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: download ... | packages/.ci/targets/ios_platform_tests.yaml/0 | {
"file_path": "packages/.ci/targets/ios_platform_tests.yaml",
"repo_id": "packages",
"token_count": 625
} | 960 |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: dart unit tests
script: .ci/scripts/dart_unit_tests_win32.sh
| packages/.ci/targets/windows_dart_unit_tests.yaml/0 | {
"file_path": "packages/.ci/targets/windows_dart_unit_tests.yaml",
"repo_id": "packages",
"token_count": 81
} | 961 |
// 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';
/// Used by [PageTransitionsTheme] to define a page route transition animation
/// in which the outgoing page fade... | packages/packages/animations/lib/src/fade_through_transition.dart/0 | {
"file_path": "packages/packages/animations/lib/src/fade_through_transition.dart",
"repo_id": "packages",
"token_count": 3683
} | 962 |
# Camera Plugin
<?code-excerpt path-base="example/lib"?>
[](https://pub.dev/packages/camera)
A Flutter plugin for iOS, Android and Web allowing access to the device cameras.
| | Android | iOS | Web |
|----------------|---... | packages/packages/camera/camera/README.md/0 | {
"file_path": "packages/packages/camera/camera/README.md",
"repo_id": "packages",
"token_count": 1757
} | 963 |
// 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.
export 'package:camera_platform_interface/camera_platform_interface.dart'
show
CameraDescription,
CameraException,
CameraLensDi... | packages/packages/camera/camera/lib/camera.dart/0 | {
"file_path": "packages/packages/camera/camera/lib/camera.dart",
"repo_id": "packages",
"token_count": 208
} | 964 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.camera">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
</manifest>
| packages/packages/camera/camera_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "packages/packages/camera/camera_android/android/src/main/AndroidManifest.xml",
"repo_id": "packages",
"token_count": 90
} | 965 |
// 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.
package io.flutter.plugins.camera;
import static android.os.SystemClock.uptimeMillis;
import android.graphics.SurfaceTexture;
import android.opengl.EGL14... | packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/VideoRenderer.java/0 | {
"file_path": "packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/VideoRenderer.java",
"repo_id": "packages",
"token_count": 5847
} | 966 |
// 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.
package io.flutter.plugins.camera.features.noisereduction;
import android.annotation.SuppressLint;
import android.hardware.camera2.CaptureRequest;
import ... | packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionFeature.java/0 | {
"file_path": "packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionFeature.java",
"repo_id": "packages",
"token_count": 1246
} | 967 |
// 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.
package io.flutter.plugins.camera.media;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.*;
import android.media.Camcorde... | packages/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/media/MediaRecorderBuilderTest.java/0 | {
"file_path": "packages/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/media/MediaRecorderBuilderTest.java",
"repo_id": "packages",
"token_count": 3859
} | 968 |
// 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/services.dart';
/// Parses a string into a correspondin... | packages/packages/camera/camera_android/lib/src/utils.dart/0 | {
"file_path": "packages/packages/camera/camera_android/lib/src/utils.dart",
"repo_id": "packages",
"token_count": 611
} | 969 |
// 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.
package io.flutter.plugins.camerax;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.camera.core.ImageAna... | packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/AnalyzerHostApiImpl.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/AnalyzerHostApiImpl.java",
"repo_id": "packages",
"token_count": 1309
} | 970 |
// 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.
package io.flutter.plugins.camerax;
import android.hardware.camera2.CaptureRequest;
import androidx.annotation.NonNull;
import androidx.annotation.OptIn;
... | packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CaptureRequestOptionsHostApiImpl.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CaptureRequestOptionsHostApiImpl.java",
"repo_id": "packages",
"token_count": 1529
} | 971 |
// 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.
package io.flutter.plugins.camerax;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.lifecycle.LiveData;
... | packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/LiveDataFlutterApiWrapper.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/LiveDataFlutterApiWrapper.java",
"repo_id": "packages",
"token_count": 725
} | 972 |
// 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.
package io.flutter.plugins.camerax;
import androidx.annotation.NonNull;
import androidx.camera.video.Recording;
import io.flutter.plugin.common.BinaryMess... | packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/RecordingHostApiImpl.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/RecordingHostApiImpl.java",
"repo_id": "packages",
"token_count": 455
} | 973 |
// 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.
package io.flutter.plugins.camerax;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mocki... | packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/CameraStateErrorTest.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/CameraStateErrorTest.java",
"repo_id": "packages",
"token_count": 605
} | 974 |
// 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.
package io.flutter.plugins.camerax;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito... | packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/MeteringPointTest.java/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/MeteringPointTest.java",
"repo_id": "packages",
"token_count": 3273
} | 975 |
// 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 'dart:math' show Point;
import 'package:async/async.dart';
import 'package:camera_platform_interface/camera_platform_interface... | packages/packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart",
"repo_id": "packages",
"token_count": 16281
} | 976 |
// 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' show BinaryMessenger;
import 'package:meta/meta.dart' show immutable;
import 'camerax_library.g.dart';
import 'inst... | packages/packages/camera/camera_android_camerax/lib/src/focus_metering_action.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/lib/src/focus_metering_action.dart",
"repo_id": "packages",
"token_count": 1562
} | 977 |
// 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' show BinaryMessenger;
import 'package:meta/meta.dart' show immutable;
import 'android_camera_camerax_flutter_api_im... | packages/packages/camera/camera_android_camerax/lib/src/recording.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/lib/src/recording.dart",
"repo_id": "packages",
"token_count": 1202
} | 978 |
// 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/camera2_camera_control.dart';
import 'package:camera_android_camerax/src/camera_control.dart';
import 'package:c... | packages/packages/camera/camera_android_camerax/test/camera2_camera_control_test.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/test/camera2_camera_control_test.dart",
"repo_id": "packages",
"token_count": 1498
} | 979 |
// 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/device_orientation_manager.dart';
import 'package:camera_android_camerax/src/surface.dart';
import 'package:came... | packages/packages/camera/camera_android_camerax/test/device_orientation_manager_test.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/test/device_orientation_manager_test.dart",
"repo_id": "packages",
"token_count": 1223
} | 980 |
// 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/instance_manager.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('InstanceManager... | packages/packages/camera/camera_android_camerax/test/instance_manager_test.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/test/instance_manager_test.dart",
"repo_id": "packages",
"token_count": 1822
} | 981 |
// Mocks generated by Mockito 5.4.4 from annotations
// in camera_android_camerax/test/quality_selector_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'package:camera_android_camerax/src/camera_info.dart' as _i5;
import ... | packages/packages/camera/camera_android_camerax/test/quality_selector_test.mocks.dart/0 | {
"file_path": "packages/packages/camera/camera_android_camerax/test/quality_selector_test.mocks.dart",
"repo_id": "packages",
"token_count": 2818
} | 982 |
// 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 camera_avfoundation.Test;
@import AVFoundation;
@import XCTest;
@interface CameraPropertiesTests : XCTestCase
@end
@implementation CameraPropert... | packages/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPropertiesTests.m/0 | {
"file_path": "packages/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPropertiesTests.m",
"repo_id": "packages",
"token_count": 2057
} | 983 |
// 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 "FLTCam.h"
#import "FLTCam_Test.h"
#import "FLTSavePhotoDelegate.h"
#import "QueueUtils.h"
@import CoreMotion;
#import <libkern/OSAtomic.h>
@impl... | packages/packages/camera/camera_avfoundation/ios/Classes/FLTCam.m/0 | {
"file_path": "packages/packages/camera/camera_avfoundation/ios/Classes/FLTCam.m",
"repo_id": "packages",
"token_count": 20132
} | 984 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<ke... | packages/packages/camera/camera_avfoundation/ios/Resources/PrivacyInfo.xcprivacy/0 | {
"file_path": "packages/packages/camera/camera_avfoundation/ios/Resources/PrivacyInfo.xcprivacy",
"repo_id": "packages",
"token_count": 169
} | 985 |
// 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';
import 'camera_image_data.dart';
/// Options wrapper for [CameraPlatform.startVideoCapturing] parameters.
@immu... | packages/packages/camera/camera_platform_interface/lib/src/types/video_capture_options.dart/0 | {
"file_path": "packages/packages/camera/camera_platform_interface/lib/src/types/video_capture_options.dart",
"repo_id": "packages",
"token_count": 513
} | 986 |
// 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() {
test('Resoluti... | packages/packages/camera/camera_platform_interface/test/types/resolution_preset_test.dart/0 | {
"file_path": "packages/packages/camera/camera_platform_interface/test/types/resolution_preset_test.dart",
"repo_id": "packages",
"token_count": 278
} | 987 |
// 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_implementing_value_types
import 'dart:async';
import 'dart:html';
import 'dart:ui';
import 'package:camera_web/src/camera.dart'... | packages/packages/camera/camera_web/example/integration_test/helpers/mocks.dart/0 | {
"file_path": "packages/packages/camera/camera_web/example/integration_test/helpers/mocks.dart",
"repo_id": "packages",
"token_count": 1385
} | 988 |
// 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';
/// The interface for a CrossFile.
///
/// A CrossFile is a container that wraps the path of a selected
/... | packages/packages/cross_file/lib/src/types/base.dart/0 | {
"file_path": "packages/packages/cross_file/lib/src/types/base.dart",
"repo_id": "packages",
"token_count": 942
} | 989 |
name: css_colors
description: Defines constant dart:ui Color objects for CSS colors (for use in Flutter code).
repository: https://github.com/flutter/packages/tree/main/packages/css_colors
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+css_colors%22
version: 1.1.4
envir... | packages/packages/css_colors/pubspec.yaml/0 | {
"file_path": "packages/packages/css_colors/pubspec.yaml",
"repo_id": "packages",
"token_count": 198
} | 990 |
#include "Generated.xcconfig"
| packages/packages/dynamic_layouts/example/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "packages/packages/dynamic_layouts/example/ios/Flutter/Debug.xcconfig",
"repo_id": "packages",
"token_count": 12
} | 991 |
#include "ephemeral/Flutter-Generated.xcconfig"
| packages/packages/dynamic_layouts/example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "packages/packages/dynamic_layouts/example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "packages",
"token_count": 19
} | 992 |
// 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.
package androidx.test.espresso.flutter.action;
import android.view.View;
import androidx.test.annotation.ExperimentalTestApi;
import androidx.test.espress... | packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/action/SyntheticClickAction.java/0 | {
"file_path": "packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/action/SyntheticClickAction.java",
"repo_id": "packages",
"token_count": 461
} | 993 |
// 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.
package androidx.test.espresso.flutter.internal.protocol.impl;
/**
* Represents a condition that waits until no pending frame is scheduled in the Flutter... | packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/NoPendingFrameCondition.java/0 | {
"file_path": "packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/NoPendingFrameCondition.java",
"repo_id": "packages",
"token_count": 125
} | 994 |
# extension_google_sign_in_as_googleapis_auth
A bridge package between Flutter's [`google_sign_in` plugin](https://pub.dev/packages/google_sign_in) and Dart's [`googleapis` package](https://pub.dev/packages/googleapis), that is able to create [`googleapis_auth`-like `AuthClient` instances](https://pub.dev/documentatio... | packages/packages/extension_google_sign_in_as_googleapis_auth/README.md/0 | {
"file_path": "packages/packages/extension_google_sign_in_as_googleapis_auth/README.md",
"repo_id": "packages",
"token_count": 747
} | 995 |
# file_selector
<?code-excerpt path-base="example/lib"?>
[](https://pub.dartlang.org/packages/file_selector)
A Flutter plugin that manages files and interactions with file dialogs.
| | Android | iOS | Linux | macOS | Web | Windows |
... | packages/packages/file_selector/file_selector/README.md/0 | {
"file_path": "packages/packages/file_selector/file_selector/README.md",
"repo_id": "packages",
"token_count": 1794
} | 996 |
name: file_selector
description: Flutter plugin for opening and saving files, or selecting
directories, using native file selection UI.
repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3... | packages/packages/file_selector/file_selector/pubspec.yaml/0 | {
"file_path": "packages/packages/file_selector/file_selector/pubspec.yaml",
"repo_id": "packages",
"token_count": 520
} | 997 |
// 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.
// Autogenerated from Pigeon (v9.2.5), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_co... | packages/packages/file_selector/file_selector_android/lib/src/file_selector_api.g.dart/0 | {
"file_path": "packages/packages/file_selector/file_selector_android/lib/src/file_selector_api.g.dart",
"repo_id": "packages",
"token_count": 2314
} | 998 |
// 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.
#include "include/file_selector_linux/file_selector_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtest/gtest.h>
#include <gtk/gtk.h>
#inc... | packages/packages/file_selector/file_selector_linux/linux/test/file_selector_plugin_test.cc/0 | {
"file_path": "packages/packages/file_selector/file_selector_linux/linux/test/file_selector_plugin_test.cc",
"repo_id": "packages",
"token_count": 3237
} | 999 |
name: example
description: Example for file_selector_windows implementation.
publish_to: 'none'
version: 1.0.0
environment:
sdk: ^3.1.0
flutter: ">=3.13.0"
dependencies:
file_selector_platform_interface: ^2.6.0
file_selector_windows:
# When depending on this package from a real application you should use:... | packages/packages/file_selector/file_selector_windows/example/pubspec.yaml/0 | {
"file_path": "packages/packages/file_selector/file_selector_windows/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 251
} | 1,000 |
<?code-excerpt path-base="example/lib"?>
# Adaptive Scaffold
`AdaptiveScaffold` reacts to input from users, devices and screen elements and
renders your Flutter application according to the
[Material 3](https://m3.material.io/foundations/adaptive-design/overview)
guidelines.
To see examples of using these widgets to... | packages/packages/flutter_adaptive_scaffold/README.md/0 | {
"file_path": "packages/packages/flutter_adaptive_scaffold/README.md",
"repo_id": "packages",
"token_count": 3435
} | 1,001 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/flutter_image/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "packages/packages/flutter_image/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,002 |
name: flutter_lints
description: Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_lints
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_lints%22... | packages/packages/flutter_lints/pubspec.yaml/0 | {
"file_path": "packages/packages/flutter_lints/pubspec.yaml",
"repo_id": "packages",
"token_count": 179
} | 1,003 |
# Markdown Example
Markdown allows you to easily include formatted text, images, and even formatted Dart code in your app.
## Titles
Setext-style
```
This is an H1
=============
This is an H2
-------------
```
Atx-style
```
# This is an H1
## This is an H2
###### This is an H6
```
Select the valid headers:
- ... | packages/packages/flutter_markdown/example/assets/original_markdown_example_data.md/0 | {
"file_path": "packages/packages/flutter_markdown/example/assets/original_markdown_example_data.md",
"repo_id": "packages",
"token_count": 1074
} | 1,004 |
// 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_markdown/flutter_markdown.dart';
// #docregion CreateMarkdownWithEmojiExtension
import 'p... | packages/packages/flutter_markdown/example/lib/readme_excerpts.dart/0 | {
"file_path": "packages/packages/flutter_markdown/example/lib/readme_excerpts.dart",
"repo_id": "packages",
"token_count": 571
} | 1,005 |
#include "ephemeral/Flutter-Generated.xcconfig"
| packages/packages/flutter_markdown/example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "packages/packages/flutter_markdown/example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "packages",
"token_count": 19
} | 1,006 |
// 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 'package:flutter_markdown/flutter_markdown.dart';
import 'package:flutter_test/flutter_test.dart';
import 'ut... | packages/packages/flutter_markdown/test/horizontal_rule_test.dart/0 | {
"file_path": "packages/packages/flutter_markdown/test/horizontal_rule_test.dart",
"repo_id": "packages",
"token_count": 1367
} | 1,007 |
// 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:fl... | packages/packages/flutter_markdown/test/text_test.dart/0 | {
"file_path": "packages/packages/flutter_markdown/test/text_test.dart",
"repo_id": "packages",
"token_count": 4997
} | 1,008 |
// 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 serves as the single point of entry into the `dart:io` APIs
// within Flutter tools.
//
// In order to make Flutter tools more testable, we us... | packages/packages/flutter_migrate/lib/src/base/io.dart/0 | {
"file_path": "packages/packages/flutter_migrate/lib/src/base/io.dart",
"repo_id": "packages",
"token_count": 4064
} | 1,009 |
// 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 'base/file_system.dart';
import 'utils.dart';
/// Data class that holds all results and generated directories from a computeMigration run.
///
///... | packages/packages/flutter_migrate/lib/src/result.dart/0 | {
"file_path": "packages/packages/flutter_migrate/lib/src/result.dart",
"repo_id": "packages",
"token_count": 830
} | 1,010 |
// 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/memory.dart';
import 'package:flutter_migrate/src/base/file_system.dart';
import 'package:flutter_migrate/src/base/logger.dart';
impor... | packages/packages/flutter_migrate/test/manifest_test.dart/0 | {
"file_path": "packages/packages/flutter_migrate/test/manifest_test.dart",
"repo_id": "packages",
"token_count": 6562
} | 1,011 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.