text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// 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.webviewflutter;
import android.webkit.WebView;
import androidx.annotation.NonNull;
import io.flutter.plugins.webviewflutter.Gen... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterAssetManagerHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterAssetManagerHostApiImpl.java",
"repo_id": "packages",
"token_count": 471
} | 1,120 |
// 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.webviewflutter;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.os.Message;
imp... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientHostApiImpl.java",
"repo_id": "packages",
"token_count": 4957
} | 1,121 |
// 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.webviewflutter;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.verify;
import android.webkit... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/HttpAuthHandlerTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/HttpAuthHandlerTest.java",
"repo_id": "packages",
"token_count": 738
} | 1,122 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:flutte... | packages/packages/webview_flutter/webview_flutter_android/example/lib/main.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/example/lib/main.dart",
"repo_id": "packages",
"token_count": 10755
} | 1,123 |
// 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.
/// Helper method for creating callbacks methods with a weak reference.
///
/// Example:
/// ```
/// final JavascriptChannelRegistry javascriptChannelRegis... | packages/packages/webview_flutter/webview_flutter_android/lib/src/weak_reference_utils.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/lib/src/weak_reference_utils.dart",
"repo_id": "packages",
"token_count": 363
} | 1,124 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:webview_... | packages/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.dart",
"repo_id": "packages",
"token_count": 722
} | 1,125 |
// 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 'types.dart';
/// Configuration to use when creating a new [WebViewPlatformController].
///
/// The `autoMe... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/creation_params.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/creation_params.dart",
"repo_id": "packages",
"token_count": 712
} | 1,126 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:meta/meta.dart';
import 'javascript_log_level.dart';
/// Represents a console message written to the JavaScript console.
@immutable
class... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_console_message.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_console_message.dart",
"repo_id": "packages",
"token_count": 168
} | 1,127 |
// 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';
/// Possible error type categorizations used by [WebResourceError].
enum WebResourceErrorType {
/// User authe... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_error.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_error.dart",
"repo_id": "packages",
"token_count": 907
} | 1,128 |
name: webview_flutter_web_example
description: Demonstrates how to use the webview_flutter_web plugin.
publish_to: none
environment:
sdk: ^3.1.0
flutter: ">=3.13.0"
dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
webview_flutter_platform_interface: ^2.0.0
webview_flutter_web:... | packages/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 292
} | 1,129 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:webview_flutter_web/src/content_type.dart';
void main() {
group('ContentType.parse', ()... | packages/packages/webview_flutter/webview_flutter_web/test/content_type_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/test/content_type_test.dart",
"repo_id": "packages",
"token_count": 976
} | 1,130 |
h1 {
color: blue;
} | packages/packages/webview_flutter/webview_flutter_wkwebview/example/assets/www/styles/style.css/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/assets/www/styles/style.css",
"repo_id": "packages",
"token_count": 13
} | 1,131 |
// 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 "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
@interface FWFInstanceManager ()
/// The next identifier that will be used for a host-created inst... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFInstanceManager_Test.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFInstanceManager_Test.h",
"repo_id": "packages",
"token_count": 202
} | 1,132 |
// 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 "FWFUIViewHostApi.h"
@interface FWFUIViewHostApiImpl ()
// InstanceManager must be weak to prevent a circular reference with the object it stores.... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIViewHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIViewHostApi.m",
"repo_id": "packages",
"token_count": 740
} | 1,133 |
// 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 "FWFWebViewHostApi.h"
#import "FWFDataConverters.h"
@implementation FWFAssetManager
- (NSString *)lookupKeyForAsset:(NSString *)asset {
return [... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.m",
"repo_id": "packages",
"token_count": 6624
} | 1,134 |
// 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';
import 'package:flutter/services.dart';
import '../common/instance_manager.dart';
import '../common/web_kit.g.da... | packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit_api_impls.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit_api_impls.dart",
"repo_id": "packages",
"token_count": 1884
} | 1,135 |
# Can't use Flutter integration tests due to native modal UI.
- file_selector_ios
- file_selector
| packages/script/configs/exclude_integration_ios.yaml/0 | {
"file_path": "packages/script/configs/exclude_integration_ios.yaml",
"repo_id": "packages",
"token_count": 30
} | 1,136 |
// 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/file.dart';
import 'package:pub_semver/pub_semver.dart';
/// The signature for a print handler for commands that allow overriding the... | packages/script/tool/lib/src/common/core.dart/0 | {
"file_path": "packages/script/tool/lib/src/common/core.dart",
"repo_id": "packages",
"token_count": 1274
} | 1,137 |
// 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/file.dart';
import 'common/core.dart';
import 'common/output_utils.dart';
import 'common/package_looping_command.dart';
import 'commo... | packages/script/tool/lib/src/dart_test_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/dart_test_command.dart",
"repo_id": "packages",
"token_count": 2486
} | 1,138 |
// 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;
import 'package:http/http.dart' as http;
import 'package:pub_semver/pub_semver.dart';
... | packages/script/tool/lib/src/publish_check_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/publish_check_command.dart",
"repo_id": "packages",
"token_count": 3572
} | 1,139 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter_plugin_tools/src/common/git_version_finder.dart';
import 'package:mockito/mockito.dart';
import 'package:test/te... | packages/script/tool/test/common/git_version_finder_test.dart/0 | {
"file_path": "packages/script/tool/test/common/git_version_finder_test.dart",
"repo_id": "packages",
"token_count": 1594
} | 1,140 |
// 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 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flut... | packages/script/tool/test/drive_examples_command_test.dart/0 | {
"file_path": "packages/script/tool/test/drive_examples_command_test.dart",
"repo_id": "packages",
"token_count": 21833
} | 1,141 |
// 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:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_plugin_tools/src/com... | packages/script/tool/test/pubspec_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/pubspec_check_command_test.dart",
"repo_id": "packages",
"token_count": 21405
} | 1,142 |
@font-face {
font-family: 'Cupertino Icons';
font-style: normal;
font-weight: 400;
src: url("../assets/CupertinoIcons.ttf") format("truetype");
}
.cupertino-icons, .cupertino-icons {
font-family: 'Cupertino Icons';
font-weight: normal;
font-style: normal;
font-size: 28px;
line-height: 1;
letter-spa... | packages/third_party/packages/cupertino_icons/css/icons.css/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/css/icons.css",
"repo_id": "packages",
"token_count": 285
} | 1,143 |
export default `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="{{{assetUrls.favicon}}}">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>{{meta.title}}</title>
<meta name="descripton" content="{{meta.desc}}">
... | photobooth/functions/src/share/templates/share.ts/0 | {
"file_path": "photobooth/functions/src/share/templates/share.ts",
"repo_id": "photobooth",
"token_count": 666
} | 1,144 |
{
"@@locale": "es",
"landingPageHeading": "Bienvenido a I\u2215O Photo Booth",
"landingPageSubheading": "¡Haz una foto y compártela con la comunidad!",
"landingPageTakePhotoButtonText": "Empezar",
"footerMadeWithText": "Hecho con ",
"footerMadeWithFlutterLinkText": "Flutter",
"footerMadeWith... | photobooth/lib/l10n/arb/app_es.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_es.arb",
"repo_id": "photobooth",
"token_count": 2370
} | 1,145 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/landing/landing.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class LandingBody extends StatelessWidget {
const LandingBody({super.key});
@override
Widget build(BuildContext context) ... | photobooth/lib/landing/widgets/landing_body.dart/0 | {
"file_path": "photobooth/lib/landing/widgets/landing_body.dart",
"repo_id": "photobooth",
"token_count": 748
} | 1,146 |
import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
class CharactersLayer extends StatelessWidget {
const CharactersLayer({super.key});
@override
Widget build(BuildContext context) {
final state = context.watch<Ph... | photobooth/lib/photobooth/widgets/characters_layer.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/characters_layer.dart",
"repo_id": "photobooth",
"token_count": 848
} | 1,147 |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/share/share.dart';
imp... | photobooth/lib/share/view/share_page.dart/0 | {
"file_path": "photobooth/lib/share/view/share_page.dart",
"repo_id": "photobooth",
"token_count": 2848
} | 1,148 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/l10n/l10n.dart';
class ShareTryAgainButton extends StatelessWidget {
const ShareTryAgainButton({super.key});
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
return ElevatedButton(
onPressed: () => Navig... | photobooth/lib/share/widgets/share_try_again_button.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_try_again_button.dart",
"repo_id": "photobooth",
"token_count": 151
} | 1,149 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/assets.g.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class StickersTabs extends StatefulWidget {
const StickersTabs({
required this.onStickerSelected,
required this.onTabChanged,
this.initialIndex = 0,
super.key,
})... | photobooth/lib/stickers/widgets/stickers_tabs.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/stickers_tabs.dart",
"repo_id": "photobooth",
"token_count": 2834
} | 1,150 |
// ignore_for_file: must_be_immutable
import 'package:authentication_repository/authentication_repository.dart';
import 'package:firebase_auth/firebase_auth.dart' as firebase_auth;
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
class MockFirebaseAuth extends Mock implements f... | photobooth/packages/authentication_repository/test/authentication_repository_test.dart/0 | {
"file_path": "photobooth/packages/authentication_repository/test/authentication_repository_test.dart",
"repo_id": "photobooth",
"token_count": 738
} | 1,151 |
name: camera
description: A Flutter plugin for integrating Camera Access.
version: 0.1.0
publish_to: none
environment:
sdk: ">=2.19.0 <3.0.0"
flutter: ">=2.0.0"
flutter:
plugin:
platforms:
web:
default_package: camera_web
dependencies:
camera_platform_interface:
path: ../camera_platform... | photobooth/packages/camera/camera/pubspec.yaml/0 | {
"file_path": "photobooth/packages/camera/camera/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 238
} | 1,152 |
name: camera_web
description: Web platform implementation of camera
version: 0.1.0
publish_to: none
environment:
sdk: ">=2.19.0 <3.0.0"
flutter: ">=2.0.0"
flutter:
plugin:
platforms:
web:
pluginClass: CameraPlugin
fileName: camera_web.dart
dependencies:
camera_platform_interface:
... | photobooth/packages/camera/camera_web/pubspec.yaml/0 | {
"file_path": "photobooth/packages/camera/camera_web/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 248
} | 1,153 |
import 'package:flutter/material.dart';
/// {@template app_page_route}
/// Default [MaterialPageRoute] for the `photobooth_ui` toolkit.
/// This page route disables all transition animations.
/// {@endtemplate}
class AppPageRoute<T> extends MaterialPageRoute<T> {
/// {@macro app_page_route}
AppPageRoute({
requ... | photobooth/packages/photobooth_ui/lib/src/navigation/app_page_route.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/navigation/app_page_route.dart",
"repo_id": "photobooth",
"token_count": 204
} | 1,154 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
/// {@template tooltip_mode}
/// The tooltip mode which determines when the tooltip is visible
/// {@endtemplate}
enum TooltipMode {
/// Default tooltip behavior
normal,
/// Tooltip is always visible until the user intera... | photobooth/packages/photobooth_ui/lib/src/widgets/app_tooltip_button.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/app_tooltip_button.dart",
"repo_id": "photobooth",
"token_count": 675
} | 1,155 |
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('isMobile', () {
test('returns true', () {
expect(isMobile, equals(true));
});
});
}
| photobooth/packages/photobooth_ui/test/src/platform/is_mobile_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/platform/is_mobile_test.dart",
"repo_id": "photobooth",
"token_count": 90
} | 1,156 |
@TestOn('!chrome')
library;
import 'package:flutter_test/flutter_test.dart';
import 'package:platform_helper/platform_helper.dart';
void main() {
group('MobilePlatformHelper', () {
test('returns true', () {
final helper = PlatformHelper();
expect(helper.isMobile, true);
});
});
}
| photobooth/packages/platform_helper/test/src/mobile_platform_helper_test.dart/0 | {
"file_path": "photobooth/packages/platform_helper/test/src/mobile_platform_helper_test.dart",
"repo_id": "photobooth",
"token_count": 114
} | 1,157 |
import 'package:camera/camera.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import 'package:test/test.dart';
class MockCameraImage extends Mock implements CameraImage {}
class MockAsset extends Mock impleme... | photobooth/test/photobooth/bloc/photobooth_event_test.dart/0 | {
"file_path": "photobooth/test/photobooth/bloc/photobooth_event_test.dart",
"repo_id": "photobooth",
"token_count": 930
} | 1,158 |
// ignore_for_file: prefer_const_constructors
import 'dart:ui';
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:mockt... | photobooth/test/share/widgets/animated_share_photo_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/animated_share_photo_test.dart",
"repo_id": "photobooth",
"token_count": 4156
} | 1,159 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/select_character/select_character.dart';
import 'package:pinball_audio/pinball_audio.dart';
part 'assets_manager_state.dart';
class AssetsManagerCubit extends Cubit<AssetsManage... | pinball/lib/assets_manager/cubit/assets_manager_cubit.dart/0 | {
"file_path": "pinball/lib/assets_manager/cubit/assets_manager_cubit.dart",
"repo_id": "pinball",
"token_count": 561
} | 1,160 |
// ignore_for_file: avoid_renaming_method_parameters
import 'package:flame/components.dart';
import 'package:flame/effects.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_component... | pinball/lib/game/behaviors/scoring_behavior.dart/0 | {
"file_path": "pinball/lib/game/behaviors/scoring_behavior.dart",
"repo_id": "pinball",
"token_count": 740
} | 1,161 |
export 'game_over_info_display.dart';
export 'initials_input_display.dart';
export 'initials_submission_failure_display.dart';
export 'initials_submission_success_display.dart';
export 'leaderboard_display.dart';
export 'leaderboard_failure_display.dart';
export 'loading_display.dart';
export 'share_display.dart';
| pinball/lib/game/components/backbox/displays/displays.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/displays/displays.dart",
"repo_id": "pinball",
"token_count": 105
} | 1,162 |
import 'package:flame/extensions.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/foundation.dart';
import 'package:pinball/game/components/drain/behaviors/behaviors.dart';
import 'package:pinball_components/pinball_components.dart';
/// {@template drain}
/// Area located at the bottom... | pinball/lib/game/components/drain/drain.dart/0 | {
"file_path": "pinball/lib/game/components/drain/drain.dart",
"repo_id": "pinball",
"token_count": 392
} | 1,163 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Adds a [GameBonus.sparkyTurboCharge] when a [Ball] enters the
/// [SparkyComp... | pinball/lib/game/components/sparky_scorch/behaviors/sparky_computer_bonus_behavior.dart/0 | {
"file_path": "pinball/lib/game/components/sparky_scorch/behaviors/sparky_computer_bonus_behavior.dart",
"repo_id": "pinball",
"token_count": 286
} | 1,164 |
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart';
class $AssetsImagesGen {
const $AssetsImag... | pinball/lib/gen/assets.gen.dart/0 | {
"file_path": "pinball/lib/gen/assets.gen.dart",
"repo_id": "pinball",
"token_count": 1316
} | 1,165 |
export 'character_selection_page.dart';
export 'selected_character.dart';
| pinball/lib/select_character/view/view.dart/0 | {
"file_path": "pinball/lib/select_character/view/view.dart",
"repo_id": "pinball",
"token_count": 22
} | 1,166 |
library geometry;
export 'src/geometry.dart';
| pinball/packages/geometry/lib/geometry.dart/0 | {
"file_path": "pinball/packages/geometry/lib/geometry.dart",
"repo_id": "pinball",
"token_count": 16
} | 1,167 |
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart';
class $AssetsImagesGen {
const $AssetsImag... | pinball/packages/pinball_components/lib/gen/assets.gen.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/gen/assets.gen.dart",
"repo_id": "pinball",
"token_count": 9586
} | 1,168 |
part of 'android_spaceship_cubit.dart';
enum AndroidSpaceshipState {
withoutBonus,
withBonus,
}
| pinball/packages/pinball_components/lib/src/components/android_spaceship/cubit/android_spaceship_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_spaceship/cubit/android_spaceship_state.dart",
"repo_id": "pinball",
"token_count": 38
} | 1,169 |
import 'package:pinball_components/pinball_components.dart';
/// Indicates a side of the board.
///
/// Usually used to position or mirror elements of a pinball game; such as a
/// [Flipper] or [Kicker].
enum BoardSide {
/// The left side of the board.
left,
/// The right side of the board.
right,
}
/// Util... | pinball/packages/pinball_components/lib/src/components/board_side.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/board_side.dart",
"repo_id": "pinball",
"token_count": 217
} | 1,170 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:pinball_components/pinball_components.dart';
part 'dash_bumpers_state.dart';
class DashBumpersCubit extends Cubit<DashBumpersState> {
DashBumpersCubit() : super(DashBumpersState.initial());
/// Event added when a ball con... | pinball/packages/pinball_components/lib/src/components/dash_bumper/cubit/dash_bumpers_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/dash_bumper/cubit/dash_bumpers_cubit.dart",
"repo_id": "pinball",
"token_count": 272
} | 1,171 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
enum GoogleLetterSpriteState {
lit,
dimmed,
}
/// {@template google_letter}
/// Circular decal that represents a lett... | pinball/packages/pinball_components/lib/src/components/google_letter.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/google_letter.dart",
"repo_id": "pinball",
"token_count": 1049
} | 1,172 |
import 'dart:math' as math;
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';
import 'package:geometry/geometry.dart' as geometry show centroid;
import 'package:pinball_components/gen/assets.gen.dart';
import 'package:pinball_components/p... | pinball/packages/pinball_components/lib/src/components/kicker/kicker.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/kicker/kicker.dart",
"repo_id": "pinball",
"token_count": 2495
} | 1,173 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball_audio/pinball_audio.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Plays the [PinballAudio.launcher] sound.
///
/// It is attached whe... | pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_noise_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_noise_behavior.dart",
"repo_id": "pinball",
"token_count": 228
} | 1,174 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
part 'skill_shot_state.dart';
class SkillShotCubit extends Cubit<SkillShotState> {
SkillShotCubit() : super(const SkillShotState.initial());
void onBallContacted() {
emit(
const SkillShotState(
spriteState: SkillShotSpr... | pinball/packages/pinball_components/lib/src/components/skill_shot/cubit/skill_shot_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/skill_shot/cubit/skill_shot_cubit.dart",
"repo_id": "pinball",
"token_count": 359
} | 1,175 |
import 'dart:math' as math;
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_components/src/components/bumping_behavior.dart';
import 'package:pinball_c... | pinball/packages/pinball_components/lib/src/components/sparky_bumper/sparky_bumper.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/sparky_bumper/sparky_bumper.dart",
"repo_id": "pinball",
"token_count": 2064
} | 1,176 |
import 'package:flame/input.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:pinball_theme/pinball_theme.dart' as theme;
import 'package:sandbox/common/common.dart';
class BallGame extends AssetsGame with TapDetector, Traceable {
B... | pinball/packages/pinball_components/sandbox/lib/stories/ball/basic_ball_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/ball/basic_ball_game.dart",
"repo_id": "pinball",
"token_count": 624
} | 1,177 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/error_component/error_component_game.dart';
void addErrorComponentStories(Dashbook dashbook) {
dashbook.storiesOf('ErrorComponent').addGame(
title: 'Basic',
description: ErrorComponen... | pinball/packages/pinball_components/sandbox/lib/stories/error_component/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/error_component/stories.dart",
"repo_id": "pinball",
"token_count": 211
} | 1,178 |
import 'package:flame/input.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class PlungerGame extends BallGame
with HasKeyboardHandlerComponents,... | pinball/packages/pinball_components/sandbox/lib/stories/plunger/plunger_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/plunger/plunger_game.dart",
"repo_id": "pinball",
"token_count": 440
} | 1,179 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_theme/pinball_theme.dart' as theme;
import '../../../../hel... | pinball/packages/pinball_components/test/src/components/ball/behaviors/ball_gravitating_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/ball/behaviors/ball_gravitating_behavior_test.dart",
"repo_id": "pinball",
"token_count": 698
} | 1,180 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball_components/pinball_compone... | pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_swiveling_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_swiveling_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2640
} | 1,181 |
// ignore_for_file: cascade_invocations
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/src/components/components.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
... | pinball/packages/pinball_components/test/src/components/flipper/behaviors/flipper_jointing_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/flipper/behaviors/flipper_jointing_behavior_test.dart",
"repo_id": "pinball",
"token_count": 443
} | 1,182 |
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_components/src/components/kicker/be... | pinball/packages/pinball_components/test/src/components/kicker/behaviors/kicker_blinking_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/kicker/behaviors/kicker_blinking_behavior_test.dart",
"repo_id": "pinball",
"token_count": 642
} | 1,183 |
// ignore_for_file: cascade_invocations
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flut... | pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_pulling_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_pulling_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1547
} | 1,184 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
impor... | pinball/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1902
} | 1,185 |
library pinball_flame;
export 'src/behaviors/behaviors.dart';
export 'src/canvas/canvas.dart';
export 'src/flame_provider.dart';
export 'src/keyboard_input_controller.dart';
export 'src/layer.dart';
export 'src/parent_is_a.dart';
export 'src/pinball_forge2d_game.dart';
export 'src/shapes/shapes.dart';
export 'src/spri... | pinball/packages/pinball_flame/lib/pinball_flame.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/pinball_flame.dart",
"repo_id": "pinball",
"token_count": 135
} | 1,186 |
import 'package:flame/extensions.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:geometry/geometry.dart';
/// {@template ellipse_shape}
/// Creates an ellipse.
/// {@endtemplate}
class EllipseShape extends ChainShape {
/// {@macro ellipse_shape}
EllipseShape({
required this.center,
... | pinball/packages/pinball_flame/lib/src/shapes/ellipse_shape.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/shapes/ellipse_shape.dart",
"repo_id": "pinball",
"token_count": 357
} | 1,187 |
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart';
class $AssetsImagesGen {
const $AssetsImag... | pinball/packages/pinball_theme/lib/src/generated/assets.gen.dart/0 | {
"file_path": "pinball/packages/pinball_theme/lib/src/generated/assets.gen.dart",
"repo_id": "pinball",
"token_count": 1819
} | 1,188 |
import 'package:flutter/foundation.dart';
import 'package:url_launcher/url_launcher.dart';
/// Opens the given [url] in a new tab of the host browser
Future<void> openLink(String url, {VoidCallback? onError}) async {
final uri = Uri.parse(url);
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
} else if (... | pinball/packages/pinball_ui/lib/src/external_links/external_links.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/external_links/external_links.dart",
"repo_id": "pinball",
"token_count": 129
} | 1,189 |
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_ui/pinball_ui.dart';
void main() {
group('PinballTextStyle', () {
test('headline1 has fontSize 28 and white color', () {
const style = PinballTextStyle.headline1;
expect(style.fontSize, 28);
expect(style.color, PinballColo... | pinball/packages/pinball_ui/test/src/theme/pinball_text_style_test.dart/0 | {
"file_path": "pinball/packages/pinball_ui/test/src/theme/pinball_text_style_test.dart",
"repo_id": "pinball",
"token_count": 409
} | 1,190 |
include: package:very_good_analysis/analysis_options.2.4.0.yaml | pinball/packages/share_repository/analysis_options.yaml/0 | {
"file_path": "pinball/packages/share_repository/analysis_options.yaml",
"repo_id": "pinball",
"token_count": 22
} | 1,191 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
impor... | pinball/test/game/behaviors/bonus_noise_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/bonus_noise_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2376
} | 1,192 |
// ignore_for_file: cascade_invocations, prefer_const_constructors
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart... | pinball/test/game/components/android_acres/behaviors/ramp_reset_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/android_acres/behaviors/ramp_reset_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1694
} | 1,193 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/behaviors/behaviors... | pinball/test/game/components/dino_desert/dino_desert_test.dart/0 | {
"file_path": "pinball/test/game/components/dino_desert/dino_desert_test.dart",
"repo_id": "pinball",
"token_count": 1372
} | 1,194 |
// ignore_for_file: cascade_invocations
import 'dart:ui';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.dart';
import 'package:flame/input.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter/gestures.dart';
import 'pack... | pinball/test/game/pinball_game_test.dart/0 | {
"file_path": "pinball/test/game/pinball_game_test.dart",
"repo_id": "pinball",
"token_count": 8576
} | 1,195 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball/select_character/select_character.dart';
import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('CharacterThemeCubit', () {
test('initial state has Dash character theme', () {
... | pinball/test/select_character/cubit/character_theme_cubit_test.dart/0 | {
"file_path": "pinball/test/select_character/cubit/character_theme_cubit_test.dart",
"repo_id": "pinball",
"token_count": 293
} | 1,196 |
{
"name": "Pinball",
"short_name": "Pinball",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "Google I/O 2022 Pinball game built with Flutter and Firebase",
"orientation": "portrait-primary",
"prefer_related_applicat... | pinball/web/manifest.json/0 | {
"file_path": "pinball/web/manifest.json",
"repo_id": "pinball",
"token_count": 312
} | 1,197 |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: build examples
script: script/tool_runner.sh
args: ["build-examples", "--macos"]
- name: xcode analyze
script: script/tool_runner.sh
args: ["xcode-analyze", "--macos"]
- name: xcode analyze deprecation
# Ensure we do... | plugins/.ci/targets/macos_platform_tests.yaml/0 | {
"file_path": "plugins/.ci/targets/macos_platform_tests.yaml",
"repo_id": "plugins",
"token_count": 268
} | 1,198 |
# Specify analysis options.
#
# This file is a copy of analysis_options.yaml from flutter repo
# as of 2022-07-27, but with some modifications marked with
# "DIFFERENT FROM FLUTTER/FLUTTER" below. The file is expected to
# be kept in sync with the master file from the flutter repo.
analyzer:
language:
strict-cas... | plugins/analysis_options.yaml/0 | {
"file_path": "plugins/analysis_options.yaml",
"repo_id": "plugins",
"token_count": 3821
} | 1,199 |
// 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.hardware.camera2.CaptureRequest;
import android.os.Build.VERSION;
import android... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionFeature.java",
"repo_id": "plugins",
"token_count": 1163
} | 1,200 |
// 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 org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;
import static org.mockito.Mockito... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraCaptureCallbackStatesTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraCaptureCallbackStatesTest.java",
"repo_id": "plugins",
"token_count": 6716
} | 1,201 |
// 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.exposureoffset;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import ... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposureoffset/ExposureOffsetFeatureTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposureoffset/ExposureOffsetFeatureTest.java",
"repo_id": "plugins",
"token_count": 923
} | 1,202 |
// 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.utils;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import org.junit.Assert;
public class TestUti... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/utils/TestUtils.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/utils/TestUtils.java",
"repo_id": "plugins",
"token_count": 538
} | 1,203 |
// 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.graphics.SurfaceTexture;
import android.view.Surface;
import androidx.anno... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraXProxy.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraXProxy.java",
"repo_id": "plugins",
"token_count": 513
} | 1,204 |
name: camera_android_camerax
description: Android implementation of the camera plugin using the CameraX library.
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera_android_camerax
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
publi... | plugins/packages/camera/camera_android_camerax/pubspec.yaml/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/pubspec.yaml",
"repo_id": "plugins",
"token_count": 360
} | 1,205 |
// 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... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPropertiesTests.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPropertiesTests.m",
"repo_id": "plugins",
"token_count": 1907
} | 1,206 |
// 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:collection';
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/foundati... | plugins/packages/camera/camera_avfoundation/example/lib/camera_controller.dart/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/lib/camera_controller.dart",
"repo_id": "plugins",
"token_count": 6034
} | 1,207 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTCam.h"
#import "FLTSavePhotoDelegate.h"
@interface FLTImageStreamHandler : NSObject <FlutterStreamHandler>
/// The queue on which `eventSink`... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTCam_Test.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTCam_Test.h",
"repo_id": "plugins",
"token_count": 809
} | 1,208 |
// 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() {
TestWidgetsFlu... | plugins/packages/camera/camera_platform_interface/test/events/camera_event_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/test/events/camera_event_test.dart",
"repo_id": "plugins",
"token_count": 4316
} | 1,209 |
// 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 "capture_device_info.h"
#include <memory>
#include <string>
namespace camera_windows {
std::string CaptureDeviceInfo::GetUniqueDeviceName() cons... | plugins/packages/camera/camera_windows/windows/capture_device_info.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/capture_device_info.cpp",
"repo_id": "plugins",
"token_count": 324
} | 1,210 |
// 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 "capture_controller.h"
#include <flutter/method_call.h>
#include <flutter/method_result_functions.h>
#include <flutter/standard_method_codec.h>
#... | plugins/packages/camera/camera_windows/windows/test/capture_controller_test.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/test/capture_controller_test.cpp",
"repo_id": "plugins",
"token_count": 20754
} | 1,211 |
// 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;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.flutter.common.Constant... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/EspressoFlutter.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/EspressoFlutter.java",
"repo_id": "plugins",
"token_count": 2642
} | 1,212 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package androidx.test.espresso.flutter.api;
import static com.google.common.base.Preconditions.checkNotNull;
import androidx.test.espresso.flutter.model.... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/WidgetMatcher.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/WidgetMatcher.java",
"repo_id": "plugins",
"token_count": 403
} | 1,213 |
// 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 static com.google.c... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/DartVmServiceUtil.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/DartVmServiceUtil.java",
"repo_id": "plugins",
"token_count": 1383
} | 1,214 |
// 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.matcher;
import static com.google.common.base.Preconditions.checkNotNull;
import androidx.test.espresso.flutter.ap... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/matcher/WithTextMatcher.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/matcher/WithTextMatcher.java",
"repo_id": "plugins",
"token_count": 414
} | 1,215 |
// 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';
/// Home Page of the application
class HomePage extends StatelessWidget {
/// Default Constructor
const HomePa... | plugins/packages/file_selector/file_selector/example/lib/home_page.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector/example/lib/home_page.dart",
"repo_id": "plugins",
"token_count": 980
} | 1,216 |
name: file_selector
description: Flutter plugin for opening and saving files, or selecting
directories, using native file selection UI.
repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/file_selector
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A... | plugins/packages/file_selector/file_selector/pubspec.yaml/0 | {
"file_path": "plugins/packages/file_selector/file_selector/pubspec.yaml",
"repo_id": "plugins",
"token_count": 468
} | 1,217 |
# file\_selector\_linux
The Linux implementation of [`file_selector`][1].
## Usage
This package is [endorsed][2], which means you can simply use `file_selector`
normally. This package will be automatically included in your app when you do.
[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/de... | plugins/packages/file_selector/file_selector_linux/README.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector_linux/README.md",
"repo_id": "plugins",
"token_count": 123
} | 1,218 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'file_selector_macos'
s.version = '0.0.1'
s.summary = 'macOS implementation of file_selector.'
s.description = <<-DESC
Displays native macOS open and save pane... | plugins/packages/file_selector/file_selector_macos/macos/file_selector_macos.podspec/0 | {
"file_path": "plugins/packages/file_selector/file_selector_macos/macos/file_selector_macos.podspec",
"repo_id": "plugins",
"token_count": 415
} | 1,219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.