text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/shared_preferences/shared_preferences_android/example/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_android/example/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 1,112 |
// 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
// ignore_for_file: public_member_api_docs, non_c... | packages/packages/shared_preferences/shared_preferences_foundation/lib/messages.g.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_foundation/lib/messages.g.dart",
"repo_id": "packages",
"token_count": 2479
} | 1,113 |
// 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_linux/shared_p... | packages/packages/shared_preferences/shared_preferences_linux/example/integration_test/shared_preferences_test.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_linux/example/integration_test/shared_preferences_test.dart",
"repo_id": "packages",
"token_count": 5724
} | 1,114 |
// 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 exists solely to host compiled excerpts for README.md, and is not
// intended for use as an actual example application.
// ignore_for_file: a... | packages/packages/standard_message_codec/example/lib/readme_excerpts.dart/0 | {
"file_path": "packages/packages/standard_message_codec/example/lib/readme_excerpts.dart",
"repo_id": "packages",
"token_count": 204
} | 1,115 |
## 6.2.5
* Removes use of deprecated `renderView` API.
## 6.2.4
* Updates support matrix in README to indicate that iOS 11 is no longer supported.
* Clients on versions of Flutter that still support iOS 11 can continue to use this
package with iOS 11, but will not receive any further updates to the iOS implementat... | packages/packages/url_launcher/url_launcher/CHANGELOG.md/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/CHANGELOG.md",
"repo_id": "packages",
"token_count": 4794
} | 1,116 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| packages/packages/url_launcher/url_launcher/example/android/gradle.properties/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/example/android/gradle.properties",
"repo_id": "packages",
"token_count": 30
} | 1,117 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/url_launcher/url_launcher/example/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/example/macos/Runner/Configs/Release.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,118 |
// 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:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services... | packages/packages/url_launcher/url_launcher/lib/src/legacy_api.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/lib/src/legacy_api.dart",
"repo_id": "packages",
"token_count": 2128
} | 1,119 |
// 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' show visibleForTesting;
import 'package:flutter/services.dart';
import 'package:url_launcher_platform_interface/li... | packages/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart",
"repo_id": "packages",
"token_count": 2065
} | 1,120 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import FlutterMacOS
import Foundation
/// A handler that can launch other apps, check if any app is able to open the URL.
public protocol SystemURLHandler... | packages/packages/url_launcher/url_launcher_macos/macos/Classes/UrlLauncherPlugin.swift/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_macos/macos/Classes/UrlLauncherPlugin.swift",
"repo_id": "packages",
"token_count": 616
} | 1,121 |
name: url_launcher_platform_interface
description: A common platform interface for the url_launcher plugin.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_... | packages/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml",
"repo_id": "packages",
"token_count": 285
} | 1,122 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "system_apis.h"
#include <windows.h>
namespace url_launcher_windows {
SystemApis::SystemApis() {}
SystemApis::~SystemApis() {}
SystemApisImpl:... | packages/packages/url_launcher/url_launcher_windows/windows/system_apis.cpp/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_windows/windows/system_apis.cpp",
"repo_id": "packages",
"token_count": 608
} | 1,123 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player/src/closed_caption_file.dart';
void main() {
group('ClosedCaptionFile', ()... | packages/packages/video_player/video_player/test/closed_caption_file_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player/test/closed_caption_file_test.dart",
"repo_id": "packages",
"token_count": 311
} | 1,124 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.videoplayer;
import static com.google.android.exoplayer2.Player.REPEAT_MODE_ALL;
import static com.google.android.exoplayer2.Pl... | packages/packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java/0 | {
"file_path": "packages/packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java",
"repo_id": "packages",
"token_count": 4622
} | 1,125 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <AVFoundation/AVFoundation.h>
CGAffineTransform FVPGetStandardizedTransformForTrack(AVAssetTrack *track) {
CGAffineTransform t = track.preferred... | packages/packages/video_player/video_player_avfoundation/darwin/Classes/AVAssetTrackUtils.m/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/darwin/Classes/AVAssetTrackUtils.m",
"repo_id": "packages",
"token_count": 669
} | 1,126 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'dart:typed_data';
import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter_test/flut... | packages/packages/video_player/video_player_avfoundation/example/integration_test/video_player_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/example/integration_test/video_player_test.dart",
"repo_id": "packages",
"token_count": 2620
} | 1,127 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:video_playe... | packages/packages/video_player/video_player_web/example/integration_test/video_player_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_web/example/integration_test/video_player_test.dart",
"repo_id": "packages",
"token_count": 7187
} | 1,128 |
# web_benchmarks
A benchmark harness for Flutter Web apps. Currently only supports running
benchmarks in Chrome.
# Writing a benchmark
An example benchmark can be found in [testing/web_benchmark_test.dart][1].
A web benchmark is made of two parts: a client and a server. The client is code
that runs in the browser t... | packages/packages/web_benchmarks/README.md/0 | {
"file_path": "packages/packages/web_benchmarks/README.md",
"repo_id": "packages",
"token_count": 615
} | 1,129 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert' show jsonDecode;
// JSON Event samples taken from running an instrumented version of the
// integration tests of this package that d... | packages/packages/web_benchmarks/test/src/browser_test_json_samples.dart/0 | {
"file_path": "packages/packages/web_benchmarks/test/src/browser_test_json_samples.dart",
"repo_id": "packages",
"token_count": 1099
} | 1,130 |
<!DOCTYPE html>
<!-- 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. -->
<html>
<head>
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flu... | packages/packages/web_benchmarks/testing/test_app/web/index.html/0 | {
"file_path": "packages/packages/web_benchmarks/testing/test_app/web/index.html",
"repo_id": "packages",
"token_count": 439
} | 1,131 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.webviewflutterexample">
<application
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"
android:label="webview_flutter_example">
<meta-data
android:name="flutterEmbedding"
... | packages/packages/webview_flutter/webview_flutter/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "packages",
"token_count": 623
} | 1,132 |
h1 {
color: blue;
} | packages/packages/webview_flutter/webview_flutter/example/assets/www/styles/style.css/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/example/assets/www/styles/style.css",
"repo_id": "packages",
"token_count": 13
} | 1,133 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart';
/// Manages cookies pertaining to all WebViews.
///
/// ## Pl... | packages/packages/webview_flutter/webview_flutter/lib/src/webview_cookie_manager.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/lib/src/webview_cookie_manager.dart",
"repo_id": "packages",
"token_count": 982
} | 1,134 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import android.content.Context;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.a... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterViewFactory.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterViewFactory.java",
"repo_id": "packages",
"token_count": 484
} | 1,135 |
// 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.WebSettings;
import android.webkit.WebView;
import androidx.annotation.NonNull;
import an... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebSettingsHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebSettingsHostApiImpl.java",
"repo_id": "packages",
"token_count": 1620
} | 1,136 |
name: webview_flutter_android_example
description: Demonstrates how to use the webview_flutter_android plugin.
publish_to: none
environment:
sdk: ^3.1.0
flutter: ">=3.13.0"
dependencies:
flutter:
sdk: flutter
path_provider: ^2.0.6
webview_flutter_android:
# When depending on this package from a real... | packages/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 350
} | 1,137 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_android/test/legacy/webview_android_cookie_manager_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 '... | packages/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart",
"repo_id": "packages",
"token_count": 1215
} | 1,138 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'javascript_message.dart';
/// Callback type for handling messages sent from JavaScript running in a web view.
typedef JavascriptMessageHandler = v... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/javascript_channel.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/javascript_channel.dart",
"repo_id": "packages",
"token_count": 384
} | 1,139 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
/// Defines the parameters that support `PlatformWebViewController.setOnJavaScriptAlertDialog`.
@immutable
class... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_dialog_request.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_dialog_request.dart",
"repo_id": "packages",
"token_count": 433
} | 1,140 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
/// Defines the parameters of the web resource request from the associated request.
///
/// Platform specific im... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_request.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_request.dart",
"repo_id": "packages",
"token_count": 364
} | 1,141 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html';
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:moc... | packages/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.dart",
"repo_id": "packages",
"token_count": 2666
} | 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.
// This test is run using `flutter drive` by the CI (see /script/tool/README.md
// in this repository for details on driving that tooling manually), but ca... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart",
"repo_id": "packages",
"token_count": 19575
} | 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 Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
@import webview_flutter_wkwebview.Test;
#import <OCMock/OCMock.h>
@interface FWFUIDel... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIDelegateHostApiTests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIDelegateHostApiTests.m",
"repo_id": "packages",
"token_count": 2807
} | 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 <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFNavigationDelegateHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFNavigationDelegateHostApi.h",
"repo_id": "packages",
"token_count": 540
} | 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 <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
/... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLAuthenticationChallengeHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLAuthenticationChallengeHostApi.h",
"repo_id": "packages",
"token_count": 383
} | 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 <Flutter/Flutter.h>
#import <WebKit/WebKit.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
/// Host... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebsiteDataStoreHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebsiteDataStoreHostApi.h",
"repo_id": "packages",
"token_count": 203
} | 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.
// 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/webview_flutter/webview_flutter_wkwebview/test/src/common/test_web_kit.g.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/src/common/test_web_kit.g.dart",
"repo_id": "packages",
"token_count": 46704
} | 1,148 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
/// Returns a [File] created by appending all but the last item in [components]
/// to [base] as subdirectories, then app... | packages/script/tool/lib/src/common/file_utils.dart/0 | {
"file_path": "packages/script/tool/lib/src/common/file_utils.dart",
"repo_id": "packages",
"token_count": 337
} | 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.
import 'package:file/file.dart';
import 'package:yaml/yaml.dart';
import 'common/output_utils.dart';
import 'common/package_looping_command.dart';
import ... | packages/script/tool/lib/src/dependabot_check_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/dependabot_check_command.dart",
"repo_id": "packages",
"token_count": 1517
} | 1,150 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io' as io;
import 'package:file/file.dart';
import 'package:git/git.dart';
import 'package:http/h... | packages/script/tool/lib/src/publish_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/publish_command.dart",
"repo_id": "packages",
"token_count": 6393
} | 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:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_plugin_tools/src/common/gradle.dart';
import 'package:test/test... | packages/script/tool/test/common/gradle_test.dart/0 | {
"file_path": "packages/script/tool/test/common/gradle_test.dart",
"repo_id": "packages",
"token_count": 2487
} | 1,152 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package: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/federation_safety_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/federation_safety_check_command_test.dart",
"repo_id": "packages",
"token_count": 7383
} | 1,153 |
// 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/readme_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/readme_check_command_test.dart",
"repo_id": "packages",
"token_count": 8065
} | 1,154 |
<?code-excerpt path-base="../test"?>
This package is used via [`CupertinoIcons`](https://api.flutter.dev/flutter/cupertino/CupertinoIcons-class.html):
<?code-excerpt "cupertino_icons_test.dart (CupertinoIcon)"?>
```dart
const Icon icon = Icon(
CupertinoIcons.heart_fill,
color: Colors.pink,
size: 24.0,
);
```
F... | packages/third_party/packages/cupertino_icons/example/example.md/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/example/example.md",
"repo_id": "packages",
"token_count": 210
} | 1,155 |
# I/O Photo Booth
[![Photo Booth Header][logo]][photo_booth_link]
[![io_photobooth][build_status_badge]][workflow_link]
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
A Photo Booth built with [Flutter][flutt... | photobooth/README.md/0 | {
"file_path": "photobooth/README.md",
"repo_id": "photobooth",
"token_count": 1477
} | 1,156 |
export default `
html, body {
margin: 0;
padding: 0;
height: 100vh;
}
body {
font-family: "Google Sans", sans-serif;
font-size: 12px;
background-color: #ddd;
display: flex;
flex-direction: column;
position: relative;
}
*, ::before, ::after {
box-sizing: border-box;
}
.backdrop {
position: fixed... | photobooth/functions/src/share/templates/styles.ts/0 | {
"file_path": "photobooth/functions/src/share/templates/styles.ts",
"repo_id": "photobooth",
"token_count": 1540
} | 1,157 |
{
"@@locale": "fr",
"landingPageHeading": "Bienvenue sur I\u2215O Photo Booth",
"landingPageSubheading": "Prenez une photo et partagez-la avec la communaut!",
"landingPageTakePhotoButtonText": "Démarrer",
"footerMadeWithText": "Fait avec ",
"footerMadeWithFlutterLinkText": "Flutter",
"footer... | photobooth/lib/l10n/arb/app_fr.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_fr.arb",
"repo_id": "photobooth",
"token_count": 2365
} | 1,158 |
import 'package:analytics/analytics.dart';
import 'package:flutter/material.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
class LandingTakePhotoButton extends StatelessWidget {
const LandingTakePhotoButton({super.key});
@override
Widget build(Bu... | photobooth/lib/landing/widgets/landing_take_photo_button.dart/0 | {
"file_path": "photobooth/lib/landing/widgets/landing_take_photo_button.dart",
"repo_id": "photobooth",
"token_count": 285
} | 1,159 |
import 'package:flutter/material.dart';
class PhotoboothBackground extends StatelessWidget {
const PhotoboothBackground({super.key});
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return Stack(
fit: StackFit.expand,
children: [
Image.asset(
... | photobooth/lib/photobooth/widgets/photobooth_background.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/photobooth_background.dart",
"repo_id": "photobooth",
"token_count": 564
} | 1,160 |
export 'share_bottom_sheet.dart';
export 'share_dialog.dart';
export 'share_error_bottom_sheet.dart';
export 'share_error_dialog.dart';
export 'share_page.dart';
| photobooth/lib/share/view/view.dart/0 | {
"file_path": "photobooth/lib/share/view/view.dart",
"repo_id": "photobooth",
"token_count": 60
} | 1,161 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class TwitterButton extends StatelessWidget {
const TwitterButton({super.key});
... | photobooth/lib/share/widgets/twitter_button.dart/0 | {
"file_path": "photobooth/lib/share/widgets/twitter_button.dart",
"repo_id": "photobooth",
"token_count": 345
} | 1,162 |
export 'clear_stickers/clear_stickers.dart';
export 'stickers_drawer_layer/desktop_stickers_drawer.dart';
export 'stickers_drawer_layer/mobile_stickers_drawer.dart';
export 'stickers_drawer_layer/stickers_drawer_layer.dart';
export 'stickers_tabs.dart';
| photobooth/lib/stickers/widgets/widgets.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/widgets.dart",
"repo_id": "photobooth",
"token_count": 94
} | 1,163 |
include: package:very_good_analysis/analysis_options.yaml
linter:
rules:
public_member_api_docs: false
| photobooth/packages/camera/camera/analysis_options.yaml/0 | {
"file_path": "photobooth/packages/camera/camera/analysis_options.yaml",
"repo_id": "photobooth",
"token_count": 38
} | 1,164 |
import 'package:camera/camera.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
class MockCameraController extends Mock implements CameraController {}
class ... | photobooth/packages/camera/camera/test/src/camera_test.dart/0 | {
"file_path": "photobooth/packages/camera/camera/test/src/camera_test.dart",
"repo_id": "photobooth",
"token_count": 1230
} | 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.
@TestOn('chrome')
library;
import 'package:camera_web/camera_web.dart';
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
voi... | photobooth/packages/camera/camera_web/test/src/browser_detection_test.dart/0 | {
"file_path": "photobooth/packages/camera/camera_web/test/src/browser_detection_test.dart",
"repo_id": "photobooth",
"token_count": 701
} | 1,166 |
export 'app_page_route.dart';
| photobooth/packages/photobooth_ui/lib/src/navigation/navigation.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/navigation/navigation.dart",
"repo_id": "photobooth",
"token_count": 12
} | 1,167 |
import 'package:flutter/material.dart';
/// {@template clickable}
/// Makes the given [child] tappable and clickable.
/// {@endtemplate}
class Clickable extends StatelessWidget {
/// {@macro clickable}
const Clickable({
required this.child,
required this.onPressed,
super.key,
});
/// Child to be r... | photobooth/packages/photobooth_ui/lib/src/widgets/clickable.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/clickable.dart",
"repo_id": "photobooth",
"token_count": 236
} | 1,168 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('PhotoboothTheme themeData', () {
test('is defined for both small, medium, and standard', () {
expect... | photobooth/packages/photobooth_ui/test/src/theme_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/theme_test.dart",
"repo_id": "photobooth",
"token_count": 179
} | 1,169 |
# photos_repository
Repository that persists photos in a Firebase Storage
| photobooth/packages/photos_repository/README.md/0 | {
"file_path": "photobooth/packages/photos_repository/README.md",
"repo_id": "photobooth",
"token_count": 19
} | 1,170 |
@TestOn('chrome')
library;
import 'dart:html' as html;
import 'package:mocktail/mocktail.dart';
import 'package:platform_helper/src/web.dart';
import 'package:test/test.dart';
class MockWindow extends Mock implements html.Window {}
class MockNavigator extends Mock implements html.Navigator {}
void main() {
group(... | photobooth/packages/platform_helper/test/src/web_platform_helper_test.dart/0 | {
"file_path": "photobooth/packages/platform_helper/test/src/web_platform_helper_test.dart",
"repo_id": "photobooth",
"token_count": 322
} | 1,171 |
// ignore_for_file: prefer_const_constructors
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import 'package:test/test.dart';
class MockAsset extends Mock implements Asset {}
void main() {
group('PhotoboothState'... | photobooth/test/photobooth/bloc/photobooth_state_test.dart/0 | {
"file_path": "photobooth/test/photobooth/bloc/photobooth_state_test.dart",
"repo_id": "photobooth",
"token_count": 304
} | 1,172 |
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:mocktail/mocktail.dart';
import '../../helpers/helpers.dart';
class MockXFile extends Mock implements XFile {}
void ma... | photobooth/test/share/widgets/download_button_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/download_button_test.dart",
"repo_id": "photobooth",
"token_count": 346
} | 1,173 |
part of 'assets_manager_cubit.dart';
/// {@template assets_manager_state}
/// State used to load the game assets.
/// {@endtemplate}
class AssetsManagerState extends Equatable {
/// {@macro assets_manager_state}
const AssetsManagerState({
required this.assetsCount,
required this.loaded,
});
/// {@macr... | pinball/lib/assets_manager/cubit/assets_manager_state.dart/0 | {
"file_path": "pinball/lib/assets_manager/cubit/assets_manager_state.dart",
"repo_id": "pinball",
"token_count": 335
} | 1,174 |
import 'dart:math' as math;
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';
part 'game_event.dart';
part 'game_state.dart';
class GameBloc extends Bloc<GameEvent, GameState> {
GameBloc() : super(const GameState.initial()) {
on<RoundLost>(_onRoundLost)... | pinball/lib/game/bloc/game_bloc.dart/0 | {
"file_path": "pinball/lib/game/bloc/game_bloc.dart",
"repo_id": "pinball",
"token_count": 789
} | 1,175 |
import 'dart:async';
import 'package:flame/components.dart';
import 'package:flame/input.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_fl... | pinball/lib/game/components/backbox/displays/game_over_info_display.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/displays/game_over_info_display.dart",
"repo_id": "pinball",
"token_count": 3219
} | 1,176 |
export 'flutter_forest_bonus_behavior.dart';
| pinball/lib/game/components/flutter_forest/behaviors/behaviors.dart/0 | {
"file_path": "pinball/lib/game/components/flutter_forest/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 16
} | 1,177 |
// ignore_for_file: avoid_renaming_method_parameters
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball/game/components/sparky_scorch/behaviors/behaviors.dart';
import 'package:pinball_components/pinball_compon... | pinball/lib/game/components/sparky_scorch/sparky_scorch.dart/0 | {
"file_path": "pinball/lib/game/components/sparky_scorch/sparky_scorch.dart",
"repo_id": "pinball",
"token_count": 963
} | 1,178 |
export 'assets.gen.dart';
| pinball/lib/gen/gen.dart/0 | {
"file_path": "pinball/lib/gen/gen.dart",
"repo_id": "pinball",
"token_count": 10
} | 1,179 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
part 'start_game_event.dart';
part 'start_game_state.dart';
/// {@template start_game_bloc}
/// Bloc that manages the app flow before the game starts.
/// {@endtemplate}
class StartGameBloc extends Bloc<StartGameEvent, StartGameState> {
///... | pinball/lib/start_game/bloc/start_game_bloc.dart/0 | {
"file_path": "pinball/lib/start_game/bloc/start_game_bloc.dart",
"repo_id": "pinball",
"token_count": 554
} | 1,180 |
import 'dart:math' as math;
import 'package:vector_math/vector_math_64.dart';
/// Calculates all [Vector2]s of a circumference.
///
/// A circumference can be achieved by specifying a [center] and a [radius].
/// In addition, a semi-circle can be achieved by specifying its [angle] and an
/// [offsetAngle] (both in ra... | pinball/packages/geometry/lib/src/geometry.dart/0 | {
"file_path": "pinball/packages/geometry/lib/src/geometry.dart",
"repo_id": "pinball",
"token_count": 1509
} | 1,181 |
# pinball_audio
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Package with the sound manager for the pinball game
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[... | pinball/packages/pinball_audio/README.md/0 | {
"file_path": "pinball/packages/pinball_audio/README.md",
"repo_id": "pinball",
"token_count": 170
} | 1,182 |
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
class FontFamily {
FontFamily._();
/// Font family: PixeloidMono
static const... | pinball/packages/pinball_components/lib/gen/fonts.gen.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/gen/fonts.gen.dart",
"repo_id": "pinball",
"token_count": 114
} | 1,183 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flutter/material.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:pinball_theme/pinball_theme.dart' as theme;
export 'cubit/arcade_b... | pinball/packages/pinball_components/lib/src/components/arcade_background/arcade_background.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/arcade_background/arcade_background.dart",
"repo_id": "pinball",
"token_count": 1061
} | 1,184 |
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template boundaries}
/// Pinball machine walls.
/// {@endtemplate}
class Boundaries extends Component {
/// ... | pinball/packages/pinball_components/lib/src/components/boundaries.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/boundaries.dart",
"repo_id": "pinball",
"token_count": 2300
} | 1,185 |
part of 'dash_bumpers_cubit.dart';
class DashBumpersState extends Equatable {
const DashBumpersState({required this.bumperSpriteStates});
DashBumpersState.initial()
: this(
bumperSpriteStates: {
for (var id in DashBumperId.values)
id: DashBumperSpriteState.inactive
... | pinball/packages/pinball_components/lib/src/components/dash_bumper/cubit/dash_bumpers_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/dash_bumper/cubit/dash_bumpers_state.dart",
"repo_id": "pinball",
"token_count": 241
} | 1,186 |
export 'google_rollover_ball_contact_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/google_rollover/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/google_rollover/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 17
} | 1,187 |
// ignore_for_file: avoid_renaming_method_parameters
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template launch_ramp}
/// Ramp where the ball is launche... | pinball/packages/pinball_components/lib/src/components/launch_ramp.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/launch_ramp.dart",
"repo_id": "pinball",
"token_count": 2151
} | 1,188 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
class PlungerPullingBehavior extends Component
with FlameBlocReader<PlungerCubit, PlungerState> {
PlungerPullingBeha... | pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_pulling_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/plunger/behaviors/plunger_pulling_behavior.dart",
"repo_id": "pinball",
"token_count": 497
} | 1,189 |
part of 'skill_shot_cubit.dart';
enum SkillShotSpriteState {
lit,
dimmed,
}
class SkillShotState extends Equatable {
const SkillShotState({
required this.spriteState,
required this.isBlinking,
});
const SkillShotState.initial()
: this(
spriteState: SkillShotSpriteState.dimmed,
... | pinball/packages/pinball_components/lib/src/components/skill_shot/cubit/skill_shot_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/skill_shot/cubit/skill_shot_state.dart",
"repo_id": "pinball",
"token_count": 281
} | 1,190 |
export 'sparky_computer_sensor_ball_contact_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/sparky_computer/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/sparky_computer/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 21
} | 1,191 |
import 'package:dashbook/dashbook.dart';
import 'package:flame/game.dart';
import 'package:sandbox/common/common.dart';
const _path =
'https://github.com/flutter/pinball/tree/main/packages/pinball_components/sandbox/lib/stories/';
extension StoryAddGame on Story {
void addGame({
required String title,
r... | pinball/packages/pinball_components/sandbox/lib/common/add_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/common/add_game.dart",
"repo_id": "pinball",
"token_count": 357
} | 1,192 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/ball_booster_game.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
void addBallStories(Dashbook dashbook) {
dashbook.storiesOf('Ball')
..addGame(
title: 'Themed',
... | pinball/packages/pinball_components/sandbox/lib/stories/ball/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/ball/stories.dart",
"repo_id": "pinball",
"token_count": 299
} | 1,193 |
import 'dart:async';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class DashBumperAGame extends BallGame {
DashBumperAGame()
: super(
... | pinball/packages/pinball_components/sandbox/lib/stories/flutter_forest/dash_bumper_a_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/flutter_forest/dash_bumper_a_game.dart",
"repo_id": "pinball",
"token_count": 412
} | 1,194 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/plunger/plunger_game.dart';
void addPlungerStories(Dashbook dashbook) {
dashbook.storiesOf('Plunger').addGame(
title: 'Traced',
description: PlungerGame.description,
gameBuild... | pinball/packages/pinball_components/sandbox/lib/stories/plunger/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/plunger/stories.dart",
"repo_id": "pinball",
"token_count": 142
} | 1,195 |
export 'test_game.dart';
| pinball/packages/pinball_components/test/helpers/helpers.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/helpers/helpers.dart",
"repo_id": "pinball",
"token_count": 10
} | 1,196 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_theme/pinball_theme.dart' as theme;
import '../../../../hel... | pinball/packages/pinball_components/test/src/components/ball/behaviors/ball_implusing_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/ball/behaviors/ball_implusing_behavior_test.dart",
"repo_id": "pinball",
"token_count": 679
} | 1,197 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
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';
... | pinball/packages/pinball_components/test/src/components/chrome_dino/chrome_dino_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/chrome_dino/chrome_dino_test.dart",
"repo_id": "pinball",
"token_count": 1891
} | 1,198 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'packa... | pinball/packages/pinball_components/test/src/components/flipper/behaviors/flipper_key_controlling_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/flipper/behaviors/flipper_key_controlling_behavior_test.dart",
"repo_id": "pinball",
"token_count": 7077
} | 1,199 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group(
'KickerCubit',
() {
blocTest<KickerCubit, KickerState>(
'onBallContacted emits dimmed',
build: KickerCubit.new,
... | pinball/packages/pinball_components/test/src/components/kicker/cubit/kicker_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/kicker/cubit/kicker_cubit_test.dart",
"repo_id": "pinball",
"token_count": 292
} | 1,200 |
// ignore_for_file: cascade_invocations
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/forge2d_game.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/... | pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart",
"repo_id": "pinball",
"token_count": 937
} | 1,201 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group('SpaceshipRampCubit', () {
group('onAscendingBallEntered', () {
blocTest<SpaceshipRampC... | pinball/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart",
"repo_id": "pinball",
"token_count": 1353
} | 1,202 |
export 'contact_behavior.dart';
export 'layer_contact_behavior.dart';
export 'z_index_contact_behavior.dart';
| pinball/packages/pinball_flame/lib/src/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 36
} | 1,203 |
export 'arc_shape.dart';
export 'bezier_curve_shape.dart';
export 'ellipse_shape.dart';
| pinball/packages/pinball_flame/lib/src/shapes/shapes.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/shapes/shapes.dart",
"repo_id": "pinball",
"token_count": 37
} | 1,204 |
export 'assets.gen.dart';
| pinball/packages/pinball_theme/lib/src/generated/generated.dart/0 | {
"file_path": "pinball/packages/pinball_theme/lib/src/generated/generated.dart",
"repo_id": "pinball",
"token_count": 10
} | 1,205 |
import 'package:flutter/material.dart';
/// Colors used in the application
abstract class PinballColors {
/// Color: 0xFFFFFFFF
static const Color white = Color(0xFFFFFFFF);
/// Color: 0xFF000000
static const Color black = Color(0xFF000000);
/// Color: 0xFF0C32A4
static const Color darkBlue = Color(0xFF0... | pinball/packages/pinball_ui/lib/src/theme/pinball_colors.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/theme/pinball_colors.dart",
"repo_id": "pinball",
"token_count": 401
} | 1,206 |
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_ui/pinball_ui.dart';
void main() {
group('PinballTheme', () {
group('standard', () {
test('headline1 matches PinballTextStyle#headline1', () {
expect(
PinballTheme.standard.textTheme.headline1!.fontSize,
Pi... | pinball/packages/pinball_ui/test/src/theme/pinball_theme_test.dart/0 | {
"file_path": "pinball/packages/pinball_ui/test/src/theme/pinball_theme_test.dart",
"repo_id": "pinball",
"token_count": 1184
} | 1,207 |
library share_repository;
export 'src/models/models.dart';
export 'src/share_repository.dart';
| pinball/packages/share_repository/lib/share_repository.dart/0 | {
"file_path": "pinball/packages/share_repository/lib/share_repository.dart",
"repo_id": "pinball",
"token_count": 35
} | 1,208 |
// 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/game/behaviors/behaviors.dart';
import 'package:pinball_audio/pinball... | pinball/test/game/behaviors/bumper_noise_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/bumper_noise_behavior_test.dart",
"repo_id": "pinball",
"token_count": 605
} | 1,209 |
// ignore_for_file: cascade_invocations, prefer_const_constructors
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import... | pinball/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1361
} | 1,210 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/components/drain/be... | pinball/test/game/components/drain/behaviors/draining_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/drain/behaviors/draining_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1754
} | 1,211 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.