text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| packages/packages/rfw/example/local/android/gradle.properties/0 | {
"file_path": "packages/packages/rfw/example/local/android/gradle.properties",
"repo_id": "packages",
"token_count": 31
} | 1,139 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
import 'dart:typed_data';
import 'package:flutter_test/flutter_test.dart';
import 'package:rfw/formats.dart';
// This is... | packages/packages/rfw/test/binary_test.dart/0 | {
"file_path": "packages/packages/rfw/test/binary_test.dart",
"repo_id": "packages",
"token_count": 13448
} | 1,140 |
# Shared preferences plugin
<?code-excerpt path-base="example/lib"?>
[](https://pub.dev/packages/shared_preferences)
Wraps platform-specific persistent storage for simple data
(NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.).
Data... | packages/packages/shared_preferences/shared_preferences/README.md/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences/README.md",
"repo_id": "packages",
"token_count": 1654
} | 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.sharedpreferences;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.m... | packages/packages/shared_preferences/shared_preferences_android/android/src/test/java/io/flutter/plugins/sharedpreferences/SharedPreferencesTest.java/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_android/android/src/test/java/io/flutter/plugins/sharedpreferences/SharedPreferencesTest.java",
"repo_id": "packages",
"token_count": 3950
} | 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.
import 'package:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
input: 'pigeons/messages.dart',
javaOut:
'android/src/main/java/io/flutter/... | packages/packages/shared_preferences/shared_preferences_android/pigeons/messages.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_android/pigeons/messages.dart",
"repo_id": "packages",
"token_count": 604
} | 1,143 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:file/memory.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart' as path;
import ... | packages/packages/shared_preferences/shared_preferences_linux/test/shared_preferences_linux_test.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_linux/test/shared_preferences_linux_test.dart",
"repo_id": "packages",
"token_count": 3014
} | 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.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:shared_preferences_platform_inter... | packages/packages/shared_preferences/shared_preferences_web/example/integration_test/shared_preferences_web_test.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_web/example/integration_test/shared_preferences_web_test.dart",
"repo_id": "packages",
"token_count": 5498
} | 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.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:table_view_example/main.dart';
void main() {
te... | packages/packages/two_dimensional_scrollables/example/test/table_view_example_test.dart/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/example/test/table_view_example_test.dart",
"repo_id": "packages",
"token_count": 705
} | 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:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:two_dimensi... | packages/packages/two_dimensional_scrollables/test/table_view/table_span_test.dart/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/test/table_view/table_span_test.dart",
"repo_id": "packages",
"token_count": 29923
} | 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 'package:flutter_test/flutter_test.dart';
import 'package:url_launcher/src/types.dart';
import 'package:url_launcher/src/url_launcher_uri.dart';
imp... | packages/packages/url_launcher/url_launcher/test/src/url_launcher_uri_test.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/test/src/url_launcher_uri_test.dart",
"repo_id": "packages",
"token_count": 3858
} | 1,148 |
name: url_launcher_example
description: Demonstrates how to use the url_launcher plugin.
publish_to: none
environment:
sdk: ^3.1.0
flutter: ">=3.13.0"
dependencies:
flutter:
sdk: flutter
url_launcher_android:
# When depending on this package from a real application you should use:
# url_launcher... | packages/packages/url_launcher/url_launcher_android/example/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 289
} | 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.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:url_launcher_platform_interface/u... | packages/packages/url_launcher/url_launcher_ios/example/lib/main.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_ios/example/lib/main.dart",
"repo_id": "packages",
"token_count": 3503
} | 1,150 |
// Mocks generated by Mockito 5.4.4 from annotations
// in url_launcher_ios/test/url_launcher_ios_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:url_launcher_ios/src... | packages/packages/url_launcher/url_launcher_ios/test/url_launcher_ios_test.mocks.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_ios/test/url_launcher_ios_test.mocks.dart",
"repo_id": "packages",
"token_count": 1126
} | 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.
import 'package:flutter/foundation.dart';
/// The desired mode to launch a URL.
///
/// Support for these modes varies by platform. Platforms that do not ... | packages/packages/url_launcher/url_launcher_platform_interface/lib/src/types.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_platform_interface/lib/src/types.dart",
"repo_id": "packages",
"token_count": 767
} | 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.
#ifndef PACKAGES_URL_LAUNCHER_URL_LAUNCHER_WINDOWS_WINDOWS_INCLUDE_URL_LAUNCHER_WINDOWS_URL_LAUNCHER_PLUGIN_H_
#define PACKAGES_URL_LAUNCHER_URL_LAUNCHER_WI... | packages/packages/url_launcher/url_launcher_windows/windows/include/url_launcher_windows/url_launcher_windows.h/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_windows/windows/include/url_launcher_windows/url_launcher_windows.h",
"repo_id": "packages",
"token_count": 348
} | 1,153 |
# video_player_example
Demonstrates how to use the video_player plugin.
| packages/packages/video_player/video_player/example/README.md/0 | {
"file_path": "packages/packages/video_player/video_player/example/README.md",
"repo_id": "packages",
"token_count": 21
} | 1,154 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| packages/packages/video_player/video_player/example/android/gradle.properties/0 | {
"file_path": "packages/packages/video_player/video_player/example/android/gradle.properties",
"repo_id": "packages",
"token_count": 30
} | 1,155 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:html/dom.dart';
import 'package:html/parser.dart' as html_parser;
import 'closed_caption_file.dart';
/// Represen... | packages/packages/video_player/video_player/lib/src/web_vtt.dart/0 | {
"file_path": "packages/packages/video_player/video_player/lib/src/web_vtt.dart",
"repo_id": "packages",
"token_count": 2253
} | 1,156 |
// 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.videoplayer;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.security.KeyManagemen... | packages/packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java/0 | {
"file_path": "packages/packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java",
"repo_id": "packages",
"token_count": 753
} | 1,157 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'mini_controller.dart';
void main() {
runApp(
MaterialAp... | packages/packages/video_player/video_player_android/example/lib/main.dart/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/lib/main.dart",
"repo_id": "packages",
"token_count": 2978
} | 1,158 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/video_player/video_player_avfoundation/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,159 |
// 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 (v13.0.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_c... | packages/packages/video_player/video_player_avfoundation/test/test_api.g.dart/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/test/test_api.g.dart",
"repo_id": "packages",
"token_count": 7880
} | 1,160 |
// 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:integration_test/integration_test.dart';
import 'package:video_player_web/src/duration_uti... | packages/packages/video_player/video_player_web/example/integration_test/duration_utils_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_web/example/integration_test/duration_utils_test.dart",
"repo_id": "packages",
"token_count": 644
} | 1,161 |
// 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.
// 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 LICEN... | packages/packages/web_benchmarks/test/src/analysis_test.dart/0 | {
"file_path": "packages/packages/web_benchmarks/test/src/analysis_test.dart",
"repo_id": "packages",
"token_count": 5054
} | 1,162 |
// 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: unnecessary_statements
import 'package:flutter_test/flutter_test.dart';
import 'package:webview_flutter/webview_flutter.dart' as main_... | packages/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart",
"repo_id": "packages",
"token_count": 574
} | 1,163 |
// 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.os.Build;
import android.webkit.WebChromeClient;
import androidx.annotation.NonNull;
import andr... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java",
"repo_id": "packages",
"token_count": 839
} | 1,164 |
// 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.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
imp... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewFlutterApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewFlutterApiImpl.java",
"repo_id": "packages",
"token_count": 613
} | 1,165 |
// 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.
/// Information about a navigation action that is about to be executed.
class NavigationRequest {
NavigationRequest._({required this.url, required this.i... | packages/packages/webview_flutter/webview_flutter_android/example/lib/legacy/navigation_request.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/example/lib/legacy/navigation_request.dart",
"repo_id": "packages",
"token_count": 171
} | 1,166 |
// 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:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services... | packages/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_surface_android.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_surface_android.dart",
"repo_id": "packages",
"token_count": 1765
} | 1,167 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_android/test/instance_manager_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:mockito/mockito.dart' as _i1;
import 'test_android_webview.g.dart' as _i2;
// ignore_f... | packages/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart",
"repo_id": "packages",
"token_count": 476
} | 1,168 |
// 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 '../types/types.dart';
import 'webview_platform_callbacks_handler.dart';
/// Interface for talking to the webview's platform implementation.
///
//... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/webview_platform_controller.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/webview_platform_controller.dart",
"repo_id": "packages",
"token_count": 2745
} | 1,169 |
// 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 'webview_credential.dart';
/// Defines the parameters of a pending HTTP authentication request received b... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_auth_request.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_auth_request.dart",
"repo_id": "packages",
"token_count": 604
} | 1,170 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export 'http_auth_request.dart';
export 'http_response_error.dart';
export 'javascript_console_message.dart';
export 'javascript_dialog_request.dart';
expo... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart",
"repo_id": "packages",
"token_count": 327
} | 1,171 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:plugin_platform_interface/plugin_platform_interface... | packages/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart",
"repo_id": "packages",
"token_count": 2017
} | 1,172 |
// 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/material.dart';
// ignore: implementation_imports
import 'package:webview_flutter_platform_interface/src/webv... | packages/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart",
"repo_id": "packages",
"token_count": 3995
} | 1,173 |
// 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 <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^FWFOnDeallocCallback)(long identifier);
/// Maintains instances used to communi... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFInstanceManager.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFInstanceManager.h",
"repo_id": "packages",
"token_count": 958
} | 1,174 |
// 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 "FWFUIDelegateHostApi.h"
#import "FWFDataConverters.h"
@interface FWFUIDelegateFlutterApiImpl ()
// BinaryMessenger must be weak to prevent a circ... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.m",
"repo_id": "packages",
"token_count": 8251
} | 1,175 |
// 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 "FWFWebViewFlutterWKWebViewExternalAPI.h"
#import "FWFInstanceManager.h"
@implementation FWFWebViewFlutterWKWebViewExternalAPI
+ (nullable WKWebVi... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewFlutterWKWebViewExternalAPI.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewFlutterWKWebViewExternalAPI.m",
"repo_id": "packages",
"token_count": 246
} | 1,176 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flut... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart",
"repo_id": "packages",
"token_count": 22948
} | 1,177 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_wkwebview/test/webkit_webview_widget_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:webvie... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart",
"repo_id": "packages",
"token_count": 3236
} | 1,178 |
# Hangs due to permission issue, see https://github.com/flutter/flutter/issues/130987
# TODO(stuartmorgan): Remove once the permission issue is addressed.
- camera/camera
- camera_android
- camera_android_camerax
# Frequent flaky failures, see https://github.com/flutter/flutter/issues/130986
# TODO(stuartmorgan): Remov... | packages/script/configs/exclude_integration_android_emulator.yaml/0 | {
"file_path": "packages/script/configs/exclude_integration_android_emulator.yaml",
"repo_id": "packages",
"token_count": 124
} | 1,179 |
// 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:yaml/yaml.dart';
import 'common/core.dart';
import 'common/output_utils.dart';
import 'common/package_loo... | packages/script/tool/lib/src/build_examples_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/build_examples_command.dart",
"repo_id": "packages",
"token_count": 4061
} | 1,180 |
// 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 'package:platform/platform.dart';
import 'pa... | packages/script/tool/lib/src/create_all_packages_app_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/create_all_packages_app_command.dart",
"repo_id": "packages",
"token_count": 5692
} | 1,181 |
// 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:ffi';
import 'package:file/file.dart';
import 'package:meta/meta.dart';
import 'common/cmake.dart';
import 'common/core.dart';
import 'commo... | packages/script/tool/lib/src/native_test_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/native_test_command.dart",
"repo_id": "packages",
"token_count": 10166
} | 1,182 |
// 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/bui... | packages/script/tool/test/build_examples_command_test.dart/0 | {
"file_path": "packages/script/tool/test/build_examples_command_test.dart",
"repo_id": "packages",
"token_count": 9097
} | 1,183 |
// 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/dart_test_command_test.dart/0 | {
"file_path": "packages/script/tool/test/dart_test_command_test.dart",
"repo_id": "packages",
"token_count": 7482
} | 1,184 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flut... | packages/script/tool/test/publish_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/publish_check_command_test.dart",
"repo_id": "packages",
"token_count": 8178
} | 1,185 |
# Cupertino Icons
This is an asset repo containing the default set of icon assets used by
Flutter's [Cupertino widgets](https://github.com/flutter/flutter/tree/master/packages/flutter/lib/src/cupertino).
# Usage
https://pub.dev/packages/cupertino_icons
[{w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
... | photobooth/functions/src/share/templates/ga.ts/0 | {
"file_path": "photobooth/functions/src/share/templates/ga.ts",
"repo_id": "photobooth",
"token_count": 372
} | 1,187 |
export 'footer.dart';
export 'footer_link.dart';
export 'icon_link.dart';
| photobooth/lib/footer/widgets/widgets.dart/0 | {
"file_path": "photobooth/lib/footer/widgets/widgets.dart",
"repo_id": "photobooth",
"token_count": 30
} | 1,188 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:io_photobooth/landing/landing.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class LandingPage extends StatelessWidget {
const LandingPage({super.key});
@override
Widget build(BuildContext conte... | photobooth/lib/landing/view/landing_page.dart/0 | {
"file_path": "photobooth/lib/landing/view/landing_page.dart",
"repo_id": "photobooth",
"token_count": 248
} | 1,189 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
const _characterIconButtonSizeLandscape = 90.0;
const _characterIconButtonSizePortait = 60.0;
class CharacterIconButton extends StatelessWidget {
const CharacterIconButton({
required this.icon,
required this.isSelecte... | photobooth/lib/photobooth/widgets/character_icon_button.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/character_icon_button.dart",
"repo_id": "photobooth",
"token_count": 672
} | 1,190 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class ShareErrorBottomSheet extends StatelessWidget {
const ShareErrorBottomSheet({super.key});
@override
Widget build(BuildC... | photobooth/lib/share/view/share_error_bottom_sheet.dart/0 | {
"file_path": "photobooth/lib/share/view/share_error_bottom_sheet.dart",
"repo_id": "photobooth",
"token_count": 1171
} | 1,191 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import 'package:platform_helper/platform_helper.dart';
class ShareStateListener extends StatelessWidget {
ShareStateListener({
... | photobooth/lib/share/widgets/share_state_listener.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_state_listener.dart",
"repo_id": "photobooth",
"token_count": 493
} | 1,192 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/stickers/stickers.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class MobileStickersDrawer extends StatelessWidget {
const MobileStickersDrawer({
required this.initialIndex,
requir... | photobooth/lib/stickers/widgets/stickers_drawer_layer/mobile_stickers_drawer.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/stickers_drawer_layer/mobile_stickers_drawer.dart",
"repo_id": "photobooth",
"token_count": 1349
} | 1,193 |
import 'package:firebase_auth/firebase_auth.dart' as firebase_auth;
/// Thrown when signing in anonymously process fails.
class SignInAnonymouslyException implements Exception {}
/// {@template authentication_repository}
/// Repository which manages user authentication using Firebase Authentication.
/// {@endtemplate... | photobooth/packages/authentication_repository/lib/src/authentication_repository.dart/0 | {
"file_path": "photobooth/packages/authentication_repository/lib/src/authentication_repository.dart",
"repo_id": "photobooth",
"token_count": 256
} | 1,194 |
part of '../camera.dart';
typedef PlaceholderBuilder = Widget Function(BuildContext);
typedef PreviewBuilder = Widget Function(BuildContext, Widget);
typedef ErrorBuilder = Widget Function(BuildContext, CameraException);
class Camera extends StatefulWidget {
Camera({
required this.controller,
PlaceholderBui... | photobooth/packages/camera/camera/lib/src/camera.dart/0 | {
"file_path": "photobooth/packages/camera/camera/lib/src/camera.dart",
"repo_id": "photobooth",
"token_count": 513
} | 1,195 |
// 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:html' as html;
import 'package:meta/meta.dart';
/// The HTML engine used by the current browser.
enum BrowserEngine {
/// The engine that ... | photobooth/packages/camera/camera_web/lib/src/browser_detection.dart/0 | {
"file_path": "photobooth/packages/camera/camera_web/lib/src/browser_detection.dart",
"repo_id": "photobooth",
"token_count": 2094
} | 1,196 |
# photobooth_ui
UI Toolkit for the Photobooth Flutter Application
| photobooth/packages/photobooth_ui/README.md/0 | {
"file_path": "photobooth/packages/photobooth_ui/README.md",
"repo_id": "photobooth",
"token_count": 20
} | 1,197 |
import 'package:flutter/widgets.dart';
/// {@template asset}
/// A Dart object which holds metadata for a given asset.
/// {@endtemplate}
class Asset {
/// {@macro asset}
const Asset({
required this.name,
required this.path,
required this.size,
});
/// The name of the image.
final String name;
... | photobooth/packages/photobooth_ui/lib/src/models/asset.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/models/asset.dart",
"repo_id": "photobooth",
"token_count": 137
} | 1,198 |
import 'package:flutter/material.dart';
/// {@template app_page_view}
/// A widget that constructs a page view consisting of a [background]
/// [body], [footer] pinned to the bottom of the page and an optional
/// list of overlay widgets displayed on top of the [body].
/// {@endtemplate}
class AppPageView extends Stat... | photobooth/packages/photobooth_ui/lib/src/widgets/app_page_view.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/app_page_view.dart",
"repo_id": "photobooth",
"token_count": 563
} | 1,199 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('Asset', () {
test('does not support value equality', () {
const name = 'image';
const path = 'p... | photobooth/packages/photobooth_ui/test/src/models/asset_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/models/asset_test.dart",
"repo_id": "photobooth",
"token_count": 220
} | 1,200 |
// ignore_for_file: prefer_const_constructors
import 'dart:convert';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import '../../helpers/helpers.dart';
void main() {
final data = 'data:image/png,${base64.encode(transparent... | photobooth/packages/photobooth_ui/test/src/widgets/preview_image_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/preview_image_test.dart",
"repo_id": "photobooth",
"token_count": 747
} | 1,201 |
import 'dart:html' as html;
import 'package:flutter/foundation.dart';
/// Web Implementation of [PlatformHelper]
class PlatformHelper {
/// Window can be overridden for testing purposes only.
@visibleForTesting
html.Window? window;
html.Window get _window => window ?? html.window;
/// Returns whether the ... | photobooth/packages/platform_helper/lib/src/web.dart/0 | {
"file_path": "photobooth/packages/platform_helper/lib/src/web.dart",
"repo_id": "photobooth",
"token_count": 191
} | 1,202 |
// ignore_for_file: prefer_const_constructors
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:io_photobooth/landing/landing.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
... | photobooth/test/landing/view/landing_page_test.dart/0 | {
"file_path": "photobooth/test/landing/view/landing_page_test.dart",
"repo_id": "photobooth",
"token_count": 1184
} | 1,203 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/share/share.dart';
import '../../helpers/helpers.dart';
void main() {
group('ShareErrorDialog', () {
testWidgets('displays heading', (tester) asyn... | photobooth/test/share/view/share_error_dialog_test.dart/0 | {
"file_path": "photobooth/test/share/view/share_error_dialog_test.dart",
"repo_id": "photobooth",
"token_count": 586
} | 1,204 |
#!/bin/bash
# This script can be used to run flutter test for a given directory (defaults to the current directory)
# It will exclude generated code and translations (mimicking the ci) and open the coverage report in a
# new window once it has run successfully.
#
# To run in main project:
# ./tool/coverage.sh
#
# To r... | photobooth/tool/coverage.sh/0 | {
"file_path": "photobooth/tool/coverage.sh",
"repo_id": "photobooth",
"token_count": 376
} | 1,205 |
import 'package:authentication_repository/authentication_repository.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:pinb... | pinball/lib/app/view/app.dart/0 | {
"file_path": "pinball/lib/app/view/app.dart",
"repo_id": "pinball",
"token_count": 918
} | 1,206 |
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_audio/pinball_audio.dart';
import 'package:pinball_flame/pinball_flame.dart';
class KickerNoiseBehavior extends ContactBehavior {
@override
void beginContact(Object other, Contact contact) {
super.beginContact(other, contact);
readP... | pinball/lib/game/behaviors/kicker_noise_behavior.dart/0 | {
"file_path": "pinball/lib/game/behaviors/kicker_noise_behavior.dart",
"repo_id": "pinball",
"token_count": 128
} | 1,207 |
part of 'backbox_bloc.dart';
/// {@template backbox_event}
/// Base class for backbox events.
/// {@endtemplate}
abstract class BackboxEvent extends Equatable {
/// {@macro backbox_event}
const BackboxEvent();
}
/// {@template player_initials_requested}
/// Event that triggers the user initials display.
/// {@end... | pinball/lib/game/components/backbox/bloc/backbox_event.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/bloc/backbox_event.dart",
"repo_id": "pinball",
"token_count": 524
} | 1,208 |
export 'draining_behavior.dart';
| pinball/lib/game/components/drain/behaviors/behaviors.dart/0 | {
"file_path": "pinball/lib/game/components/drain/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 11
} | 1,209 |
import 'dart:math' as math;
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/components/multipliers/behaviors/behaviors.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template multi... | pinball/lib/game/components/multipliers/multipliers.dart/0 | {
"file_path": "pinball/lib/game/components/multipliers/multipliers.dart",
"repo_id": "pinball",
"token_count": 705
} | 1,210 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball_components/pinball_components.dart';
/// {@template score_view}
/// [Widget] that displays the score.
/// {@endtemplate}
cla... | pinball/lib/game/view/widgets/score_view.dart/0 | {
"file_path": "pinball/lib/game/view/widgets/score_view.dart",
"repo_id": "pinball",
"token_count": 915
} | 1,211 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball/select_character/select_character.dart';
import 'package:pinball/start_game/start_game.dart';
import 'package:pinball_theme/pinball_theme.dart';
import 'package:pinba... | pinball/lib/select_character/view/character_selection_page.dart/0 | {
"file_path": "pinball/lib/select_character/view/character_selection_page.dart",
"repo_id": "pinball",
"token_count": 2091
} | 1,212 |
# geometry
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Provides a set of helpers for working with 2D geometry.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[v... | pinball/packages/geometry/README.md/0 | {
"file_path": "pinball/packages/geometry/README.md",
"repo_id": "pinball",
"token_count": 170
} | 1,213 |
// ignore_for_file: prefer_const_constructors, subtype_of_sealed_class
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class _MockFirebaseFirestore extends Mock impleme... | pinball/packages/leaderboard_repository/test/src/leaderboard_repository_test.dart/0 | {
"file_path": "pinball/packages/leaderboard_repository/test/src/leaderboard_repository_test.dart",
"repo_id": "pinball",
"token_count": 4141
} | 1,214 |
import 'dart:async';
import 'dart:math' as math;
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
export 'cubit/android_spac... | pinball/packages/pinball_components/lib/src/components/android_spaceship/android_spaceship.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_spaceship/android_spaceship.dart",
"repo_id": "pinball",
"token_count": 1724
} | 1,215 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
class BoardBackgroundSpriteComponent extends SpriteComponent
with HasGameRef, ZIndex {
BoardBackgroundSpriteComponent()
: super(
anchor: Anchor.c... | pinball/packages/pinball_components/lib/src/components/board_background_sprite_component.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/board_background_sprite_component.dart",
"repo_id": "pinball",
"token_count": 266
} | 1,216 |
export 'dash_bumper_ball_contact_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/dash_bumper/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/dash_bumper/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 17
} | 1,217 |
part of 'flipper_cubit.dart';
enum FlipperState {
movingDown,
movingUp,
}
extension FlipperStateX on FlipperState {
bool get isMovingDown => this == FlipperState.movingDown;
bool get isMovingUp => this == FlipperState.movingUp;
}
| pinball/packages/pinball_components/lib/src/components/flipper/cubit/flipper_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/flipper/cubit/flipper_state.dart",
"repo_id": "pinball",
"token_count": 82
} | 1,218 |
import 'package:bloc/bloc.dart';
part 'kicker_state.dart';
class KickerCubit extends Cubit<KickerState> {
KickerCubit() : super(KickerState.lit);
void onBallContacted() {
emit(KickerState.dimmed);
}
void onBlinked() {
emit(KickerState.lit);
}
}
| pinball/packages/pinball_components/lib/src/components/kicker/cubit/kicker_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/kicker/cubit/kicker_cubit.dart",
"repo_id": "pinball",
"token_count": 109
} | 1,219 |
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 PlungerJointingBehavior extends Component with ParentIsA<Plunger> {
PlungerJointingBehavior({required double... | pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_jointing_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_jointing_behavior.dart",
"repo_id": "pinball",
"token_count": 601
} | 1,220 |
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 SkillShotBallContactBehavior extends ContactBehavior<SkillShot> {
@override
void beginContact(Object other... | pinball/packages/pinball_components/lib/src/components/skill_shot/behaviors/skill_shot_ball_contact_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/skill_shot/behaviors/skill_shot_ball_contact_behavior.dart",
"repo_id": "pinball",
"token_count": 173
} | 1,221 |
import 'package:bloc/bloc.dart';
part 'sparky_bumper_state.dart';
class SparkyBumperCubit extends Cubit<SparkyBumperState> {
SparkyBumperCubit() : super(SparkyBumperState.lit);
void onBallContacted() {
emit(SparkyBumperState.dimmed);
}
void onBlinked() {
emit(SparkyBumperState.lit);
}
}
| pinball/packages/pinball_components/lib/src/components/sparky_bumper/cubit/sparky_bumper_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/sparky_bumper/cubit/sparky_bumper_cubit.dart",
"repo_id": "pinball",
"token_count": 129
} | 1,222 |
# Pinball Components Sandbox
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Generated by the [Very Good CLI][very_good_cli_link] 🤖
A sandbox application where components are showcased and developed in an is... | pinball/packages/pinball_components/sandbox/README.md/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/README.md",
"repo_id": "pinball",
"token_count": 1351
} | 1,223 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/arrow_icon/arrow_icon_game.dart';
void addArrowIconStories(Dashbook dashbook) {
dashbook.storiesOf('ArrowIcon').addGame(
title: 'Basic',
description: ArrowIconGame.description,
... | pinball/packages/pinball_components/sandbox/lib/stories/arrow_icon/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/arrow_icon/stories.dart",
"repo_id": "pinball",
"token_count": 140
} | 1,224 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/effects/camera_zoom_game.dart';
void addEffectsStories(Dashbook dashbook) {
dashbook.storiesOf('Effects').addGame(
title: 'CameraZoom',
description: CameraZoomGame.description,
... | pinball/packages/pinball_components/sandbox/lib/stories/effects/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/effects/stories.dart",
"repo_id": "pinball",
"token_count": 138
} | 1,225 |
import 'dart:math' as math;
import 'package:flame/input.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class MultipliersGame extends BallGame with KeyboardEve... | pinball/packages/pinball_components/sandbox/lib/stories/multipliers/multipliers_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/multipliers/multipliers_game.dart",
"repo_id": "pinball",
"token_count": 1192
} | 1,226 |
// ignore_for_file: cascade_invocations, one_member_abstracts
import 'package:flame/components.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 '../../helper... | pinball/packages/pinball_components/test/src/components/arrow_icon_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/arrow_icon_test.dart",
"repo_id": "pinball",
"token_count": 1298
} | 1,227 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball_components/pinball_compone... | pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_mouth_opening_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_mouth_opening_behavior_test.dart",
"repo_id": "pinball",
"token_count": 856
} | 1,228 |
// 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_components/pinball_components.dart';
import 'package:pinball_componen... | pinball/packages/pinball_components/test/src/components/flapper/behaviors/flapper_spinning_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/flapper/behaviors/flapper_spinning_behavior_test.dart",
"repo_id": "pinball",
"token_count": 622
} | 1,229 |
// 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';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
final f... | pinball/packages/pinball_components/test/src/components/joint_anchor_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/joint_anchor_test.dart",
"repo_id": "pinball",
"token_count": 532
} | 1,230 |
// 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/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import ... | pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_key_controlling_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_key_controlling_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2536
} | 1,231 |
// 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 'package:pinball_components/src/components/bumping_behavior.dart';... | pinball/packages/pinball_components/test/src/components/slingshot_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/slingshot_test.dart",
"repo_id": "pinball",
"token_count": 624
} | 1,232 |
# pinball_flame
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Set of out-of-the-way solutions for common Pinball game problems.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/... | pinball/packages/pinball_flame/README.md/0 | {
"file_path": "pinball/packages/pinball_flame/README.md",
"repo_id": "pinball",
"token_count": 176
} | 1,233 |
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:geometry/geometry.dart';
/// {@template arc_shape}
/// Creates an arc.
/// {@endtemplate}
class ArcShape extends ChainShape {
/// {@macro arc_shape}
ArcShape({
required this.center,
required this.arcRadius,
required this.angle,
this... | pinball/packages/pinball_flame/lib/src/shapes/arc_shape.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/shapes/arc_shape.dart",
"repo_id": "pinball",
"token_count": 303
} | 1,234 |
// ignore_for_file: cascade_invocations, one_member_abstracts
import 'package:flame/game.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import '... | pinball/packages/pinball_flame/test/src/keyboard_input_controller_test.dart/0 | {
"file_path": "pinball/packages/pinball_flame/test/src/keyboard_input_controller_test.dart",
"repo_id": "pinball",
"token_count": 1182
} | 1,235 |
# pinball_ui
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
UI Toolkit for the Pinball Flutter Application
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_goo... | pinball/packages/pinball_ui/README.md/0 | {
"file_path": "pinball/packages/pinball_ui/README.md",
"repo_id": "pinball",
"token_count": 170
} | 1,236 |
import 'package:flutter/material.dart';
import 'package:pinball_ui/pinball_ui.dart';
/// {@template pinball_dialog}
/// Pinball-themed dialog.
/// {@endtemplate}
class PinballDialog extends StatelessWidget {
/// {@macro pinball_dialog}
const PinballDialog({
Key? key,
required this.title,
required this.... | pinball/packages/pinball_ui/lib/src/dialog/pinball_dialog.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/dialog/pinball_dialog.dart",
"repo_id": "pinball",
"token_count": 873
} | 1,237 |
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball_ui/pinball_ui.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
class _MockUrlLauncher extends Mock
with MockPlatformInterfaceMixin
implements UrlLauncherPlatform {}... | pinball/packages/pinball_ui/test/src/external_links/external_links_test.dart/0 | {
"file_path": "pinball/packages/pinball_ui/test/src/external_links/external_links_test.dart",
"repo_id": "pinball",
"token_count": 1065
} | 1,238 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.