text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
// ignore_for_file: prefer_const_constructors import 'package:news_blocks/news_blocks.dart'; import 'package:test/test.dart'; void main() { group('BlockActionConverter', () { test('can (de)serialize BlockAction', () { final converter = BlockActionConverter(); const actions = <BlockAction>[ ...
news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/block_action_converter_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/block_action_converter_test.dart", "repo_id": "news_toolkit", "token_count": 245 }
869
// ignore_for_file: prefer_const_constructors import 'package:news_blocks/news_blocks.dart'; import 'package:test/test.dart'; void main() { group('SlideBlock', () { test('can be (de)serialized', () { final block = SlideBlock( caption: 'caption', description: 'description', photoCred...
news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/slide_block_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/slide_block_test.dart", "repo_id": "news_toolkit", "token_count": 209 }
870
import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:flutter_news_example_api/api.dart'; Future<Response> onRequest(RequestContext context, String id) async { if (context.request.method != HttpMethod.get) { return Response(statusCode: HttpStatus.methodNotAllowed); } final queryParam...
news_toolkit/flutter_news_example/api/routes/api/v1/articles/[id]/related.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/routes/api/v1/articles/[id]/related.dart", "repo_id": "news_toolkit", "token_count": 266 }
871
import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:flutter_news_example_api/api.dart'; import 'package:flutter_news_example_api/src/data/in_memory_news_data_source.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; import '../../../routes/api/v1/search/popular.d...
news_toolkit/flutter_news_example/api/test/routes/search/popular_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/test/routes/search/popular_test.dart", "repo_id": "news_toolkit", "token_count": 722 }
872
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:news_blocks/news_blocks.dart'; import 'package:news_blocks_ui/news_blocks_ui.dart'; /// {@template sticky_ad} /// A bottom-anchored, adaptive ad widget. /// https://developers.google.com/admob/flutter/banner/anchored-adaptive ...
news_toolkit/flutter_news_example/lib/ads/widgets/sticky_ad.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/ads/widgets/sticky_ad.dart", "repo_id": "news_toolkit", "token_count": 1991 }
873
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'article_bloc.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ArticleState _$ArticleStateFromJson(Map<String, dynamic> json...
news_toolkit/flutter_news_example/lib/article/bloc/article_bloc.g.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/article/bloc/article_bloc.g.dart", "repo_id": "news_toolkit", "token_count": 832 }
874
export 'bloc/categories_bloc.dart'; export 'widgets/widgets.dart';
news_toolkit/flutter_news_example/lib/categories/categories.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/categories/categories.dart", "repo_id": "news_toolkit", "token_count": 27 }
875
export 'cubit/home_cubit.dart'; export 'view/view.dart';
news_toolkit/flutter_news_example/lib/home/home.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/home/home.dart", "repo_id": "news_toolkit", "token_count": 26 }
876
import 'package:app_ui/app_ui.dart' show AppButton, AppSpacing, Assets; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.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...
news_toolkit/flutter_news_example/lib/login/widgets/login_form.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/login/widgets/login_form.dart", "repo_id": "news_toolkit", "token_count": 2967 }
877
import 'package:app_ui/app_ui.dart' show AppColors, AppSpacing; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_example/categories/categories.dart'; import 'package:flutter_news_example/home/home.dart'; import 'package:flutter_news_example/l10n/l10n....
news_toolkit/flutter_news_example/lib/navigation/widgets/nav_drawer_sections.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/navigation/widgets/nav_drawer_sections.dart", "repo_id": "news_toolkit", "token_count": 1476 }
878
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; class NotificationCategoryTile extends StatelessWidget { const NotificationCategoryTile({ required this.title, required this.trailing, this.onTap, super.key, }); final String title; fi...
news_toolkit/flutter_news_example/lib/notification_preferences/widgets/notification_category_tile.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/notification_preferences/widgets/notification_category_tile.dart", "repo_id": "news_toolkit", "token_count": 344 }
879
export 'search_page.dart';
news_toolkit/flutter_news_example/lib/search/view/view.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/search/view/view.dart", "repo_id": "news_toolkit", "token_count": 10 }
880
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_news_example/l10n/l10n.dart'; class ManageSubscriptionPage extends StatelessWidget { const ManageSubscriptionPage({super.key}); static MaterialPageRoute<void> route() { return MaterialPageRoute( builder:...
news_toolkit/flutter_news_example/lib/subscriptions/view/manage_subscription_page.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/subscriptions/view/manage_subscription_page.dart", "repo_id": "news_toolkit", "token_count": 1165 }
881
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_example/l10n/l10n.dart'; import 'package:flutter_news_example/theme_selector/theme_selector.dart'; /// A drop down menu to select a new [ThemeMode] /// /// Requires a [ThemeModeBloc] to be provided in ...
news_toolkit/flutter_news_example/lib/theme_selector/view/theme_selector.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/theme_selector/view/theme_selector.dart", "repo_id": "news_toolkit", "token_count": 654 }
882
// ignore_for_file: prefer_const_constructors, avoid_dynamic_calls import 'package:ads_consent_client/ads_consent_client.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart'; import 'package:mocktail/mocktail.dart'; class MockConsentInformation extends Mock...
news_toolkit/flutter_news_example/packages/ads_consent_client/test/src/ads_consent_client_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/ads_consent_client/test/src/ads_consent_client_test.dart", "repo_id": "news_toolkit", "token_count": 6169 }
883
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; class TypographyPage extends StatelessWidget { const TypographyPage({super.key}); static Route<void> route() { return MaterialPageRoute<void>(builder: (_) => const TypographyPage()); } @override Widget build(BuildContext conte...
news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/typography/typography_page.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/typography/typography_page.dart", "repo_id": "news_toolkit", "token_count": 1370 }
884
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; /// {@template app_email_text_field} /// An email text field component. /// {@endtemplate} class AppEmailTextField extends StatelessWidget { /// {@macro app_email_text_field} const AppEmailTextField({ super.key, this.controller, ...
news_toolkit/flutter_news_example/packages/app_ui/lib/src/widgets/app_email_text_field.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/lib/src/widgets/app_email_text_field.dart", "repo_id": "news_toolkit", "token_count": 569 }
885
// ignore_for_file: prefer_const_constructors import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import '../helpers/helpers.dart'; void main() { group('AppSwitch', () { testWidgets( 'renders onText ' 'when enabled', (tes...
news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_switch_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_switch_test.dart", "repo_id": "news_toolkit", "token_count": 733 }
886
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/authentication_client/authentication_client/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/authentication_client/authentication_client/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
887
# token_storage [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] [![License: MIT][license_badge]][license_link] Token storage for the authentication client. [license_badge]: https://img.shields.io/badge/license-MIT-blue.svg [license_link]: https://opensource.org/licenses/MIT [very_go...
news_toolkit/flutter_news_example/packages/authentication_client/token_storage/README.md/0
{ "file_path": "news_toolkit/flutter_news_example/packages/authentication_client/token_storage/README.md", "repo_id": "news_toolkit", "token_count": 166 }
888
name: email_launcher description: A package to open an external email app on Android and iOS version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: android_intent_plus: ^4.0.1 flutter: sdk: flutter platform: ^3.0.2 plugin_platform_interface: ^2.1.3 url_launcher: ^6.1.5 ur...
news_toolkit/flutter_news_example/packages/email_launcher/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/email_launcher/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 198 }
889
name: in_app_purchase_repository description: A repository that manages user purchase. version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: authentication_client: path: ../authentication_client/authentication_client equatable: ^2.0.3 flutter: sdk: flutter flutter_news_e...
news_toolkit/flutter_news_example/packages/in_app_purchase_repository/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/in_app_purchase_repository/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 221 }
890
export 'assets.gen.dart';
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/generated/generated.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/generated/generated.dart", "repo_id": "news_toolkit", "token_count": 10 }
891
import 'package:flutter/material.dart'; import 'package:news_blocks/news_blocks.dart'; import 'package:news_blocks_ui/news_blocks_ui.dart'; /// {@template section_header} /// A reusable section header news block widget. /// {@endtemplate} class SectionHeader extends StatelessWidget { /// {@macro section_header} co...
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/section_header.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/section_header.dart", "repo_id": "news_toolkit", "token_count": 421 }
892
import 'package:flutter/material.dart'; import 'package:news_blocks_ui/src/generated/generated.dart'; import 'package:video_player/video_player.dart'; /// Signature for [VideoPlayerController] builder. typedef VideoPlayerControllerBuilder = VideoPlayerController Function( Uri videoUrl, ); /// {@template inline_vide...
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/inline_video.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/inline_video.dart", "repo_id": "news_toolkit", "token_count": 1356 }
893
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; extension AppContentThemedTester on WidgetTester { Future<void> pumpContentThemedApp(Widget widgetUnderTest) async { await pumpWidget( MaterialApp( home: Scaffold( ...
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/pump_content_themed_app.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/pump_content_themed_app.dart", "repo_id": "news_toolkit", "token_count": 227 }
894
// ignore_for_file: unnecessary_const, prefer_const_constructors import 'package:flutter_test/flutter_test.dart'; import 'package:news_blocks_ui/src/widgets/widgets.dart'; import '../../helpers/helpers.dart'; void main() { group('PostContentPremiumCategory', () { testWidgets('renders premium text in uppercase'...
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/post_content_premium_category_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/post_content_premium_category_test.dart", "repo_id": "news_toolkit", "token_count": 258 }
895
name: news_repository description: A repository that exposes news data. version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: equatable: ^2.0.3 flutter_news_example_api: path: ../../api dev_dependencies: coverage: ^1.2.0 mocktail: ^1.0.2 test: ^1.21.4 very_good_analysis...
news_toolkit/flutter_news_example/packages/news_repository/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_repository/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 148 }
896
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/purchase_client/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/purchase_client/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
897
import 'package:shared_preferences/shared_preferences.dart'; import 'package:storage/storage.dart'; /// {@template persistent_storage} /// Storage that saves data in the device's persistent memory. /// {@endtemplate} class PersistentStorage implements Storage { /// {@macro persistent_storage} const PersistentStora...
news_toolkit/flutter_news_example/packages/storage/persistent_storage/lib/src/persistent_storage.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/storage/persistent_storage/lib/src/persistent_storage.dart", "repo_id": "news_toolkit", "token_count": 623 }
898
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/user_repository/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/user_repository/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
899
// ignore_for_file: prefer_const_constructors import 'package:flutter_news_example/ads/ads.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:news_blocks/news_blocks.dart'; import 'package:news_blocks_ui/news_blocks_ui.dart'; import '../../helpers/helpers.dart'; void main() { group('StickyAd',...
news_toolkit/flutter_news_example/test/ads/widgets/sticky_ad_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/ads/widgets/sticky_ad_test.dart", "repo_id": "news_toolkit", "token_count": 875 }
900
// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart' hide Image, Spacer; import 'package:flutter_news_example/article/article.dart'; import 'package:flutter_news_example/newsletter/newsletter.dart'; import 'package:flutter_news_example/slideshow/slideshow.dart'; import 'package:flutter_...
news_toolkit/flutter_news_example/test/article/widgets/article_content_item_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/article/widgets/article_content_item_test.dart", "repo_id": "news_toolkit", "token_count": 3575 }
901
// 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/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_example/feed/feed.dart'; import 'package:flutter_...
news_toolkit/flutter_news_example/test/feed/widgets/category_feed_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/feed/widgets/category_feed_test.dart", "repo_id": "news_toolkit", "token_count": 4848 }
902
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_news_example/login/login.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockingjay/mockingjay.dart'; import '../../helpers/helpers.dart'; void main() { const closeIcon = Key('loginWithEmailP...
news_toolkit/flutter_news_example/test/login/view/login_with_email_page_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/login/view/login_with_email_page_test.dart", "repo_id": "news_toolkit", "token_count": 637 }
903
// ignore_for_file: prefer_const_constructors import 'package:bloc_test/bloc_test.dart'; import 'package:flutter_news_example/notification_preferences/notification_preferences.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; import 'package:news_repository/news_repositor...
news_toolkit/flutter_news_example/test/notification_preferences/bloc/notification_preferences_bloc_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/notification_preferences/bloc/notification_preferences_bloc_test.dart", "repo_id": "news_toolkit", "token_count": 2167 }
904
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_news_example/search/search.dart'; import 'package:flutter_test/flutter_test.dart'; import '../../helpers/helpers.dart'; void main() { group('SearchTextField', () { testWidgets('changes controller.value when text...
news_toolkit/flutter_news_example/test/search/widgets/search_text_field_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/search/widgets/search_text_field_test.dart", "repo_id": "news_toolkit", "token_count": 394 }
905
// ignore_for_file: prefer_const_constructors import 'dart:async'; import 'package:authentication_client/authentication_client.dart'; import 'package:bloc_test/bloc_test.dart'; import 'package:flutter_news_example/user_profile/user_profile.dart'; import 'package:flutter_news_example_api/client.dart' hide User; import...
news_toolkit/flutter_news_example/test/user_profile/bloc/user_profile_bloc_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/user_profile/bloc/user_profile_bloc_test.dart", "repo_id": "news_toolkit", "token_count": 3640 }
906
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="facebook_app_id">{{flavors.facebook_app_id}}</string> <string name="facebook_client_token">{{flavors.facebook_client_token}}</string> <string name="twitter_redirect_uri_scheme">{{project_name.paramCase()}}</string> <string name="flavor_dee...
news_toolkit/tool/generator/static/strings.xml/0
{ "file_path": "news_toolkit/tool/generator/static/strings.xml", "repo_id": "news_toolkit", "token_count": 171 }
907
#!/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 # Ensure that the pods repos are up to date, since analyze will not check for # the latest versions of pods, so can use stale Flutter or Fl...
packages/.ci/scripts/update_pods.sh/0
{ "file_path": "packages/.ci/scripts/update_pods.sh", "repo_id": "packages", "token_count": 104 }
908
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. - n...
packages/.ci/targets/macos_build_all_packages.yaml/0
{ "file_path": "packages/.ci/targets/macos_build_all_packages.yaml", "repo_id": "packages", "token_count": 194 }
909
# This custom rule set only exists to allow opting out of the repository # default of enabling unawaited_futures. Please do NOT add more changes # here without consulting with #hackers-ecosystem on Discord. include: ../../analysis_options.yaml linter: rules: # Matches flutter/flutter, which disables this rule d...
packages/packages/animations/analysis_options.yaml/0
{ "file_path": "packages/packages/animations/analysis_options.yaml", "repo_id": "packages", "token_count": 106 }
910
// 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:animations/animations.dart'; import 'package:flutter/material.dart'; /// The demo page for [FadeScaleTransition]. class FadeScaleTransitio...
packages/packages/animations/example/lib/fade_scale_transition.dart/0
{ "file_path": "packages/packages/animations/example/lib/fade_scale_transition.dart", "repo_id": "packages", "token_count": 1922 }
911
// 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'; /// Determines which type of shared axis transition is used. enum SharedAxisTransitionType { /// Creates a share...
packages/packages/animations/lib/src/shared_axis_transition.dart/0
{ "file_path": "packages/packages/animations/lib/src/shared_axis_transition.dart", "repo_id": "packages", "token_count": 5944 }
912
<?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>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifi...
packages/packages/camera/camera/example/ios/Runner/Info.plist/0
{ "file_path": "packages/packages/camera/camera/example/ios/Runner/Info.plist", "repo_id": "packages", "token_count": 735 }
913
name: camera description: A Flutter plugin for controlling the camera. Supports previewing the camera feed, capturing images and video, and streaming image buffers to Dart. repository: https://github.com/flutter/packages/tree/main/packages/camera/camera issue_tracker: https://github.com/flutter/flutter/issues?q=is%...
packages/packages/camera/camera/pubspec.yaml/0
{ "file_path": "packages/packages/camera/camera/pubspec.yaml", "repo_id": "packages", "token_count": 381 }
914
// 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; import android.app.Activity; import androidx.annotation.NonNull; import io.flutter.plugins.camera.CameraProper...
packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/CameraFeatures.java/0
{ "file_path": "packages/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/CameraFeatures.java", "repo_id": "packages", "token_count": 3188 }
915
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=false
packages/packages/camera/camera_android/example/android/gradle.properties/0
{ "file_path": "packages/packages/camera/camera_android/example/android/gradle.properties", "repo_id": "packages", "token_count": 30 }
916
// 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.core.CameraControl; import io.flutter.plugin.common.BinaryM...
packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlFlutterApiImpl.java/0
{ "file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlFlutterApiImpl.java", "repo_id": "packages", "token_count": 319 }
917
// 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.util.Range; import androidx.annotation.NonNull; import androidx.camera.core.ExposureState; import io.fl...
packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ExposureStateFlutterApiImpl.java/0
{ "file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ExposureStateFlutterApiImpl.java", "repo_id": "packages", "token_count": 609 }
918
// 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.Observer; ...
packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ObserverHostApiImpl.java/0
{ "file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ObserverHostApiImpl.java", "repo_id": "packages", "token_count": 1102 }
919
// 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.app.Activity; import android.content.Context; import androidx.annotation.NonNull; import androidx.annot...
packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/SystemServicesHostApiImpl.java/0
{ "file_path": "packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/SystemServicesHostApiImpl.java", "repo_id": "packages", "token_count": 1307 }
920
// 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.ArgumentMatchers.any; import static org.mockito...
packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/DeviceOrientationManagerTest.java/0
{ "file_path": "packages/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/DeviceOrientationManagerTest.java", "repo_id": "packages", "token_count": 2355 }
921
// 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:meta/meta.dart' show immutable; import 'android_camera_camerax_flutter_api_impls.dart'; import 'ca...
packages/packages/camera/camera_android_camerax/lib/src/camera2_camera_control.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/lib/src/camera2_camera_control.dart", "repo_id": "packages", "token_count": 1576 }
922
// 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/services.dart' show BinaryMessenger; import 'package:meta/meta.dart' show immutable, protected; import 'andr...
packages/packages/camera/camera_android_camerax/lib/src/image_proxy.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/lib/src/image_proxy.dart", "repo_id": "packages", "token_count": 1482 }
923
// 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:camera_platform_interface/camera_platform_interface.dart' show CameraException; import 'package:flutter/services....
packages/packages/camera/camera_android_camerax/lib/src/system_services.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/lib/src/system_services.dart", "repo_id": "packages", "token_count": 1004 }
924
// 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/camera_info.dart'; import 'package:camera_android_camerax/src/camera_state.dart'; import 'package:camera_android...
packages/packages/camera/camera_android_camerax/test/camera_info_test.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/test/camera_info_test.dart", "repo_id": "packages", "token_count": 2393 }
925
// 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/fallback_strategy.dart'; import 'package:cam...
packages/packages/camera/camera_android_camerax/test/fallback_strategy_test.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/test/fallback_strategy_test.dart", "repo_id": "packages", "token_count": 937 }
926
// Mocks generated by Mockito 5.4.4 from annotations // in camera_android_camerax/test/metering_point_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 'p...
packages/packages/camera/camera_android_camerax/test/metering_point_test.mocks.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/test/metering_point_test.mocks.dart", "repo_id": "packages", "token_count": 2206 }
927
// Mocks generated by Mockito 5.4.4 from annotations // in camera_android_camerax/test/recording_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:mockito/mockito.dart' as _i1; import 'test_camerax_library.g.dart' as _i2; // ignore_for_file:...
packages/packages/camera/camera_android_camerax/test/recording_test.mocks.dart/0
{ "file_path": "packages/packages/camera/camera_android_camerax/test/recording_test.mocks.dart", "repo_id": "packages", "token_count": 950 }
928
name: camera_example description: Demonstrates how to use the camera plugin. publish_to: none environment: sdk: ^3.2.3 flutter: ">=3.16.6" dependencies: camera_avfoundation: # When depending on this package from a real application you should use: # camera_avfoundation: ^x.y.z # See https://dart.de...
packages/packages/camera/camera_avfoundation/example/pubspec.yaml/0
{ "file_path": "packages/packages/camera/camera_avfoundation/example/pubspec.yaml", "repo_id": "packages", "token_count": 289 }
929
## NEXT * Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. ## 0.3.2+4 * Updates minimum supported SDK version to Flutter 3.10/Dart 3.0. * Fixes new lint warnings. ## 0.3.2+3 * Migrates to `dart:ui_web` APIs. * Updates minimum supported SDK version to Flutter 3.13.0/Dart 3.1.0. ## 0.3.2+2 * Adds pu...
packages/packages/camera/camera_web/CHANGELOG.md/0
{ "file_path": "packages/packages/camera/camera_web/CHANGELOG.md", "repo_id": "packages", "token_count": 801 }
930
name: camera_web_integration_tests publish_to: none environment: sdk: ^3.1.0 flutter: ">=3.13.0" dependencies: camera_platform_interface: ^2.1.0 camera_web: path: ../ flutter: sdk: flutter dev_dependencies: async: ^2.5.0 cross_file: ^0.3.1 flutter_test: sdk: flutter integration_test: ...
packages/packages/camera/camera_web/example/pubspec.yaml/0
{ "file_path": "packages/packages/camera/camera_web/example/pubspec.yaml", "repo_id": "packages", "token_count": 164 }
931
name: camera_web description: A Flutter plugin for getting information about and controlling the camera on Web. repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_web issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22 version: 0.3.2+4 ...
packages/packages/camera/camera_web/pubspec.yaml/0
{ "file_path": "packages/packages/camera/camera_web/pubspec.yaml", "repo_id": "packages", "token_count": 302 }
932
// 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:web/web.dart'; /// Create anchor element with download attribute HTMLAnchorElement createAnchorElement(String href, String? suggestedName)...
packages/packages/cross_file/lib/src/web_helpers/web_helpers.dart/0
{ "file_path": "packages/packages/cross_file/lib/src/web_helpers/web_helpers.dart", "repo_id": "packages", "token_count": 364 }
933
## NEXT * Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. ## 0.0.1+1 * Removes obsolete null checks on non-nullable values. * Updates minimum supported SDK version to Flutter 3.3/Dart 2.18. * Aligns Dart and Flutter SDK constraints. * Updates minimum Flutter version to 3.0. ## 0.0.1 * Initial relea...
packages/packages/dynamic_layouts/CHANGELOG.md/0
{ "file_path": "packages/packages/dynamic_layouts/CHANGELOG.md", "repo_id": "packages", "token_count": 106 }
934
// 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 'staggered_layout_example.dart'; import 'wrap_layout_example.dart'; void main() { runApp(const MyApp());...
packages/packages/dynamic_layouts/example/lib/main.dart/0
{ "file_path": "packages/packages/dynamic_layouts/example/lib/main.dart", "repo_id": "packages", "token_count": 800 }
935
// 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 'render_dynamic_grid.dart'; import 'staggered_layout.dart'; import 'wrap_layout.dart'; /// A scrollable gri...
packages/packages/dynamic_layouts/lib/src/dynamic_grid.dart/0
{ "file_path": "packages/packages/dynamic_layouts/lib/src/dynamic_grid.dart", "repo_id": "packages", "token_count": 3148 }
936
// 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.api; import android.view.View; import androidx.test.espresso.UiController; import java.util.concurrent.Future; impo...
packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/FlutterAction.java/0
{ "file_path": "packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/FlutterAction.java", "repo_id": "packages", "token_count": 308 }
937
// 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.jsonrpc; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common....
packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/JsonRpcClient.java/0
{ "file_path": "packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/JsonRpcClient.java", "repo_id": "packages", "token_count": 2122 }
938
// 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; import static com.google.common.base.Preconditions.checkNotNull; import androidx.test.espr...
packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/WaitForConditionAction.java/0
{ "file_path": "packages/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/WaitForConditionAction.java", "repo_id": "packages", "token_count": 305 }
939
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
packages/packages/file_selector/file_selector/example/android/gradle.properties/0
{ "file_path": "packages/packages/file_selector/file_selector/example/android/gradle.properties", "repo_id": "packages", "token_count": 31 }
940
// 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/file_selector.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:path_p...
packages/packages/file_selector/file_selector/example/lib/open_text_page.dart/0
{ "file_path": "packages/packages/file_selector/file_selector/example/lib/open_text_page.dart", "repo_id": "packages", "token_count": 1081 }
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 'dart:typed_data'; import 'package:file_selector_android/src/file_selector_android.dart'; import 'package:file_selector_android/src/file_selector_a...
packages/packages/file_selector/file_selector_android/test/file_selector_android_test.dart/0
{ "file_path": "packages/packages/file_selector/file_selector_android/test/file_selector_android_test.dart", "repo_id": "packages", "token_count": 2169 }
942
## NEXT * Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. ## 0.9.2+1 * Adds pub topics to package metadata. * Updates minimum supported SDK version to Flutter 3.7/Dart 2.19. * Migrates `styleFrom` usage in examples off of deprecated `primary` and `onPrimary` parameters. ## 0.9.2 * Adds `getSaveLoca...
packages/packages/file_selector/file_selector_linux/CHANGELOG.md/0
{ "file_path": "packages/packages/file_selector/file_selector_linux/CHANGELOG.md", "repo_id": "packages", "token_count": 409 }
943
// 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:plugin_platform_interface/plugin_platform_interface.dart'; import '../../file_selector_platform_interface.dart'; import '../method_channel...
packages/packages/file_selector/file_selector_platform_interface/lib/src/platform_interface/file_selector_interface.dart/0
{ "file_path": "packages/packages/file_selector/file_selector_platform_interface/lib/src/platform_interface/file_selector_interface.dart", "repo_id": "packages", "token_count": 1279 }
944
// 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:file_selector_platform_interface/file_selector_platform_interface.dart'; import 'package:file_selector_web/file_...
packages/packages/file_selector/file_selector_web/example/integration_test/file_selector_web_test.dart/0
{ "file_path": "packages/packages/file_selector/file_selector_web/example/integration_test/file_selector_web_test.dart", "repo_id": "packages", "token_count": 1791 }
945
// 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', cppOpt...
packages/packages/file_selector/file_selector_windows/pigeons/messages.dart/0
{ "file_path": "packages/packages/file_selector/file_selector_windows/pigeons/messages.dart", "repo_id": "packages", "token_count": 717 }
946
// 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. #ifndef PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_STRING_UTILS_H_ #define PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_STRING_UTILS_H_ #...
packages/packages/file_selector/file_selector_windows/windows/string_utils.h/0
{ "file_path": "packages/packages/file_selector/file_selector_windows/windows/string_utils.h", "repo_id": "packages", "token_count": 252 }
947
# Examples There are several examples listed in this directory: You can run the following commands in the example directory to see the appropriate demos: `flutter run` to see a more fully fledged functional usage of the AdaptiveLayout suite and some AdaptiveScaffold static methods. `flutter run lib/adaptive_layout_de...
packages/packages/flutter_adaptive_scaffold/example/README.md/0
{ "file_path": "packages/packages/flutter_adaptive_scaffold/example/README.md", "repo_id": "packages", "token_count": 124 }
948
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
packages/packages/flutter_adaptive_scaffold/example/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "packages/packages/flutter_adaptive_scaffold/example/macos/Runner/Configs/Release.xcconfig", "repo_id": "packages", "token_count": 32 }
949
# Image utilities for Flutter ## NetworkImageWithRetry Use `NetworkImageWithRetry` instead of `Image.network` to load images from the network with a retry mechanism. Example: <?code-excerpt "example/lib/readme_excerpts.dart (NetworkImageWithRetry)"?> ```dart const Image avatar = Image( image: NetworkImageWithRetr...
packages/packages/flutter_image/README.md/0
{ "file_path": "packages/packages/flutter_image/README.md", "repo_id": "packages", "token_count": 190 }
950
// 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_image/flutter_image.dart'; /// Demonstrates loading an image for the README. Image networkI...
packages/packages/flutter_image/example/lib/readme_excerpts.dart/0
{ "file_path": "packages/packages/flutter_image/example/lib/readme_excerpts.dart", "repo_id": "packages", "token_count": 161 }
951
## 0.6.22 * Introduces a new `MarkdownElementBuilder.isBlockElement()` method to specify if custom element is a block. ## 0.6.21+1 * Adds `onSelectionChanged` to the constructors of `Markdown` and `MarkdownBody`. ## 0.6.21 * Fixes support for `WidgetSpan` in `Text.rich` elements inside `MarkdownElementBuilder`. ...
packages/packages/flutter_markdown/CHANGELOG.md/0
{ "file_path": "packages/packages/flutter_markdown/CHANGELOG.md", "repo_id": "packages", "token_count": 2569 }
952
#include "Generated.xcconfig"
packages/packages/flutter_markdown/example/ios/Flutter/Debug.xcconfig/0
{ "file_path": "packages/packages/flutter_markdown/example/ios/Flutter/Debug.xcconfig", "repo_id": "packages", "token_count": 12 }
953
// 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'; // ignore_for_file: public_member_api_docs class DropdownMenu<T> extends StatelessWidget { DropdownMenu({ s...
packages/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart/0
{ "file_path": "packages/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart", "repo_id": "packages", "token_count": 980 }
954
// 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'; /// Defines which [TextStyle] objects to use for which Markdown elements....
packages/packages/flutter_markdown/lib/src/style_sheet.dart/0
{ "file_path": "packages/packages/flutter_markdown/lib/src/style_sheet.dart", "repo_id": "packages", "token_count": 11492 }
955
// 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:f...
packages/packages/flutter_markdown/test/inline_widget_test.dart/0
{ "file_path": "packages/packages/flutter_markdown/test/inline_widget_test.dart", "repo_id": "packages", "token_count": 933 }
956
// 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:io'; import 'common.dart'; import 'io.dart' as io; import 'logger.dart'; enum TerminalColor { red, green, blue,...
packages/packages/flutter_migrate/lib/src/base/terminal.dart/0
{ "file_path": "packages/packages/flutter_migrate/lib/src/base/terminal.dart", "repo_id": "packages", "token_count": 4289 }
957
// 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_migrate/src/base/context.dart'; import 'package:flutter_migrate/src/base/file_system.dart'; import 'package:flutter_migrate/src/bas...
packages/packages/flutter_migrate/test/abandon_test.dart/0
{ "file_path": "packages/packages/flutter_migrate/test/abandon_test.dart", "repo_id": "packages", "token_count": 1516 }
958
// 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:convert'; import 'dart:io' as io show IOSink, Stdout, StdoutException; import 'package:flutter_migrate/src/base/io.dart'...
packages/packages/flutter_migrate/test/src/fakes.dart/0
{ "file_path": "packages/packages/flutter_migrate/test/src/fakes.dart", "repo_id": "packages", "token_count": 2527 }
959
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="flutter_plugin_android_lifecycle_example" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:th...
packages/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/AndroidManifest.xml/0
{ "file_path": "packages/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/AndroidManifest.xml", "repo_id": "packages", "token_count": 391 }
960
dartdoc: categories: "Get started": markdown: doc/get-started.md name: Get started "Upgrading": markdown: doc/upgrading.md name: Upgrade an existing app "Configuration": markdown: doc/configuration.md name: Configuration "Navigation": markdown: doc/navigation....
packages/packages/go_router/dartdoc_options.yaml/0
{ "file_path": "packages/packages/go_router/dartdoc_options.yaml", "repo_id": "packages", "token_count": 531 }
961
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
packages/packages/go_router/example/android/gradle.properties/0
{ "file_path": "packages/packages/go_router/example/android/gradle.properties", "repo_id": "packages", "token_count": 31 }
962
// 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 'author.dart'; import 'book.dart'; /// Library data mock. final Library libraryInstance = Library() ..addBook( title: 'Left Hand of Darknes...
packages/packages/go_router/example/lib/books/src/data/library.dart/0
{ "file_path": "packages/packages/go_router/example/lib/books/src/data/library.dart", "repo_id": "packages", "token_count": 753 }
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. import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() => runApp(App()); /// The main app. class App extends Stat...
packages/packages/go_router/example/lib/others/error_screen.dart/0
{ "file_path": "packages/packages/go_router/example/lib/others/error_screen.dart", "repo_id": "packages", "token_count": 1294 }
964
// 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'; /// To use a custom transition animation, provide a `pageBuilder` with ...
packages/packages/go_router/example/lib/transition_animations.dart/0
{ "file_path": "packages/packages/go_router/example/lib/transition_animations.dart", "repo_id": "packages", "token_count": 2441 }
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. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:go_router_examples/on_exit.dart' as example; void...
packages/packages/go_router/example/test/on_exit_test.dart/0
{ "file_path": "packages/packages/go_router/example/test/on_exit_test.dart", "repo_id": "packages", "token_count": 393 }
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. import 'dart:async'; import 'dart:math' as math; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'builder.dart'; ...
packages/packages/go_router/lib/src/delegate.dart/0
{ "file_path": "packages/packages/go_router/lib/src/delegate.dart", "repo_id": "packages", "token_count": 3122 }
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. import 'package:flutter/widgets.dart'; import 'package:meta/meta.dart'; import 'configuration.dart'; import 'misc/errors.dart'; import 'route.dart'; /// ...
packages/packages/go_router/lib/src/state.dart/0
{ "file_path": "packages/packages/go_router/lib/src/state.dart", "repo_id": "packages", "token_count": 3144 }
968