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.
//
// Autogenerated from Pigeon, do not edit directly.
// See also: https://pub.dev/packages/pigeon
import Foundation
#if os(iOS)
import Flutter
#elseif... | packages/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift",
"repo_id": "packages",
"token_count": 47289
} | 1,025 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' show Directory, File;
import 'package:path/path.dart' as path;
import 'package:pigeon/ast.dart';
import 'package:pigeon/dart_generator.da... | packages/packages/pigeon/test/dart_generator_test.dart/0 | {
"file_path": "packages/packages/pigeon/test/dart_generator_test.dart",
"repo_id": "packages",
"token_count": 26360
} | 1,026 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'dart:io';
import 'package:path/path.dart' as p;
import 'generation.dart';
import 'test_suites.dart';
/// Runs t... | packages/packages/pigeon/tool/shared/test_runner.dart/0 | {
"file_path": "packages/packages/pigeon/tool/shared/test_runner.dart",
"repo_id": "packages",
"token_count": 638
} | 1,027 |
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
</layer-list>
| packages/packages/platform/example/android/app/src/main/res/drawable-v21/launch_background.xml/0 | {
"file_path": "packages/packages/platform/example/android/app/src/main/res/drawable-v21/launch_background.xml",
"repo_id": "packages",
"token_count": 67
} | 1,028 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/platform/example/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "packages/packages/platform/example/macos/Runner/Configs/Release.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,029 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'default_pointer_interceptor.dart... | packages/packages/pointer_interceptor/pointer_interceptor_platform_interface/lib/src/pointer_interceptor_platform.dart/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor_platform_interface/lib/src/pointer_interceptor_platform.dart",
"repo_id": "packages",
"token_count": 425
} | 1,030 |
// 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'
show
Process,
ProcessResult,
ProcessSignal,
ProcessStartMode,
systemEnc... | packages/packages/process/lib/src/interface/process_manager.dart/0 | {
"file_path": "packages/packages/process/lib/src/interface/process_manager.dart",
"repo_id": "packages",
"token_count": 2246
} | 1,031 |
// 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 <XCTest/XCTest.h>
#import <os/log.h>
static const int kElementWaitingTime = 30;
@interface RunnerUITests : XCTestCase
@end
@implementation Runn... | packages/packages/quick_actions/quick_actions/example/ios/RunnerUITests/RunnerUITests.m/0 | {
"file_path": "packages/packages/quick_actions/quick_actions/example/ios/RunnerUITests/RunnerUITests.m",
"repo_id": "packages",
"token_count": 1309
} | 1,032 |
// 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.quickactions;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.conten... | packages/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/QuickActionsPlugin.java/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/QuickActionsPlugin.java",
"repo_id": "packages",
"token_count": 1402
} | 1,033 |
// 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 (v12.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
import Foundation
#if os(iOS)
import Flutter
... | packages/packages/quick_actions/quick_actions_ios/ios/Classes/messages.g.swift/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_ios/ios/Classes/messages.g.swift",
"repo_id": "packages",
"token_count": 2058
} | 1,034 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/rfw/example/wasm/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "packages/packages/rfw/example/wasm/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,035 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
import 'dart:async';
import 'dart:convert';
import 'package:flutter/foundation.dart' show objectRuntimeType;
import '../... | packages/packages/rfw/lib/src/flutter/content.dart/0 | {
"file_path": "packages/packages/rfw/lib/src/flutter/content.dart",
"repo_id": "packages",
"token_count": 4389
} | 1,036 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
// ignore_for_file: use_raw_strings, avoid_escaping_inner_quotes
import 'package:flutter_test/flutter_test.dart';
import '... | packages/packages/rfw/test/text_test.dart/0 | {
"file_path": "packages/packages/rfw/test/text_test.dart",
"repo_id": "packages",
"token_count": 11974
} | 1,037 |
// 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 (v10.1.6), do not edit directly.
// See also: https://pub.dev/packages/pigeon
import Foundation
#if os(iOS)
import Flutter
... | packages/packages/shared_preferences/shared_preferences_foundation/darwin/Classes/messages.g.swift/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_foundation/darwin/Classes/messages.g.swift",
"repo_id": "packages",
"token_count": 2177
} | 1,038 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:shared_preferences_foundation/shared_preferences_f... | packages/packages/shared_preferences/shared_preferences_foundation/test/shared_preferences_foundation_test.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_foundation/test/shared_preferences_foundation_test.dart",
"repo_id": "packages",
"token_count": 3808
} | 1,039 |
name: shared_preferences_platform_interface
description: A common platform interface for the shared_preferences plugin.
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Ao... | packages/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml",
"repo_id": "packages",
"token_count": 231
} | 1,040 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:typed_data';
import 'package:standard_message_codec/standard_message_codec.dart';
import 'package:test/test.dart';
const StandardMessageCode... | packages/packages/standard_message_codec/test/standard_message_codec_test.dart/0 | {
"file_path": "packages/packages/standard_message_codec/test/standard_message_codec_test.dart",
"repo_id": "packages",
"token_count": 2240
} | 1,041 |
#include "Generated.xcconfig"
| packages/packages/two_dimensional_scrollables/example/ios/Flutter/Release.xcconfig/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/example/ios/Flutter/Release.xcconfig",
"repo_id": "packages",
"token_count": 12
} | 1,042 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/two_dimensional_scrollables/example/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/example/macos/Runner/Configs/Release.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,043 |
// 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:collection';
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:fl... | packages/packages/two_dimensional_scrollables/lib/src/table_view/table.dart/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/lib/src/table_view/table.dart",
"repo_id": "packages",
"token_count": 24532
} | 1,044 |
// 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';
// PreferredLaunchMode is hidden to prevent accidentally using it in APIs at
// this layer. If it is ever needed in this file, it sho... | packages/packages/url_launcher/url_launcher/lib/src/url_launcher_uri.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/lib/src/url_launcher_uri.dart",
"repo_id": "packages",
"token_count": 1238
} | 1,045 |
// 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 (v10.1.6), do not edit directly.
// See also: https://pub.dev/packages/pigeon
package io.flutter.plugins.urllauncher;
import ... | packages/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/Messages.java/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/Messages.java",
"repo_id": "packages",
"token_count": 5769
} | 1,046 |
// 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 <flutter_linux/flutter_linux.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <memory>
#include <string>
#include "include/url_launc... | packages/packages/url_launcher/url_launcher_linux/linux/test/url_launcher_linux_test.cc/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_linux/linux/test/url_launcher_linux_test.cc",
"repo_id": "packages",
"token_count": 1363
} | 1,047 |
name: url_launcher_macos
description: macOS implementation of the url_launcher plugin.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_macos
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 3.1.0
enviro... | packages/packages/url_launcher/url_launcher_macos/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_macos/pubspec.yaml",
"repo_id": "packages",
"token_count": 341
} | 1,048 |
// 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 <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
/// A proxy object to act as a CADisplayLink target, to... | packages/packages/video_player/video_player_avfoundation/darwin/Classes/ios/FVPDisplayLink.m/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/darwin/Classes/ios/FVPDisplayLink.m",
"repo_id": "packages",
"token_count": 662
} | 1,049 |
// 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() {
//... | packages/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart",
"repo_id": "packages",
"token_count": 252
} | 1,050 |
// 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.
/// A single benchmark score value collected from the benchmark.
class BenchmarkScore {
/// Creates a benchmark score.
///
/// [metric] and [value] m... | packages/packages/web_benchmarks/lib/src/benchmark_result.dart/0 | {
"file_path": "packages/packages/web_benchmarks/lib/src/benchmark_result.dart",
"repo_id": "packages",
"token_count": 990
} | 1,051 |
include: ../../../../analysis_options.yaml
linter:
rules:
# This is test code. Do not enforce docs.
package_api_docs: false
public_member_api_docs: false
| packages/packages/web_benchmarks/testing/test_app/analysis_options.yaml/0 | {
"file_path": "packages/packages/web_benchmarks/testing/test_app/analysis_options.yaml",
"repo_id": "packages",
"token_count": 62
} | 1,052 |
## 4.7.0
* Adds support to track scroll position changes.
* Updates minimum supported SDK version to Flutter 3.16.6/Dart 3.2.3.
## 4.6.0
* Adds support for custom handling of JavaScript dialogs. See
`WebViewController.setOnJavaScriptAlertDialog`, `WebViewController.setOnJavaScriptConfirmDialog`
and `WebViewContr... | packages/packages/webview_flutter/webview_flutter/CHANGELOG.md/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/CHANGELOG.md",
"repo_id": "packages",
"token_count": 5504
} | 1,053 |
rootProject.name = 'webview_flutter'
| packages/packages/webview_flutter/webview_flutter_android/android/settings.gradle/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/settings.gradle",
"repo_id": "packages",
"token_count": 13
} | 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.
package io.flutter.plugins.webviewflutter;
import android.webkit.HttpAuthHandler;
import androidx.annotation.NonNull;
import io.flutter.plugin.common.Bina... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/HttpAuthHandlerHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/HttpAuthHandlerHostApiImpl.java",
"repo_id": "packages",
"token_count": 579
} | 1,055 |
// 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 androidx.annotation.VisibleForTesting... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterApiImpl.java",
"repo_id": "packages",
"token_count": 821
} | 1,056 |
// 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.junit.Assert.assertArrayEquals;
import static org.junit.Assert.fail;
import static org.mockit... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/RegistrarFlutterAssetManagerTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/RegistrarFlutterAssetManagerTest.java",
"repo_id": "packages",
"token_count": 656
} | 1,057 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/services.dart' show BinaryMessenger, Uint8List;
import 'android_webview.dart';
import 'android_webview.g.dart';... | packages/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart",
"repo_id": "packages",
"token_count": 16508
} | 1,058 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_android/test/android_navigation_delegate_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'package:mockito/mockito.dart' as _i1;
import 'package:we... | packages/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart",
"repo_id": "packages",
"token_count": 1333
} | 1,059 |
## NEXT
* Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.
## 2.10.0
* Adds `WebResourceRequest` and `WebResourceResponse` to `HttpResponseError`.
## 2.9.1
* Updates minimum required plugin_platform_interface version to 2.1.7.
## 2.9.0
* Adds support to show JavaScript dialog. See `PlatformWebView... | packages/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md",
"repo_id": "packages",
"token_count": 1407
} | 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:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:webview_flutter_platform_in... | packages/packages/webview_flutter/webview_flutter_web/test/webview_flutter_web_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/test/webview_flutter_web_test.dart",
"repo_id": "packages",
"token_count": 213
} | 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.
@import Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFURLTests : XCTestCase
@end
@implementation F... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFURLTests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFURLTests.m",
"repo_id": "packages",
"token_count": 617
} | 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 "FWFPreferencesHostApi.h"
#import "FWFWebViewConfigurationHostApi.h"
@interface FWFPreferencesHostApiImpl ()
// InstanceManager must be weak to pr... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.m",
"repo_id": "packages",
"token_count": 672
} | 1,063 |
// 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 "FWFURLHostApi.h"
@interface FWFURLHostApiImpl ()
// BinaryMessenger must be weak to prevent a circular reference with the host API it
// referenc... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLHostApi.m",
"repo_id": "packages",
"token_count": 957
} | 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.
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import 'package:test/fake.dart';
import 'package:test/test.dart';
import... | packages/packages/xdg_directories/test/xdg_directories_test.dart/0 | {
"file_path": "packages/packages/xdg_directories/test/xdg_directories_test.dart",
"repo_id": "packages",
"token_count": 2105
} | 1,065 |
# Running the somes tests from these packages on an AVD with Android 34 causes failures.
- webview_flutter
| packages/script/configs/still_requires_api_33_avd.yaml/0 | {
"file_path": "packages/script/configs/still_requires_api_33_avd.yaml",
"repo_id": "packages",
"token_count": 27
} | 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 'common/output_utils.dart';
import 'common/package_looping_command.dart';
import 'common/repository_package.dart';
/// A command to run Dart's "fix... | packages/script/tool/lib/src/fix_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/fix_command.dart",
"repo_id": "packages",
"token_count": 443
} | 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 'dart:io' as io;
import 'package:file/file.dart';
import 'package:http/http.dart' as http;
import 'package:pub_semver/pub_semver.dart';
import 'pac... | packages/script/tool/lib/src/update_dependency_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/update_dependency_command.dart",
"repo_id": "packages",
"token_count": 7176
} | 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.
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_plugin_tools/src/common/git_version_finder.dart';
import 'packag... | packages/script/tool/test/common/package_state_utils_test.dart/0 | {
"file_path": "packages/script/tool/test/common/package_state_utils_test.dart",
"repo_id": "packages",
"token_count": 6420
} | 1,069 |
// 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/gradle_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/gradle_check_command_test.dart",
"repo_id": "packages",
"token_count": 10749
} | 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 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_plugin_tools/src/upd... | packages/script/tool/test/update_min_sdk_command_test.dart/0 | {
"file_path": "packages/script/tool/test/update_min_sdk_command_test.dart",
"repo_id": "packages",
"token_count": 1558
} | 1,071 |
name: cupertino_icons
description: Default icons asset for Cupertino widgets based on Apple styled icons
repository: https://github.com/flutter/packages/tree/main/third_party/packages/cupertino_icons
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cupertino_icons%22
vers... | packages/third_party/packages/cupertino_icons/pubspec.yaml/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/pubspec.yaml",
"repo_id": "packages",
"token_count": 236
} | 1,072 |
# Firebase Functions
This folder contains firebase functions to support the Photobooth project.
## 'share' function
This function validates the requested path is valid for sharing (that it is /share/filename.ext) and that the extension is an expected image file type. It will validate the file exists in storage, and ... | photobooth/functions/README.md/0 | {
"file_path": "photobooth/functions/README.md",
"repo_id": "photobooth",
"token_count": 216
} | 1,073 |
import 'dart:developer';
import 'package:bloc/bloc.dart';
class AppBlocObserver extends BlocObserver {
@override
void onTransition(
Bloc<dynamic, dynamic> bloc,
Transition<dynamic, dynamic> transition,
) {
super.onTransition(bloc, transition);
log('onTransition(${bloc.runtimeType}, $transition)'... | photobooth/lib/app/app_bloc_observer.dart/0 | {
"file_path": "photobooth/lib/app/app_bloc_observer.dart",
"repo_id": "photobooth",
"token_count": 200
} | 1,074 |
{
"@@locale": "vi",
"landingPageHeading": "Chào mừng đã đến với tới buồng chụp ảnh I∕O",
"landingPageSubheading": "Chụp ảnh và chia sẻ với cộng đồng!",
"landingPageTakePhotoButtonText": "Bắt đầu",
"footerMadeWithText": "Làm bởi ",
"footerMadeWithFlutterLinkText": "Flutter",
... | photobooth/lib/l10n/arb/app_vi.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_vi.arb",
"repo_id": "photobooth",
"token_count": 4136
} | 1,075 |
part of 'photobooth_bloc.dart';
const emptyAssetId = '';
class PhotoConstraint extends Equatable {
const PhotoConstraint({this.width = 1, this.height = 1});
final double width;
final double height;
@override
List<Object> get props => [width, height];
}
class PhotoAssetSize extends Equatable {
const Pho... | photobooth/lib/photobooth/bloc/photobooth_state.dart/0 | {
"file_path": "photobooth/lib/photobooth/bloc/photobooth_state.dart",
"repo_id": "photobooth",
"token_count": 1148
} | 1,076 |
import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
class StickersLayer extends StatelessWidget {
const StickersLayer({super.key});
@override
Widget build(BuildContext context) {
final state = context.watch<Photob... | photobooth/lib/photobooth/widgets/stickers_layer.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/stickers_layer.dart",
"repo_id": "photobooth",
"token_count": 860
} | 1,077 |
import 'dart:typed_data';
import 'package:analytics/analytics.dart';
import 'package:cross_file/cross_file.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/external_links/external_links.dart';
import 'package:io_photobooth/l10n/l10n.dart';
im... | photobooth/lib/share/widgets/share_body.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_body.dart",
"repo_id": "photobooth",
"token_count": 2845
} | 1,078 |
export 'bloc/stickers_bloc.dart';
export 'view/stickers_page.dart';
export 'widgets/widgets.dart';
| photobooth/lib/stickers/stickers.dart/0 | {
"file_path": "photobooth/lib/stickers/stickers.dart",
"repo_id": "photobooth",
"token_count": 40
} | 1,079 |
/// Method which tracks an event for the provided
/// [category], [action], and [label].
void trackEvent({
required String category,
required String action,
required String label,
}) {
// no-op on mobile
}
| photobooth/packages/analytics/lib/src/analytics_io.dart/0 | {
"file_path": "photobooth/packages/analytics/lib/src/analytics_io.dart",
"repo_id": "photobooth",
"token_count": 58
} | 1,080 |
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
void main() => runApp(const App());
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(home: HomePage());
}
}
class HomePage extends StatefulWidge... | photobooth/packages/camera/camera/example/lib/main.dart/0 | {
"file_path": "photobooth/packages/camera/camera/example/lib/main.dart",
"repo_id": "photobooth",
"token_count": 1075
} | 1,081 |
abstract class CameraException implements Exception {
const CameraException(this.description);
final String description;
}
class CameraUnknownException implements CameraException {
const CameraUnknownException();
@override
String get description => 'Unknown Error';
}
class CameraNotSupportedException implem... | photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_exception.dart/0 | {
"file_path": "photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_exception.dart",
"repo_id": "photobooth",
"token_count": 357
} | 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.
import 'dart:async';
import 'dart:html' as html;
import 'dart:js_util' as js_util;
/// {@template offscreen_canvas}
/// Polyfill for html.OffscreenCanvas ... | photobooth/packages/image_compositor/lib/src/offscreen_canvas.dart/0 | {
"file_path": "photobooth/packages/image_compositor/lib/src/offscreen_canvas.dart",
"repo_id": "photobooth",
"token_count": 1738
} | 1,083 |
/// A UI library for the Photobooth app.
library photobooth_ui;
export 'package:flame/flame.dart' show Flame;
export 'src/colors.dart';
export 'src/helpers/helpers.dart';
export 'src/layout/layout.dart';
export 'src/models/models.dart';
export 'src/navigation/navigation.dart';
export 'src/platform/platform.dart';
exp... | photobooth/packages/photobooth_ui/lib/photobooth_ui.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/photobooth_ui.dart",
"repo_id": "photobooth",
"token_count": 150
} | 1,084 |
import 'package:flutter/widgets.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
/// Photobooth Text Style Definitions
class PhotoboothTextStyle {
static const _baseTextStyle = TextStyle(
package: 'photobooth_ui',
fontFamily: 'GoogleSans',
color: PhotoboothColors.black,
fontWeight: Photoboot... | photobooth/packages/photobooth_ui/lib/src/typography/text_styles.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/typography/text_styles.dart",
"repo_id": "photobooth",
"token_count": 979
} | 1,085 |
export 'animated_fade_in.dart';
export 'animated_pulse.dart';
export 'animated_sprite.dart';
export 'app_animated_cross_fade.dart';
export 'app_circular_progress_indicator.dart';
export 'app_dialog.dart';
export 'app_page_view.dart';
export 'app_tooltip.dart';
export 'app_tooltip_button.dart';
export 'clickable.dart';
... | photobooth/packages/photobooth_ui/lib/src/widgets/widgets.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/widgets.dart",
"repo_id": "photobooth",
"token_count": 172
} | 1,086 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('AppCircularProgressIndicator', () {
testWidgets('renders', (tester) async {
await tester.pumpWidget(AppCircularProgressIndicator());
e... | photobooth/packages/photobooth_ui/test/src/widgets/app_circular_progress_indicator_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/app_circular_progress_indicator_test.dart",
"repo_id": "photobooth",
"token_count": 494
} | 1,087 |
// ignore_for_file: prefer_const_constructors
// ignore_for_file: avoid_dynamic_calls
import 'dart:async';
import 'dart:typed_data';
import 'package:firebase_storage/firebase_storage.dart' as firebase_storage;
import 'package:flutter_test/flutter_test.dart';
import 'package:image_compositor/image_compositor.dart';
imp... | photobooth/packages/photos_repository/test/photos_repository_test.dart/0 | {
"file_path": "photobooth/packages/photos_repository/test/photos_repository_test.dart",
"repo_id": "photobooth",
"token_count": 3609
} | 1,088 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import '../../helpers/helpers.dart';
void main() {
group('WhiteFooter', () {
... | photobooth/test/app/widgets/footer_test.dart/0 | {
"file_path": "photobooth/test/app/widgets/footer_test.dart",
"repo_id": "photobooth",
"token_count": 950
} | 1,089 |
// ignore_for_file: prefer_const_constructors
import 'package:camera/camera.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import '../../helpers/helpers.dart';... | photobooth/test/photobooth/widgets/photobooth_photo_test.dart/0 | {
"file_path": "photobooth/test/photobooth/widgets/photobooth_photo_test.dart",
"repo_id": "photobooth",
"token_count": 633
} | 1,090 |
// ignore_for_file: prefer_const_constructors
import 'dart:typed_data';
import 'package:bloc_test/bloc_test.dart';
import 'package:cross_file/cross_file.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:mock... | photobooth/test/share/widgets/share_state_listener_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/share_state_listener_test.dart",
"repo_id": "photobooth",
"token_count": 3092
} | 1,091 |
{
"firestore": {
"rules": "firestore.rules"
},
"hosting": {
"public": "build/web",
"site": "",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
... | pinball/firebase.json/0 | {
"file_path": "pinball/firebase.json",
"repo_id": "pinball",
"token_count": 365
} | 1,092 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/select_character/select_character.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Spawns a new... | pinball/lib/game/behaviors/ball_spawning_behavior.dart/0 | {
"file_path": "pinball/lib/game/behaviors/ball_spawning_behavior.dart",
"repo_id": "pinball",
"token_count": 539
} | 1,093 |
export 'android_spaceship_bonus_behavior.dart';
export 'ramp_bonus_behavior.dart';
export 'ramp_multiplier_behavior.dart';
export 'ramp_progress_behavior.dart';
export 'ramp_reset_behavior.dart';
export 'ramp_shot_behavior.dart';
| pinball/lib/game/components/android_acres/behaviors/behaviors.dart/0 | {
"file_path": "pinball/lib/game/components/android_acres/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 84
} | 1,094 |
import 'package:flame/components.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template leaderboard_failure_display}
/// Display showing an error message when the leaderboard couldn't be loaded
/// {... | pinball/lib/game/components/backbox/displays/leaderboard_failure_display.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/displays/leaderboard_failure_display.dart",
"repo_id": "pinball",
"token_count": 240
} | 1,095 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Adds a [GameBonus.goo... | pinball/lib/game/components/google_gallery/behaviors/google_word_bonus_behavior.dart/0 | {
"file_path": "pinball/lib/game/components/google_gallery/behaviors/google_word_bonus_behavior.dart",
"repo_id": "pinball",
"token_count": 399
} | 1,096 |
export 'pinball_game_page.dart';
export 'widgets/widgets.dart';
| pinball/lib/game/view/view.dart/0 | {
"file_path": "pinball/lib/game/view/view.dart",
"repo_id": "pinball",
"token_count": 25
} | 1,097 |
import 'package:flutter/widgets.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
export 'package:flutter_gen/gen_l10n/app_localizations.dart';
extension AppLocalizationsX on BuildContext {
AppLocalizations get l10n => AppLocalizations.of(this);
}
| pinball/lib/l10n/l10n.dart/0 | {
"file_path": "pinball/lib/l10n/l10n.dart",
"repo_id": "pinball",
"token_count": 95
} | 1,098 |
include: package:very_good_analysis/analysis_options.2.4.0.yaml | pinball/packages/leaderboard_repository/analysis_options.yaml/0 | {
"file_path": "pinball/packages/leaderboard_repository/analysis_options.yaml",
"repo_id": "pinball",
"token_count": 22
} | 1,099 |
name: pinball_audio
description: Package with the sound manager for the pinball game
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.16.0 <3.0.0"
dependencies:
audioplayers: ^0.20.1
clock: ^1.1.0
flame_audio: ^1.0.1
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
moc... | pinball/packages/pinball_audio/pubspec.yaml/0 | {
"file_path": "pinball/packages/pinball_audio/pubspec.yaml",
"repo_id": "pinball",
"token_count": 221
} | 1,100 |
// ignore_for_file: public_member_api_docs
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
class AndroidAnimatronicBallContactBehavior
extends ContactBehavior<AndroidAnimatronic> {
@override
void... | pinball/packages/pinball_components/lib/src/components/android_animatronic/behaviors/android_animatronic_ball_contact_behavior.dart.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_animatronic/behaviors/android_animatronic_ball_contact_behavior.dart.dart",
"repo_id": "pinball",
"token_count": 176
} | 1,101 |
import 'dart:math' as math;
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';
/// Scales the ball's gravity according to its position on the board.
class BallGravita... | pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_gravitating_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_gravitating_behavior.dart",
"repo_id": "pinball",
"token_count": 449
} | 1,102 |
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template chrome_dino_mouth_opening_behavior}
/// Allows a [Ball] to enter the [ChromeDino] mouth when it is open.
/// {@endtemplate}
class ChromeDinoM... | pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_mouth_opening_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_mouth_opening_behavior.dart",
"repo_id": "pinball",
"token_count": 237
} | 1,103 |
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';
class FlapperSpinningBehavior extends ContactBehavior<FlapperEntrance> {
@override
void beginContact(Object othe... | pinball/packages/pinball_components/lib/src/components/flapper/behaviors/flapper_spinning_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/flapper/behaviors/flapper_spinning_behavior.dart",
"repo_id": "pinball",
"token_count": 164
} | 1,104 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:pinball_components/pinball_components.dart';
part 'google_word_state.dart';
class GoogleWordCubit extends Cubit<GoogleWordState> {
GoogleWordCubit() : super(GoogleWordState.initial());
static const _lettersInGoogle = 6;
... | pinball/packages/pinball_components/lib/src/components/google_word/cubit/google_word_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/google_word/cubit/google_word_cubit.dart",
"repo_id": "pinball",
"token_count": 941
} | 1,105 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template multiball_blinking_behavior}
/// Makes a [Multiball] blink back to [MultiballLightState.lit] when
/// [MultiballLightState.dimmed].
/// {@endtemplate}
c... | pinball/packages/pinball_components/lib/src/components/multiball/behaviors/multiball_blinking_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/multiball/behaviors/multiball_blinking_behavior.dart",
"repo_id": "pinball",
"token_count": 699
} | 1,106 |
import 'package:flame/components.dart';
import 'package:pinball_components/gen/assets.gen.dart';
import 'package:pinball_components/pinball_components.dart' hide Assets;
import 'package:pinball_flame/pinball_flame.dart';
/// {@template rocket_sprite_component}
/// A [SpriteComponent] for the rocket over [Plunger].
///... | pinball/packages/pinball_components/lib/src/components/rocket.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/rocket.dart",
"repo_id": "pinball",
"token_count": 288
} | 1,107 |
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template ramp_ball_ascending_contact_behavior}
/// Detects an ascending [Ball] that enters into the [SpaceshipRamp].
///
/// The [Ball] can hit with s... | pinball/packages/pinball_components/lib/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior.dart",
"repo_id": "pinball",
"token_count": 281
} | 1,108 |
/// Z-Indexes for the component rendering order in the pinball game.
abstract class ZIndexes {
static const _base = 0;
static const _above = 1;
static const _below = -1;
// Ball
static const ballOnBoard = _base;
static const ballOnSpaceshipRamp = _above + spaceshipRampBackgroundRailing;
static const b... | pinball/packages/pinball_components/lib/src/components/z_indexes.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/z_indexes.dart",
"repo_id": "pinball",
"token_count": 830
} | 1,109 |
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 AndroidBumperAGame extends BallGame {
AndroidBumperAGame()
: super(
imagesFileNames: [
Assets.images... | pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_a_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_a_game.dart",
"repo_id": "pinball",
"token_count": 311
} | 1,110 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/bottom_group/baseboard_game.dart';
import 'package:sandbox/stories/bottom_group/flipper_game.dart';
import 'package:sandbox/stories/bottom_group/kicker_game.dart';
void addBottomGroupStories(Dashbook d... | pinball/packages/pinball_components/sandbox/lib/stories/bottom_group/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/bottom_group/stories.dart",
"repo_id": "pinball",
"token_count": 289
} | 1,111 |
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class GoogleLetterGame extends BallGame {
GoogleLetterGame()
: super(
imagesFileNames: [
Assets.images.googleWord.let... | pinball/packages/pinball_components/sandbox/lib/stories/google_word/google_letter_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/google_word/google_letter_game.dart",
"repo_id": "pinball",
"token_count": 292
} | 1,112 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/sparky_scorch/sparky_bumper_game.dart';
import 'package:sandbox/stories/sparky_scorch/sparky_computer_game.dart';
void addSparkyScorchStories(Dashbook dashbook) {
dashbook.storiesOf('Sparky Scorch')
... | pinball/packages/pinball_components/sandbox/lib/stories/sparky_scorch/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/sparky_scorch/stories.dart",
"repo_id": "pinball",
"token_count": 244
} | 1,113 |
// 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/android_bumper/behaviors/android_bumper_ball_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/android_bumper/behaviors/android_bumper_ball_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 671
} | 1,114 |
// 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/pinball_components.dart';
import '../../helpers/helpers.dart';
void main() {
group('Baseboard',... | pinball/packages/pinball_components/test/src/components/baseboard_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/baseboard_test.dart",
"repo_id": "pinball",
"token_count": 1286
} | 1,115 |
// 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:pinball_components/pinball_components.dart';
class _TestGame extends For... | pinball/packages/pinball_components/test/src/components/google_letter_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/google_letter_test.dart",
"repo_id": "pinball",
"token_count": 1885
} | 1,116 |
// ignore_for_file: prefer_const_constructors, cascade_invocations
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_component... | pinball/packages/pinball_components/test/src/components/multiball/behaviors/multiball_blinking_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/multiball/behaviors/multiball_blinking_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2316
} | 1,117 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame/effects.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_components/src/componen... | pinball/packages/pinball_components/test/src/components/score_component/score_component_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/score_component/score_component_test.dart",
"repo_id": "pinball",
"token_count": 3194
} | 1,118 |
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/sparky_bu... | pinball/packages/pinball_components/test/src/components/sparky_bumper/behaviors/sparky_bumper_blinking_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/sparky_bumper/behaviors/sparky_bumper_blinking_behavior_test.dart",
"repo_id": "pinball",
"token_count": 637
} | 1,119 |
import 'dart:ui';
import 'package:flame/components.dart';
import 'package:pinball_flame/src/canvas/canvas_wrapper.dart';
/// Called right before [Canvas.drawImageRect] is called.
///
/// This is useful since [Sprite.render] uses [Canvas.drawImageRect] to draw
/// the [Sprite].
typedef PaintFunction = void Function(Pa... | pinball/packages/pinball_flame/lib/src/canvas/canvas_component.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/canvas/canvas_component.dart",
"repo_id": "pinball",
"token_count": 451
} | 1,120 |
// 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/layer_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_flame/test/src/behaviors/layer_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 819
} | 1,121 |
import 'package:pinball_theme/pinball_theme.dart';
/// {@template sparky_theme}
/// Defines Sparky character theme assets and attributes.
/// {@endtemplate}
class SparkyTheme extends CharacterTheme {
/// {@macro sparky_theme}
const SparkyTheme();
@override
AssetGenImage get ball => Assets.images.sparky.ball;
... | pinball/packages/pinball_theme/lib/src/themes/sparky_theme.dart/0 | {
"file_path": "pinball/packages/pinball_theme/lib/src/themes/sparky_theme.dart",
"repo_id": "pinball",
"token_count": 214
} | 1,122 |
import 'package:flutter/material.dart';
import 'package:pinball_ui/pinball_ui.dart';
/// {@template crt_background}
/// [BoxDecoration] that provides a CRT-like background effect.
/// {@endtemplate}
class CrtBackground extends BoxDecoration {
/// {@macro crt_background}
const CrtBackground()
: super(
... | pinball/packages/pinball_ui/lib/src/widgets/crt_background.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/widgets/crt_background.dart",
"repo_id": "pinball",
"token_count": 330
} | 1,123 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_ui/pinball_ui.dart';
void main() {
group('PinballLoadingIndicator', () {
group('assert value', () {
test('throws error if value <= 0.0', () {
... | pinball/packages/pinball_ui/test/src/widgets/pinball_loading_indicator_test.dart/0 | {
"file_path": "pinball/packages/pinball_ui/test/src/widgets/pinball_loading_indicator_test.dart",
"repo_id": "pinball",
"token_count": 582
} | 1,124 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.