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.
import 'package:flutter/foundation.dart';
import 'package:url_launcher_platform_interface/link.dart';
import 'package:url_launcher_platform_interface/url_l... | packages/packages/url_launcher/url_launcher_windows/lib/url_launcher_windows.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_windows/lib/url_launcher_windows.dart",
"repo_id": "packages",
"token_count": 537
} | 1,054 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
im... | packages/packages/video_player/video_player/example/integration_test/controller_swap_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player/example/integration_test/controller_swap_test.dart",
"repo_id": "packages",
"token_count": 1084
} | 1,055 |
## NEXT
* Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.
## 2.4.12
* Updates compileSdk version to 34.
* Adds error handling for `BehindLiveWindowException`, which may occur upon live-video playback failure.
## 2.4.11
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
* Fixes new li... | packages/packages/video_player/video_player_android/CHANGELOG.md/0 | {
"file_path": "packages/packages/video_player/video_player_android/CHANGELOG.md",
"repo_id": "packages",
"token_count": 953
} | 1,056 |
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/video_player/video_player_android/example/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 1,057 |
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
allprojects {
repositories {
// See https://github.com/flutter/flutter/wiki/Plugins-and-Packages-repository-structure#gradle-structure for more... | packages/packages/video_player/video_player_android/example/android/build.gradle/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/android/build.gradle",
"repo_id": "packages",
"token_count": 1044
} | 1,058 |
name: video_player_android
description: Android implementation of the video_player plugin.
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.4.12
... | packages/packages/video_player/video_player_android/pubspec.yaml/0 | {
"file_path": "packages/packages/video_player/video_player_android/pubspec.yaml",
"repo_id": "packages",
"token_count": 312
} | 1,059 |
// 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 "../FVPDisplayLink.h"
#import <CoreVideo/CoreVideo.h>
#import <Foundation/Foundation.h>
@interface FVPDisplayLink ()
// The underlying display li... | packages/packages/video_player/video_player_avfoundation/darwin/Classes/macos/FVPDisplayLink.m/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/darwin/Classes/macos/FVPDisplayLink.m",
"repo_id": "packages",
"token_count": 1054
} | 1,060 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player_platform_interface/video_player_platform_interface.dart';
void main() {
gr... | packages/packages/video_player/video_player_platform_interface/test/video_player_web_options_controls_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_platform_interface/test/video_player_web_options_controls_test.dart",
"repo_id": "packages",
"token_count": 1035
} | 1,061 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print, avoid_dynamic_calls
import 'dart:async';
import 'dart:convert' show JsonEncoder, LineSplitter, json, utf8;
import 'dart:i... | packages/packages/web_benchmarks/lib/src/browser.dart/0 | {
"file_path": "packages/packages/web_benchmarks/lib/src/browser.dart",
"repo_id": "packages",
"token_count": 7592
} | 1,062 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
const ValueKey<String> backKey = ValueKey<String>('backKey');
class AboutPage extends StatelessWidget {
const A... | packages/packages/web_benchmarks/testing/test_app/lib/about_page.dart/0 | {
"file_path": "packages/packages/web_benchmarks/testing/test_app/lib/about_page.dart",
"repo_id": "packages",
"token_count": 291
} | 1,063 |
<manifest package="io.flutter.plugins.webviewflutter">
</manifest>
| packages/packages/webview_flutter/webview_flutter_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/AndroidManifest.xml",
"repo_id": "packages",
"token_count": 23
} | 1,064 |
// 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.os.Build;
import android.os.Handler;
import androidx.annotation.... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterPlugin.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterPlugin.java",
"repo_id": "packages",
"token_count": 2986
} | 1,065 |
// 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.any;
import static org.mockito.ArgumentMatchers.eq;
import static or... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java",
"repo_id": "packages",
"token_count": 543
} | 1,066 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'pac... | packages/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart",
"repo_id": "packages",
"token_count": 19766
} | 1,067 |
// 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/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/an... | packages/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart",
"repo_id": "packages",
"token_count": 27081
} | 1,068 |
// 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.
/// Defines the parameters of the pending navigation callback.
class NavigationRequest {
/// Creates a [NavigationRequest].
const NavigationRequest({
... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/navigation_request.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/navigation_request.dart",
"repo_id": "packages",
"token_count": 148
} | 1,069 |
## NEXT
* Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.
## 0.2.2+4
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
* Fixes new lint warnings.
## 0.2.2+3
* Migrates to `dart:ui_web` APIs.
* Updates minimum supported SDK version to Flutter 3.13.0/Dart 3.1.0.
## 0.2.2+2
* Adds pu... | packages/packages/webview_flutter/webview_flutter_web/CHANGELOG.md/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/CHANGELOG.md",
"repo_id": "packages",
"token_count": 653
} | 1,070 |
// 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 Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFDataConvertersTests : XCTestCase
@end
@imple... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFDataConvertersTests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFDataConvertersTests.m",
"repo_id": "packages",
"token_count": 3462
} | 1,071 |
// 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 "FLTWebViewFlutterPlugin.h"
#import "FWFGeneratedWebKitApis.h"
#import "FWFHTTPCookieStoreHostApi.h"
#import "FWFInstanceManager.h"
#import "FWFNav... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FLTWebViewFlutterPlugin.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FLTWebViewFlutterPlugin.m",
"repo_id": "packages",
"token_count": 2692
} | 1,072 |
// 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 <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
/... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLProtectionSpaceHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLProtectionSpaceHostApi.h",
"repo_id": "packages",
"token_count": 428
} | 1,073 |
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/xdg_directories/example/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/xdg_directories/example/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 1,074 |
This folder contains configuration files that are passed to commands in place
of package lists. They are primarily used by CI to opt specific packages out of
tests, but can also useful when running multi-package tests locally.
**Any entry added to a file in this directory should include a comment**.
Skipping tests or ... | packages/script/configs/README.md/0 | {
"file_path": "packages/script/configs/README.md",
"repo_id": "packages",
"token_count": 152
} | 1,075 |
# Packages that have not yet adopted code-excerpt.
#
# This only exists to allow incrementally adopting the new requirement.
# Packages shoud never be added to this list.
# TODO(stuartmorgan): Remove everything from this list. See
# https://github.com/flutter/flutter/issues/102679
- espresso
- go_router_builder
- imag... | packages/script/configs/temp_exclude_excerpt.yaml/0 | {
"file_path": "packages/script/configs/temp_exclude_excerpt.yaml",
"repo_id": "packages",
"token_count": 137
} | 1,076 |
// 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:meta/meta.dart';
import 'package:path/path.dart' as p;
import 'git_version_finder.dart';
import 'reposito... | packages/script/tool/lib/src/common/package_state_utils.dart/0 | {
"file_path": "packages/script/tool/lib/src/common/package_state_utils.dart",
"repo_id": "packages",
"token_count": 3657
} | 1,077 |
// 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' as io;
import 'package:file/file.dart';
import 'package:http/http.dart' as http;
import 'package:meta/meta.dart';
... | packages/script/tool/lib/src/format_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/format_command.dart",
"repo_id": "packages",
"token_count": 6754
} | 1,078 |
// 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/output_utils.dart';
import 'common/package_looping_command.dart';
import 'common/repository_package.dart';... | packages/script/tool/lib/src/update_excerpts_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/update_excerpts_command.dart",
"repo_id": "packages",
"token_count": 5207
} | 1,079 |
// 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:file/memory.dart';
import 'package:flutter_plugin_tools/src/common/core.dart';
import 'package:flutter_plu... | packages/script/tool/test/common/plugin_utils_test.dart/0 | {
"file_path": "packages/script/tool/test/common/plugin_utils_test.dart",
"repo_id": "packages",
"token_count": 3982
} | 1,080 |
// 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/license_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/license_check_command_test.dart",
"repo_id": "packages",
"token_count": 8563
} | 1,081 |
// 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/update_release_info_command_test.dart/0 | {
"file_path": "packages/script/tool/test/update_release_info_command_test.dart",
"repo_id": "packages",
"token_count": 7788
} | 1,082 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// This test file is primarily here to serve as a source for code excerpts.
library;
import 'package:flutter/cupertino.dart';
import 'package:flutter/mat... | packages/third_party/packages/cupertino_icons/test/cupertino_icons_test.dart/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/test/cupertino_icons_test.dart",
"repo_id": "packages",
"token_count": 354
} | 1,083 |
// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:flutter/widgets.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class Assets {
static const android = Asset(
name: 'android',
path: 'assets/images/android.png',
size: Size(450, 658),
);
static const dash = Asset(
name: 'dash',
... | photobooth/lib/assets.g.dart/0 | {
"file_path": "photobooth/lib/assets.g.dart",
"repo_id": "photobooth",
"token_count": 9191
} | 1,084 |
{
"@@locale": "zh",
"landingPageHeading": "欢迎来到 I\u2215O 照相馆",
"landingPageSubheading": "向社区分享您拍的照片!",
"landingPageTakePhotoButtonText": "开拍",
"footerMadeWithText": "产品构建基于 ",
"footerMadeWithFlutterLinkText": "Flutter",
"footerMadeWithFirebaseLinkText": "Firebase",
"footerGoogleIOLinkTex... | photobooth/lib/l10n/arb/app_zh.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_zh.arb",
"repo_id": "photobooth",
"token_count": 3402
} | 1,085 |
export 'bloc/photobooth_bloc.dart';
export 'view/photobooth_page.dart';
export 'widgets/widgets.dart';
| photobooth/lib/photobooth/photobooth.dart/0 | {
"file_path": "photobooth/lib/photobooth/photobooth.dart",
"repo_id": "photobooth",
"token_count": 42
} | 1,086 |
export 'animated_characters/animated_characters.dart';
export 'character_icon_button.dart';
export 'characters_caption.dart';
export 'characters_layer.dart';
export 'photobooth_background.dart';
export 'photobooth_error.dart';
export 'photobooth_photo.dart';
export 'photobooth_preview.dart';
export 'shutter_button.dart... | photobooth/lib/photobooth/widgets/widgets.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/widgets.dart",
"repo_id": "photobooth",
"token_count": 124
} | 1,087 |
import 'dart:typed_data';
import 'package:analytics/analytics.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/share/share.dart';
import... | photobooth/lib/share/widgets/share_button.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_button.dart",
"repo_id": "photobooth",
"token_count": 772
} | 1,088 |
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/stickers/view/stickers_page.dart/0 | {
"file_path": "photobooth/lib/stickers/view/stickers_page.dart",
"repo_id": "photobooth",
"token_count": 7274
} | 1,089 |
import 'dart:js';
import 'package:flutter/foundation.dart';
/// Exposed [JsObject] for testing purposes.
@visibleForTesting
JsObject? testContext;
/// Method which tracks an event for the provided
/// [category], [action], and [label].
void trackEvent({
required String category,
required String action,
require... | photobooth/packages/analytics/lib/src/analytics_web.dart/0 | {
"file_path": "photobooth/packages/analytics/lib/src/analytics_web.dart",
"repo_id": "photobooth",
"token_count": 158
} | 1,090 |
name: example
publish_to: none
environment:
sdk: ">=2.19.0 <3.0.0"
flutter: ">=2.0.0"
dependencies:
camera:
path: ../
flutter:
sdk: flutter
dev_dependencies:
very_good_analysis: ^4.0.0+1
flutter:
uses-material-design: true
| photobooth/packages/camera/camera/example/pubspec.yaml/0 | {
"file_path": "photobooth/packages/camera/camera/example/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 117
} | 1,091 |
class CameraImage {
const CameraImage({
required this.data,
required this.width,
required this.height,
});
/// A data URI containing a representation of the image ('image/png').
final String data;
/// Is an unsigned long representing the actual height,
/// in pixels, of the image data.
final... | photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_image.dart/0 | {
"file_path": "photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_image.dart",
"repo_id": "photobooth",
"token_count": 124
} | 1,092 |
/// Unsupported Implementation of [ImageCompositor]
class ImageCompositor {
/// Throws [UnsupportedError].
Future<List<int>> composite({
required String data,
required int width,
required int height,
required List<dynamic> layers,
required double aspectRatio,
}) {
throw UnsupportedError(
... | photobooth/packages/image_compositor/lib/src/unsupported.dart/0 | {
"file_path": "photobooth/packages/image_compositor/lib/src/unsupported.dart",
"repo_id": "photobooth",
"token_count": 127
} | 1,093 |
import 'package:flutter/widgets.dart';
/// Defines the color palette for the Photobooth UI.
abstract class PhotoboothColors {
/// Black
static const Color black = Color(0xFF202124);
/// Black 54% opacity
static const Color black54 = Color(0x8A000000);
/// Black 25% opacity
static const Color black25 = Co... | photobooth/packages/photobooth_ui/lib/src/colors.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/colors.dart",
"repo_id": "photobooth",
"token_count": 286
} | 1,094 |
export 'font_weights.dart';
export 'text_styles.dart';
| photobooth/packages/photobooth_ui/lib/src/typography/typography.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/typography/typography.dart",
"repo_id": "photobooth",
"token_count": 20
} | 1,095 |
name: photobooth_ui
description: UI Toolkit for the Photobooth Flutter Application
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.19.0 <3.0.0"
dependencies:
equatable: ^2.0.5
flame: ^1.6.0
flutter:
sdk: flutter
platform_helper:
path: ../platform_helper
url_launcher: ^6.1.8
dev_dependenc... | photobooth/packages/photobooth_ui/pubspec.yaml/0 | {
"file_path": "photobooth/packages/photobooth_ui/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 517
} | 1,096 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('showAppDialog', () {
testWidgets('should show dialog', (tester) async {
await tester.pumpWidget(
MaterialApp(
home: Builder(
... | photobooth/packages/photobooth_ui/test/src/widgets/app_dialog_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/app_dialog_test.dart",
"repo_id": "photobooth",
"token_count": 358
} | 1,097 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/external_links/external_links.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:mocktail/mocktail.dart';
import 'package:plugin_pl... | photobooth/test/app/widgets/icon_link_test.dart/0 | {
"file_path": "photobooth/test/app/widgets/icon_link_test.dart",
"repo_id": "photobooth",
"token_count": 746
} | 1,098 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:just_audio/just_audio.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import '../../helpers/helpers.dart... | photobooth/test/photobooth/widgets/shutter_button_test.dart/0 | {
"file_path": "photobooth/test/photobooth/widgets/shutter_button_test.dart",
"repo_id": "photobooth",
"token_count": 1506
} | 1,099 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/share/share.dart';
import '../../helpers/helpers.dart';
void main() {
group('ShareTryAgainButton', () {
testWidgets('renders', (tester) async {
await tester.pumpApp(ShareTryAgainBu... | photobooth/test/share/widgets/share_try_again_button_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/share_try_again_button_test.dart",
"repo_id": "photobooth",
"token_count": 255
} | 1,100 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch pinball",
"request": "launch",
"type": ... | pinball/.vscode/launch.json/0 | {
"file_path": "pinball/.vscode/launch.json",
"repo_id": "pinball",
"token_count": 218
} | 1,101 |
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /leaderboard/{userId} {
function prohibited(initials) {
let prohibitedInitials = get(/databases/$(database)/documents/prohibitedInitials/list).data.prohibitedInitials;
return initials in prohibi... | pinball/firestore.rules/0 | {
"file_path": "pinball/firestore.rules",
"repo_id": "pinball",
"token_count": 637
} | 1,102 |
export 'animatronic_looping_behavior.dart';
export 'ball_spawning_behavior.dart';
export 'bonus_ball_spawning_behavior.dart';
export 'bonus_noise_behavior.dart';
export 'bumper_noise_behavior.dart';
export 'camera_focusing_behavior.dart';
export 'character_selection_behavior.dart';
export 'cow_bumper_noise_behavior.dar... | pinball/lib/game/behaviors/behaviors.dart/0 | {
"file_path": "pinball/lib/game/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 151
} | 1,103 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball_components/pinball_components.dart';
/// {@template ramp_bonus_behavior}
/// Increases the score when a [Ball] is shot 10 times into the [SpaceshipRamp].
... | pinball/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart/0 | {
"file_path": "pinball/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart",
"repo_id": "pinball",
"token_count": 402
} | 1,104 |
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:pinball_ui/pinball_ui.dart';
final _bodyTextPaint = TextPaint(
style... | pinball/lib/game/components/backbox/displays/loading_display.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/displays/loading_display.dart",
"repo_id": "pinball",
"token_count": 497
} | 1,105 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball/game/components/google_gallery/behaviors/behaviors.dart';
import 'package:pinball_components/pinball_components.dar... | pinball/lib/game/components/google_gallery/google_gallery.dart/0 | {
"file_path": "pinball/lib/game/components/google_gallery/google_gallery.dart",
"repo_id": "pinball",
"token_count": 782
} | 1,106 |
import 'package:flame/flame.dart';
import 'package:flame/sprite.dart';
import 'package:flutter/material.dart' hide Image;
import 'package:pinball/gen/assets.gen.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template bonus_animation}
/// [Widget] that displays bonus animations.
/// {@endtemplate}
clas... | pinball/lib/game/view/widgets/bonus_animation.dart/0 | {
"file_path": "pinball/lib/game/view/widgets/bonus_animation.dart",
"repo_id": "pinball",
"token_count": 1665
} | 1,107 |
import 'package:equatable/equatable.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:pinball_theme/pinball_theme.dart';
/// {@template leaderboard_entry}
/// A model representing a leaderboard entry containing the ranking position,
/// player's initials, score, and chosen cha... | pinball/lib/leaderboard/models/leader_board_entry.dart/0 | {
"file_path": "pinball/lib/leaderboard/models/leader_board_entry.dart",
"repo_id": "pinball",
"token_count": 773
} | 1,108 |
# authentication_repository
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Repository to manage user authentication.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT... | pinball/packages/authentication_repository/README.md/0 | {
"file_path": "pinball/packages/authentication_repository/README.md",
"repo_id": "pinball",
"token_count": 168
} | 1,109 |
library leaderboard_repository;
export 'src/leaderboard_repository.dart';
export 'src/models/models.dart';
| pinball/packages/leaderboard_repository/lib/leaderboard_repository.dart/0 | {
"file_path": "pinball/packages/leaderboard_repository/lib/leaderboard_repository.dart",
"repo_id": "pinball",
"token_count": 37
} | 1,110 |
// ignore_for_file: prefer_const_constructors, one_member_abstracts
import 'dart:math';
import 'package:audioplayers/audioplayers.dart';
import 'package:clock/clock.dart';
import 'package:flame_audio/audio_pool.dart';
import 'package:flame_audio/flame_audio.dart';
import 'package:flutter_test/flutter_test.dart';
impor... | pinball/packages/pinball_audio/test/src/pinball_audio_test.dart/0 | {
"file_path": "pinball/packages/pinball_audio/test/src/pinball_audio_test.dart",
"repo_id": "pinball",
"token_count": 8754
} | 1,111 |
export 'android_animatronic_ball_contact_behavior.dart.dart';
| pinball/packages/pinball_components/lib/src/components/android_animatronic/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_animatronic/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 21
} | 1,112 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template ball_impulsing_behavior}
/// Impulses the [Ball] in a given direction.
/// {@endtemplate}
class BallImpulsingBehavior extends Component with ParentIsA<B... | pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_impulsing_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_impulsing_behavior.dart",
"repo_id": "pinball",
"token_count": 212
} | 1,113 |
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template chrome_dino_spitting_behavior}
/// Spits the [Ball] from the [ChromeDino] the next time the mouth ope... | pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_spitting_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_spitting_behavior.dart",
"repo_id": "pinball",
"token_count": 535
} | 1,114 |
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/flapper/behaviors/behaviors.dart';
import 'package:pinball_flame/pinball_flame... | pinball/packages/pinball_components/lib/src/components/flapper/flapper.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/flapper/flapper.dart",
"repo_id": "pinball",
"token_count": 2249
} | 1,115 |
part of 'google_word_cubit.dart';
class GoogleWordState extends Equatable {
const GoogleWordState({required this.letterSpriteStates});
GoogleWordState.initial()
: this(
letterSpriteStates: {
for (var i = 0; i <= 5; i++) i: GoogleLetterSpriteState.dimmed
},
);
final... | pinball/packages/pinball_components/lib/src/components/google_word/cubit/google_word_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/google_word/cubit/google_word_state.dart",
"repo_id": "pinball",
"token_count": 171
} | 1,116 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
part 'multiball_state.dart';
class MultiballCubit extends Cubit<MultiballState> {
MultiballCubit() : super(const MultiballState.initial());
void onAnimate() {
emit(
state.copyWith(animationState: MultiballAnimationState.blinkin... | pinball/packages/pinball_components/lib/src/components/multiball/cubit/multiball_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/multiball/cubit/multiball_cubit.dart",
"repo_id": "pinball",
"token_count": 341
} | 1,117 |
export 'score_component_scaling_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/score_component/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/score_component/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 15
} | 1,118 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
part 'spaceship_ramp_state.dart';
class SpaceshipRampCubit extends Cubit<SpaceshipRampState> {
SpaceshipRampCubit() : super(const SpaceshipRampState.initial());
void onAscendingBallEntered() => emit(state.copyWith(hits: state.hits + 1));... | pinball/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart",
"repo_id": "pinball",
"token_count": 241
} | 1,119 |
export 'score.dart';
| pinball/packages/pinball_components/lib/src/extensions/extensions.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/extensions/extensions.dart",
"repo_id": "pinball",
"token_count": 8
} | 1,120 |
import 'dart:async';
import 'package:flame/extensions.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class AndroidBumperBGame extends BallGame {
AndroidBumperBGame()
: super(
imagesFileNames: [
Assets.images... | pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_b_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_b_game.dart",
"repo_id": "pinball",
"token_count": 311
} | 1,121 |
import 'package:flame/extensions.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class BoundariesGame extends BallGame {
BoundariesGame()
: super(
imagesFileNames: [
Assets.images.boundary.outer.keyName,
... | pinball/packages/pinball_components/sandbox/lib/stories/boundaries/boundaries_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/boundaries/boundaries_game.dart",
"repo_id": "pinball",
"token_count": 334
} | 1,122 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/google_word/google_letter_game.dart';
void addGoogleWordStories(Dashbook dashbook) {
dashbook.storiesOf('Google Word').addGame(
title: 'Letter 0',
description: GoogleLetterGame.descri... | pinball/packages/pinball_components/sandbox/lib/stories/google_word/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/google_word/stories.dart",
"repo_id": "pinball",
"token_count": 138
} | 1,123 |
export 'android_acres/stories.dart';
export 'arrow_icon/stories.dart';
export 'ball/stories.dart';
export 'bottom_group/stories.dart';
export 'boundaries/stories.dart';
export 'dino_desert/stories.dart';
export 'effects/stories.dart';
export 'error_component/stories.dart';
export 'flutter_forest/stories.dart';
export '... | pinball/packages/pinball_components/sandbox/lib/stories/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/stories.dart",
"repo_id": "pinball",
"token_count": 203
} | 1,124 |
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/android_b... | pinball/packages/pinball_components/test/src/components/android_bumper/behaviors/android_bumper_blinking_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/android_bumper/behaviors/android_bumper_blinking_behavior_test.dart",
"repo_id": "pinball",
"token_count": 617
} | 1,125 |
// 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 '../../helpers/helpers.dart';
void main() {
TestWidgetsFlutterBinding.ens... | pinball/packages/pinball_components/test/src/components/board_background_sprite_component_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/board_background_sprite_component_test.dart",
"repo_id": "pinball",
"token_count": 530
} | 1,126 |
// 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 '../../helpers/helpers.dart';
void main() {
TestWidgetsFlutterBinding.ens... | pinball/packages/pinball_components/test/src/components/dash_animatronic_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/dash_animatronic_test.dart",
"repo_id": "pinball",
"token_count": 852
} | 1,127 |
// ignore_for_file: cascade_invocations
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/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import '... | pinball/packages/pinball_components/test/src/components/google_rollover/behaviors/google_rollover_ball_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/google_rollover/behaviors/google_rollover_ball_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 938
} | 1,128 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group(
'MultiballCubit',
() {
blocTest<MultiballCubit, MultiballState>(
'onAnimate emits animationState [animate]',
buil... | pinball/packages/pinball_components/test/src/components/multiball/cubit/multiball_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/multiball/cubit/multiball_cubit_test.dart",
"repo_id": "pinball",
"token_count": 1015
} | 1,129 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group('SignpostCubit', () {
blocTest<SignpostCubit, SignpostState>(
'onProgressed progresses',
build: SignpostCubit.new,
act: (b... | pinball/packages/pinball_components/test/src/components/signpost/cubit/signpost_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/signpost/cubit/signpost_cubit_test.dart",
"repo_id": "pinball",
"token_count": 545
} | 1,130 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group(
'SparkyBumperCubit',
() {
blocTest<SparkyBumperCubit, SparkyBumperState>(
'onBallContacted emits dimmed',
build: ... | pinball/packages/pinball_components/test/src/components/sparky_bumper/cubit/sparky_bumper_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/sparky_bumper/cubit/sparky_bumper_cubit_test.dart",
"repo_id": "pinball",
"token_count": 315
} | 1,131 |
import 'dart:typed_data';
import 'dart:ui';
/// {@template canvas_wrapper}
/// Custom [Canvas] implementation for Pinball
/// {@endtemplate}
class CanvasWrapper implements Canvas {
/// [Canvas] used for painting operations
late Canvas canvas;
@override
void clipPath(Path path, {bool doAntiAlias = true}) =>
... | pinball/packages/pinball_flame/lib/src/canvas/canvas_wrapper.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/canvas/canvas_wrapper.dart",
"repo_id": "pinball",
"token_count": 1613
} | 1,132 |
// 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:mocktail/mocktail.dart';
import 'package:pinball_flame/pinball_flame.dart';
class _TestBodyComponent extends BodyComp... | pinball/packages/pinball_flame/test/src/behaviors/z_index_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_flame/test/src/behaviors/z_index_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 803
} | 1,133 |
# pinball_theme
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Package containing themes for pinball game.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_goo... | pinball/packages/pinball_theme/README.md/0 | {
"file_path": "pinball/packages/pinball_theme/README.md",
"repo_id": "pinball",
"token_count": 168
} | 1,134 |
export 'android_theme.dart';
export 'character_theme.dart';
export 'dash_theme.dart';
export 'dino_theme.dart';
export 'sparky_theme.dart';
| pinball/packages/pinball_theme/lib/src/themes/themes.dart/0 | {
"file_path": "pinball/packages/pinball_theme/lib/src/themes/themes.dart",
"repo_id": "pinball",
"token_count": 53
} | 1,135 |
import 'package:flutter/material.dart';
import 'package:pinball_ui/gen/gen.dart';
import 'package:pinball_ui/pinball_ui.dart';
/// {@template pinball_button}
/// Pinball-themed button with pixel art.
/// {@endtemplate}
class PinballButton extends StatelessWidget {
/// {@macro pinball_button}
const PinballButton({
... | pinball/packages/pinball_ui/lib/src/widgets/pinball_button.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/widgets/pinball_button.dart",
"repo_id": "pinball",
"token_count": 691
} | 1,136 |
// 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/behaviors/scoring_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/scoring_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2333
} | 1,137 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame/input.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/material.dart';
import 'package:flutter... | pinball/test/game/components/backbox/displays/initials_input_display_test.dart/0 | {
"file_path": "pinball/test/game/components/backbox/displays/initials_input_display_test.dart",
"repo_id": "pinball",
"token_count": 2709
} | 1,138 |
// ignore_for_file: cascade_invocations
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';
import 'package:mocktail... | pinball/test/game/components/google_gallery/behaviors/google_word_bonus_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/google_gallery/behaviors/google_word_bonus_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2362
} | 1,139 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/start_game/bloc/start_game_bloc.dart';
import '../../../helpers/helpers.dart';
class _MockStartGameBloc extends Mock imp... | pinball/test/game/view/widgets/replay_button_overlay_test.dart/0 | {
"file_path": "pinball/test/game/view/widgets/replay_button_overlay_test.dart",
"repo_id": "pinball",
"token_count": 791
} | 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.
package io.flutter.plugins.camera.features.zoomlevel;
import android.graphics.Rect;
import androidx.annotation.NonNull;
import androidx.core.math.MathUtil... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/zoomlevel/ZoomUtils.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/zoomlevel/ZoomUtils.java",
"repo_id": "plugins",
"token_count": 576
} | 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.
package io.flutter.plugins.camera;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraTest_getRecordingProfileTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraTest_getRecordingProfileTest.java",
"repo_id": "plugins",
"token_count": 2518
} | 1,142 |
// 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.resolution;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import s... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/resolution/ResolutionFeatureTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/resolution/ResolutionFeatureTest.java",
"repo_id": "plugins",
"token_count": 6553
} | 1,143 |
rootProject.name = 'camera_android_camerax'
| plugins/packages/camera/camera_android_camerax/android/settings.gradle/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/settings.gradle",
"repo_id": "plugins",
"token_count": 15
} | 1,144 |
// 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.content.Context;
import androidx.annotation.NonNull;
import androidx.camera.core.Camera;
import android... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProcessCameraProviderHostApiImpl.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProcessCameraProviderHostApiImpl.java",
"repo_id": "plugins",
"token_count": 2053
} | 1,145 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v3.2.9), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_co... | plugins/packages/camera/camera_android_camerax/lib/src/camerax_library.g.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/lib/src/camerax_library.g.dart",
"repo_id": "plugins",
"token_count": 11901
} | 1,146 |
// 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.dart';
import 'package:camera_android_camerax/src/instance_manager.dart';
import 'package:flutter_test/fl... | plugins/packages/camera/camera_android_camerax/test/camera_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/test/camera_test.dart",
"repo_id": "plugins",
"token_count": 283
} | 1,147 |
// 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 AVFoundation;
#import "CameraPermissionUtils.h"
void FLTRequestPermission(BOOL forAudio, FLTCameraPermissionRequestCompletionHandler handler) {
... | plugins/packages/camera/camera_avfoundation/ios/Classes/CameraPermissionUtils.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/CameraPermissionUtils.m",
"repo_id": "plugins",
"token_count": 1971
} | 1,148 |
// 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 "FLTThreadSafeFlutterResult.h"
#import <Foundation/Foundation.h>
#import "QueueUtils.h"
@implementation FLTThreadSafeFlutterResult {
}
- (id)init... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeFlutterResult.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeFlutterResult.m",
"repo_id": "plugins",
"token_count": 636
} | 1,149 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The possible flash modes that can be set for a camera
enum FlashMode {
/// Do not use the flash when taking a picture.
off,
/// Let the device d... | plugins/packages/camera/camera_platform_interface/lib/src/types/flash_mode.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/lib/src/types/flash_mode.dart",
"repo_id": "plugins",
"token_count": 136
} | 1,150 |
// 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:camera_platform_interface/src/types/exposure_mode.dart';
import ... | plugins/packages/camera/camera_platform_interface/test/types/exposure_mode_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/test/types/exposure_mode_test.dart",
"repo_id": "plugins",
"token_count": 350
} | 1,151 |
// 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_CAMERA_CAMERA_WINDOWS_WINDOWS_PHOTO_HANDLER_H_
#define PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_PHOTO_HANDLER_H_
#include <mfapi.h>
#includ... | plugins/packages/camera/camera_windows/windows/photo_handler.h/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/photo_handler.h",
"repo_id": "plugins",
"token_count": 836
} | 1,152 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps... | plugins/packages/google_maps_flutter/google_maps_flutter/test/marker_updates_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/test/marker_updates_test.dart",
"repo_id": "plugins",
"token_count": 3000
} | 1,153 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.