text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
allprojects {
repositories {
// See https://github.com/flutter/flutter/wiki/Plugins-and-Packages-repository-structure#gradle-structure for more... | packages/packages/video_player/video_player/example/android/build.gradle/0 | {
"file_path": "packages/packages/video_player/video_player/example/android/build.gradle",
"repo_id": "packages",
"token_count": 360
} | 1,300 |
// 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
/// An example of using the plugin, controlling lifecycle and playback of the
/// video.
library;
import 'pack... | packages/packages/video_player/video_player/example/lib/main.dart/0 | {
"file_path": "packages/packages/video_player/video_player/example/lib/main.dart",
"repo_id": "packages",
"token_count": 6181
} | 1,301 |
// 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 'closed_caption_file.dart';
/// Represents a [ClosedCaptionFile], parsed from the SubRip file format.
/// See: https://en.w... | packages/packages/video_player/video_player/lib/src/sub_rip.dart/0 | {
"file_path": "packages/packages/video_player/video_player/lib/src/sub_rip.dart",
"repo_id": "packages",
"token_count": 1406
} | 1,302 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.videoplayer">
</manifest>
| packages/packages/video_player/video_player_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "packages/packages/video_player/video_player_android/android/src/main/AndroidManifest.xml",
"repo_id": "packages",
"token_count": 47
} | 1,303 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.videoplayerexample">
<application
android:icon="@mipmap/ic_launcher"
android:label="video_player_example"
android:networkSecurityConfig="@xml/network_security_config">
<activity
android:configChan... | packages/packages/video_player/video_player_android/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "packages",
"token_count": 339
} | 1,304 |
// 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_android/example/integration_test/video_player_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/integration_test/video_player_test.dart",
"repo_id": "packages",
"token_count": 2061
} | 1,305 |
{
"images" : [
{
"filename" : "Icon-App-20x20@2x.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"filename" : "Icon-App-20x20@3x.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"filename" : "Icon-App-29x29@1x.png... | packages/packages/video_player/video_player_avfoundation/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
"repo_id": "packages",
"token_count": 1513
} | 1,306 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player_avfoundation/src/messages.g.dart';
im... | packages/packages/video_player/video_player_avfoundation/test/avfoundation_video_player_test.dart/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/test/avfoundation_video_player_test.dart",
"repo_id": "packages",
"token_count": 5539
} | 1,307 |
name: test_app
description: An example app for web benchmarks testing.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.1.0
dependencies:
flutter:
sdk: flutter
flutter_test:
sdk: flutter
web_benchmarks:
path: ../../
flutter:
uses-material-design: true
| packages/packages/web_benchmarks/testing/test_app/pubspec.yaml/0 | {
"file_path": "packages/packages/web_benchmarks/testing/test_app/pubspec.yaml",
"repo_id": "packages",
"token_count": 118
} | 1,308 |
include ':app'
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}
plugins.each { name, path ... | packages/packages/webview_flutter/webview_flutter/example/android/settings.gradle/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/example/android/settings.gradle",
"repo_id": "packages",
"token_count": 309
} | 1,309 |
// 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.
/// Re-export the classes from the webview_flutter_platform_interface through
/// the `platform_interface.dart` file so we don't accidentally break any
///... | packages/packages/webview_flutter/webview_flutter/lib/src/legacy/platform_interface.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/lib/src/legacy/platform_interface.dart",
"repo_id": "packages",
"token_count": 358
} | 1,310 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter/test/webview_cookie_manager_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'package:mockito/mockito.dart' as _i1;
import 'package:webview_flutter... | packages/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart",
"repo_id": "packages",
"token_count": 980
} | 1,311 |
// 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.DownloadListener;
import androidx.annotation.NonNull;
import io.flutter.plugins.webviewfl... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DownloadListenerHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DownloadListenerHostApiImpl.java",
"repo_id": "packages",
"token_count": 953
} | 1,312 |
// 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.PermissionRequest;
import androidx.annotation.NonNull;
import an... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/PermissionRequestHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/PermissionRequestHostApiImpl.java",
"repo_id": "packages",
"token_count": 579
} | 1,313 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java",
"repo_id": "packages",
"token_count": 916
} | 1,314 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.juni... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebViewTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebViewTest.java",
"repo_id": "packages",
"token_count": 4626
} | 1,315 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// A decision on how to handle a navigation request.
enum NavigationDecision {
/// Prevent the navigation from taking place.
prevent,
/// Allow the... | packages/packages/webview_flutter/webview_flutter_android/example/lib/legacy/navigation_decision.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/example/lib/legacy/navigation_decision.dart",
"repo_id": "packages",
"token_count": 90
} | 1,316 |
// 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:typed_data';
import 'package:flutter/widgets.dart';
// ignore: implementation_imports
import 'package:webview_flutter_pl... | packages/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_widget.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_widget.dart",
"repo_id": "packages",
"token_count": 7832
} | 1,317 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:webview_... | packages/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.dart",
"repo_id": "packages",
"token_count": 1785
} | 1,318 |
// 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 '../types/types.dart';
/// Interface for callbacks made by [WebViewPlatformController].
///
/// The webview plugin implements... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/webview_platform_callbacks_handler.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/webview_platform_callbacks_handler.dart",
"repo_id": "packages",
"token_count": 343
} | 1,319 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'types/types.dart';
import 'webvi... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_widget.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_widget.dart",
"repo_id": "packages",
"token_count": 506
} | 1,320 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Defines the parameters of the scroll position change callback.
class ScrollPositionChange {
/// Creates a [ScrollPositionChange].
const ScrollPosit... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/scroll_position_change.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/scroll_position_change.dart",
"repo_id": "packages",
"token_count": 153
} | 1,321 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:typed_data';
import 'package:flutter_test/flutter_test.dart';
import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_... | packages/packages/webview_flutter/webview_flutter_platform_interface/test/legacy/types/webview_request_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/test/legacy/types/webview_request_test.dart",
"repo_id": "packages",
"token_count": 524
} | 1,322 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:html' as html;
import 'dart:io';
// FIX (dit): Remove these integration tests, or make them run. They currently never fa... | packages/packages/webview_flutter/webview_flutter_web/example/integration_test/webview_flutter_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/example/integration_test/webview_flutter_test.dart",
"repo_id": "packages",
"token_count": 1141
} | 1,323 |
// 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:html';
import 'dart:ui_web' as ui_web;
import 'package:flutter/foundation.dart';
import 'package:... | packages/packages/webview_flutter/webview_flutter_web/lib/src/webview_flutter_web_legacy.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/lib/src/webview_flutter_web_legacy.dart",
"repo_id": "packages",
"token_count": 2008
} | 1,324 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFPreferencesHostApiTests : XCTestCase
@end
@i... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFPreferencesHostApiTests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFPreferencesHostApiTests.m",
"repo_id": "packages",
"token_count": 496
} | 1,325 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import XCTest;
@import os.log;
static UIColor *getPixelColorInImage(CGImageRef image, size_t x, size_t y) {
CFDataRef pixelData = CGDataProviderCopyDat... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerUITests/FLTWebViewUITests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerUITests/FLTWebViewUITests.m",
"repo_id": "packages",
"token_count": 1338
} | 1,326 |
// 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 "FWFHTTPCookieStoreHostApi.h"
#import "FWFDataConverters.h"
#import "FWFWebsiteDataStoreHostApi.h"
@interface FWFHTTPCookieStoreHostApiImpl ()
// ... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFHTTPCookieStoreHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFHTTPCookieStoreHostApi.m",
"repo_id": "packages",
"token_count": 825
} | 1,327 |
// 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"
#import "FWFObjectHostApi.h"
#impo... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.h",
"repo_id": "packages",
"token_count": 563
} | 1,328 |
// 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>
NS_ASSUME_NONNULL_BEGIN
/// App and package facing native API pro... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewFlutterWKWebViewExternalAPI.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewFlutterWKWebViewExternalAPI.h",
"repo_id": "packages",
"token_count": 463
} | 1,329 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'pac... | packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/webview_cupertino.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/webview_cupertino.dart",
"repo_id": "packages",
"token_count": 776
} | 1,330 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_wkwebview/test/legacy/web_kit_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 'packag... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart",
"repo_id": "packages",
"token_count": 2529
} | 1,331 |
// 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:mockito/annotations.dart';
import 'package:mockito... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.dart",
"repo_id": "packages",
"token_count": 2976
} | 1,332 |
# Can't use Flutter integration tests due to native modal UI.
- file_selector
| packages/script/configs/exclude_integration_android.yaml/0 | {
"file_path": "packages/script/configs/exclude_integration_android.yaml",
"repo_id": "packages",
"token_count": 22
} | 1,333 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' as io;
import 'package:file/file.dart';
import 'package:yaml/yaml.dart';
import 'common/output_utils.dart';
import 'common/package_loopi... | packages/script/tool/lib/src/analyze_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/analyze_command.dart",
"repo_id": "packages",
"token_count": 2611
} | 1,334 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io' as io;
import 'package:file/file.dart';
import 'output_utils.dart';
import 'process_runner.dart';
const String _... | packages/script/tool/lib/src/common/xcode.dart/0 | {
"file_path": "packages/script/tool/lib/src/common/xcode.dart",
"repo_id": "packages",
"token_count": 1985
} | 1,335 |
// 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:path/path.dart' as p;
import 'package:pub_semver/pub_semver.dart';
import 'package:pubspec_parse/pubspec_p... | packages/script/tool/lib/src/make_deps_path_based_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/make_deps_path_based_command.dart",
"repo_id": "packages",
"token_count": 4972
} | 1,336 |
// 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/ana... | packages/script/tool/test/analyze_command_test.dart/0 | {
"file_path": "packages/script/tool/test/analyze_command_test.dart",
"repo_id": "packages",
"token_count": 6281
} | 1,337 |
// 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/custom_test_command_test.dart/0 | {
"file_path": "packages/script/tool/test/custom_test_command_test.dart",
"repo_id": "packages",
"token_count": 4324
} | 1,338 |
// 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/podspec_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/podspec_check_command_test.dart",
"repo_id": "packages",
"token_count": 7710
} | 1,339 |
The MIT License (MIT)
Copyright (c) 2016 Vladimir Kharlampidi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, me... | packages/third_party/packages/cupertino_icons/LICENSE/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/LICENSE",
"repo_id": "packages",
"token_count": 273
} | 1,340 |
export default `
<footer>
<div class="left">
<span>Made with
<a href="https://flutter.dev">Flutter</a> &
<a href="https://firebase.google.com">Firebase</a>
</ul>
</div>
<div class="right">
<ul>
<li><a href="https://events.google.com/io/">Google I/O</a></li>
<li><a href="htt... | photobooth/functions/src/share/templates/footer.ts/0 | {
"file_path": "photobooth/functions/src/share/templates/footer.ts",
"repo_id": "photobooth",
"token_count": 305
} | 1,341 |
import 'package:flutter/material.dart';
import 'package:io_photobooth/external_links/external_links.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class IconLink extends StatelessWidget {
const IconLink({
required this.icon,
required this.link,
super.key,
});
final Widget icon;
final St... | photobooth/lib/footer/widgets/icon_link.dart/0 | {
"file_path": "photobooth/lib/footer/widgets/icon_link.dart",
"repo_id": "photobooth",
"token_count": 527
} | 1,342 |
// ignore: avoid_web_libraries_in_flutter
import 'dart:html' as html;
/// Removes the handed-coded piece of HTML used as the app loading
/// indicator/splash screen.
void removeLoadingIndicator() {
html.document.querySelector('#loading-indicator')?.remove();
}
| photobooth/lib/landing/loading_indicator_web.dart/0 | {
"file_path": "photobooth/lib/landing/loading_indicator_web.dart",
"repo_id": "photobooth",
"token_count": 81
} | 1,343 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class AnimatedSparky extends AnimatedSprite {
const AnimatedSparky({super.key})
: super(
loadingIndicatorColor: PhotoboothColors.red,
sprites: const Sprites(
asset: 'sparky_spritesheet.png... | photobooth/lib/photobooth/widgets/animated_characters/animated_sparky.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/animated_characters/animated_sparky.dart",
"repo_id": "photobooth",
"token_count": 208
} | 1,344 |
import 'dart:typed_data';
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 ShareDialog extends StatelessWidget {
const ShareDialog({required this.image, super.key});
fin... | photobooth/lib/share/view/share_dialog.dart/0 | {
"file_path": "photobooth/lib/share/view/share_dialog.dart",
"repo_id": "photobooth",
"token_count": 1596
} | 1,345 |
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:io_photobooth/external_links/external_links.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class SocialMediaShareClarificationNote extends StatelessWidget {
const ... | photobooth/lib/share/widgets/share_social_media_clarification.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_social_media_clarification.dart",
"repo_id": "photobooth",
"token_count": 556
} | 1,346 |
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 DesktopStickersDrawer extends StatelessWidget {
const DesktopStickersDrawer({
required this.initialIndex,
requ... | photobooth/lib/stickers/widgets/stickers_drawer_layer/desktop_stickers_drawer.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/stickers_drawer_layer/desktop_stickers_drawer.dart",
"repo_id": "photobooth",
"token_count": 1038
} | 1,347 |
/// A library which manages user authentication using Firebase Authentication.
library authentication_repository;
export 'src/authentication_repository.dart';
| photobooth/packages/authentication_repository/lib/authentication_repository.dart/0 | {
"file_path": "photobooth/packages/authentication_repository/lib/authentication_repository.dart",
"repo_id": "photobooth",
"token_count": 37
} | 1,348 |
library camera;
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/widgets.dart';
export 'package:camera_platform_interface/camera_platform_interface.dart';
part 'src/camera.dart';
part 'src/controller.dart';
| photobooth/packages/camera/camera/lib/camera.dart/0 | {
"file_path": "photobooth/packages/camera/camera/lib/camera.dart",
"repo_id": "photobooth",
"token_count": 81
} | 1,349 |
/// A library for the web platform implementation of camera.
library camera_web;
export 'src/browser_detection.dart';
export 'src/camera_web.dart' show CameraPlugin;
| photobooth/packages/camera/camera_web/lib/camera_web.dart/0 | {
"file_path": "photobooth/packages/camera/camera_web/lib/camera_web.dart",
"repo_id": "photobooth",
"token_count": 48
} | 1,350 |
@TestOn('chrome')
library;
import 'package:image_compositor/src/web.dart';
import 'package:test/test.dart';
void main() {
group('ImageCompositor', () {
test('can be instantiated', () {
expect(ImageCompositor(), isNotNull);
});
});
}
| photobooth/packages/image_compositor/test/web_image_compositor_test.dart/0 | {
"file_path": "photobooth/packages/image_compositor/test/web_image_compositor_test.dart",
"repo_id": "photobooth",
"token_count": 98
} | 1,351 |
export 'aspect_ratio.dart';
export 'breakpoints.dart';
| photobooth/packages/photobooth_ui/lib/src/layout/layout.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/layout/layout.dart",
"repo_id": "photobooth",
"token_count": 21
} | 1,352 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
/// Displays a dialog above the current contents of the app.
Future<T?> showAppDialog<T>({
required BuildContext context,
required Widget child,
bool barrierDismissible = true,
}) =>
showDialog<T>(
context: conte... | photobooth/packages/photobooth_ui/lib/src/widgets/app_dialog.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/app_dialog.dart",
"repo_id": "photobooth",
"token_count": 453
} | 1,353 |
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
extension PhotoboothWidgetTester on WidgetTester {
void setDisplaySize(Size size) {
binding.window.physicalSizeTestValue = size;
binding.window.devicePixelRatioTestValue ... | photobooth/packages/photobooth_ui/test/src/helpers/set_display_size.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/helpers/set_display_size.dart",
"repo_id": "photobooth",
"token_count": 236
} | 1,354 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import 'package:platform_helper/platform_helper.dart';
class MockPlatformHelper extends Mock implements PlatformHelper {}
void main() {
... | photobooth/packages/photobooth_ui/test/src/widgets/platform_builder_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/platform_builder_test.dart",
"repo_id": "photobooth",
"token_count": 720
} | 1,355 |
/// Unsupported Implementation of [PlatformHelper]
class PlatformHelper {
/// Throws [UnsupportedError].
bool get isMobile {
throw UnsupportedError('isMobile is not supported on the current platform');
}
}
| photobooth/packages/platform_helper/lib/src/unsupported.dart/0 | {
"file_path": "photobooth/packages/platform_helper/lib/src/unsupported.dart",
"repo_id": "photobooth",
"token_count": 56
} | 1,356 |
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
const landscapeDisplaySize = Size(1920, 1080);
const portraitDisplaySize = Size(1080, 1920);
extension PhotoboothWidgetTester on WidgetTester {
void setDisplaySize(Size size) {
... | photobooth/test/helpers/set_display_size.dart/0 | {
"file_path": "photobooth/test/helpers/set_display_size.dart",
"repo_id": "photobooth",
"token_count": 296
} | 1,357 |
// 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('ShareErrorBottomSheet', () {
testWidgets('displays heading', (tester)... | photobooth/test/share/view/share_error_bottom_sheet_test.dart/0 | {
"file_path": "photobooth/test/share/view/share_error_bottom_sheet_test.dart",
"repo_id": "photobooth",
"token_count": 629
} | 1,358 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/assets.g.dart';
import 'package:io_photobooth/stickers/stickers.dart';
import '../../helpers/helpers.dart';
void main() {
const googleTabAssetPath = 'a... | photobooth/test/stickers/widgets/stickers_tabs_test.dart/0 | {
"file_path": "photobooth/test/stickers/widgets/stickers_tabs_test.dart",
"repo_id": "photobooth",
"token_count": 7740
} | 1,359 |
export 'view/app.dart';
| pinball/lib/app/app.dart/0 | {
"file_path": "pinball/lib/app/app.dart",
"repo_id": "pinball",
"token_count": 10
} | 1,360 |
// ignore_for_file: public_member_api_docs
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_audio/pinball_audio.dart';
import 'package:pinball_flame/pinball_flame.dart';
class CowBumperNoiseBehavior extends ContactBehavior {
@override
void beginContact(Object other, Contact contact) {
... | pinball/lib/game/behaviors/cow_bumper_noise_behavior.dart/0 | {
"file_path": "pinball/lib/game/behaviors/cow_bumper_noise_behavior.dart",
"repo_id": "pinball",
"token_count": 146
} | 1,361 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:pinball/leaderboard/models/leader_board_entry.dart';
import 'package:pinball_theme/pinball_theme.dart';
part 'backbox_event.dart';
part 'backbox_state.dart';
... | pinball/lib/game/components/backbox/bloc/backbox_bloc.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/bloc/backbox_bloc.dart",
"repo_id": "pinball",
"token_count": 1043
} | 1,362 |
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball/game/components/dino_desert/behaviors/behaviors.dart';
import 'package:pinball/game/game.dart';
import 'packa... | pinball/lib/game/components/dino_desert/dino_desert.dart/0 | {
"file_path": "pinball/lib/game/components/dino_desert/dino_desert.dart",
"repo_id": "pinball",
"token_count": 650
} | 1,363 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Toggle each [Multiplier] when GameState.multiplier changes.
class Multipliers... | pinball/lib/game/components/multipliers/behaviors/multipliers_behavior.dart/0 | {
"file_path": "pinball/lib/game/components/multipliers/behaviors/multipliers_behavior.dart",
"repo_id": "pinball",
"token_count": 260
} | 1,364 |
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_ui/pinball_ui.dart';
/// {@template round_count_display}
/// Colored square indicating if a round is available.
/// {@endtem... | pinball/lib/game/view/widgets/round_count_display.dart/0 | {
"file_path": "pinball/lib/game/view/widgets/round_count_display.dart",
"repo_id": "pinball",
"token_count": 701
} | 1,365 |
export 'cubit/character_theme_cubit.dart';
export 'view/view.dart';
| pinball/lib/select_character/select_character.dart/0 | {
"file_path": "pinball/lib/select_character/select_character.dart",
"repo_id": "pinball",
"token_count": 28
} | 1,366 |
name: leaderboard_repository
description: Repository to access leaderboard data in Firebase Cloud Firestore.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.16.0 <3.0.0"
dependencies:
cloud_firestore: ^3.1.10
equatable: ^2.0.3
flutter:
sdk: flutter
json_annotation: ^4.4.0
dev_dependencies:
b... | pinball/packages/leaderboard_repository/pubspec.yaml/0 | {
"file_path": "pinball/packages/leaderboard_repository/pubspec.yaml",
"repo_id": "pinball",
"token_count": 205
} | 1,367 |
part of 'android_bumper_cubit.dart';
enum AndroidBumperState {
lit,
dimmed,
}
| pinball/packages/pinball_components/lib/src/components/android_bumper/cubit/android_bumper_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_bumper/cubit/android_bumper_state.dart",
"repo_id": "pinball",
"token_count": 35
} | 1,368 |
import 'dart:math' as math;
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template baseboard}
/// Wing-shaped board piece to corral the [Ball] towards the ... | pinball/packages/pinball_components/lib/src/components/baseboard.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/baseboard.dart",
"repo_id": "pinball",
"token_count": 1419
} | 1,369 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
/// {@template dash_animatronic}
/// Animated Dash that sits on top of the [DashBumper.main].
/// {@endtemplate}
class DashAnimatronic extends SpriteAnimationComponent with HasGameRef {
/// {@macro dash_animatronic}
... | pinball/packages/pinball_components/lib/src/components/dash_animatronic.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/dash_animatronic.dart",
"repo_id": "pinball",
"token_count": 451
} | 1,370 |
import 'package:bloc/bloc.dart';
part 'flipper_state.dart';
class FlipperCubit extends Cubit<FlipperState> {
FlipperCubit() : super(FlipperState.movingDown);
void moveUp() => emit(FlipperState.movingUp);
void moveDown() => emit(FlipperState.movingDown);
}
| pinball/packages/pinball_components/lib/src/components/flipper/cubit/flipper_cubit.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/flipper/cubit/flipper_cubit.dart",
"repo_id": "pinball",
"token_count": 97
} | 1,371 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template kicker_blinking_behavior}
/// Makes a [Kicker] blink back to [KickerState.lit] when [KickerState.dimmed].
/// {@endtemplate}
class KickerBlinkingBehavio... | pinball/packages/pinball_components/lib/src/components/kicker/behaviors/kicker_blinking_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/kicker/behaviors/kicker_blinking_behavior.dart",
"repo_id": "pinball",
"token_count": 369
} | 1,372 |
export 'plunger_jointing_behavior.dart';
export 'plunger_key_controlling_behavior.dart';
export 'plunger_noise_behavior.dart';
export 'plunger_pulling_behavior.dart';
export 'plunger_releasing_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/plunger/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/plunger/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 78
} | 1,373 |
export 'skill_shot_ball_contact_behavior.dart';
export 'skill_shot_blinking_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/skill_shot/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/skill_shot/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 31
} | 1,374 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template sparky_bumper_blinking_behavior}
/// Makes a [SparkyBumper] blink back to [SparkyBumperState.lit] when
/// [SparkyBumperState.dimmed].
/// {@endtemplate... | pinball/packages/pinball_components/lib/src/components/sparky_bumper/behaviors/sparky_bumper_blinking_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/sparky_bumper/behaviors/sparky_bumper_blinking_behavior.dart",
"repo_id": "pinball",
"token_count": 406
} | 1,375 |
import 'package:flame/game.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/games.dart';
class ArrowIconGame extends AssetsGame with HasTappables {
ArrowIconGame()
: super(
imagesFileNames: [
Assets.images.displayArrows.arrowLeft.keyName,
... | pinball/packages/pinball_components/sandbox/lib/stories/arrow_icon/arrow_icon_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/arrow_icon/arrow_icon_game.dart",
"repo_id": "pinball",
"token_count": 377
} | 1,376 |
import 'package:flame/components.dart';
import 'package:flame/input.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart';
class CameraZoomGame extends AssetsGame with TapDetector {
static const description = '''
Shows how CameraZoom can be used.
... | pinball/packages/pinball_components/sandbox/lib/stories/effects/camera_zoom_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/effects/camera_zoom_game.dart",
"repo_id": "pinball",
"token_count": 350
} | 1,377 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/multiball/multiball_game.dart';
void addMultiballStories(Dashbook dashbook) {
dashbook.storiesOf('Multiball').addGame(
title: 'Assets',
description: MultiballGame.description,
... | pinball/packages/pinball_components/sandbox/lib/stories/multiball/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/multiball/stories.dart",
"repo_id": "pinball",
"token_count": 142
} | 1,378 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('ArcadeBackgroundState', () {
test('supports value equality', () {
expect(
... | pinball/packages/pinball_components/test/src/components/arcade_background/cubit/arcade_background_state_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/arcade_background/cubit/arcade_background_state_test.dart",
"repo_id": "pinball",
"token_count": 330
} | 1,379 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.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 'pa... | pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_chomping_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/chrome_dino/behaviors/chrome_dino_chomping_behavior_test.dart",
"repo_id": "pinball",
"token_count": 972
} | 1,380 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
import '../../helpers/helpers.dart';
extension _IterableX on Iterable<Component> {... | pinball/packages/pinball_components/test/src/components/error_component_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/error_component_test.dart",
"repo_id": "pinball",
"token_count": 646
} | 1,381 |
// 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';
class TestBodyComponent extends BodyComponent with InitialPosition {
@... | pinball/packages/pinball_components/test/src/components/initial_position_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/initial_position_test.dart",
"repo_id": "pinball",
"token_count": 878
} | 1,382 |
// 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/plunger/behaviors/plunger_jointing_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/plunger/behaviors/plunger_jointing_behavior_test.dart",
"repo_id": "pinball",
"token_count": 446
} | 1,383 |
// 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/skill_shot/skill_shot_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/skill_shot/skill_shot_test.dart",
"repo_id": "pinball",
"token_count": 1174
} | 1,384 |
import 'dart:math';
import 'package:flame/game.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_forge2d/world_contact_listener.dart';
// NOTE: This should be removed when https://github.com/flame-engine/flame/pull/1597 is solved.
/// {@template pinball_forge2d_game}
/// A [Game] that us... | pinball/packages/pinball_flame/lib/src/pinball_forge2d_game.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/pinball_forge2d_game.dart",
"repo_id": "pinball",
"token_count": 499
} | 1,385 |
export 'pinball_dialog.dart';
export 'pixelated_decoration.dart';
| pinball/packages/pinball_ui/lib/src/dialog/dialog.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/dialog/dialog.dart",
"repo_id": "pinball",
"token_count": 24
} | 1,386 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_ui/pinball_ui.dart';
void main() {
group('PixelatedDecoration', () {
testWidgets('renders header and body', (tester) async {
const headerText = 'he... | pinball/packages/pinball_ui/test/src/dialog/pixelated_decoration_test.dart/0 | {
"file_path": "pinball/packages/pinball_ui/test/src/dialog/pixelated_decoration_test.dart",
"repo_id": "pinball",
"token_count": 283
} | 1,387 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:platform_helper/platform_helper.dart';
void main() {
group('PlatformHelper', () {
test('can be instantiated', () {
expect(PlatformHelper(), isNotNull);
... | pinball/packages/platform_helper/test/src/platform_helper_test.dart/0 | {
"file_path": "pinball/packages/platform_helper/test/src/platform_helper_test.dart",
"repo_id": "pinball",
"token_count": 449
} | 1,388 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/behaviors/behaviors.dart... | pinball/test/game/behaviors/animatronic_looping_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/animatronic_looping_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1231
} | 1,389 |
// 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_bonus_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/android_acres/behaviors/ramp_bonus_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1734
} | 1,390 |
// ignore_for_file: cascade_invocations
import 'package:flame/game.dart';
import 'package:flame/input.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mock... | pinball/test/game/components/backbox/displays/share_display_test.dart/0 | {
"file_path": "pinball/test/game/components/backbox/displays/share_display_test.dart",
"repo_id": "pinball",
"token_count": 1167
} | 1,391 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_compo... | pinball/test/game/components/multipliers/multipliers_test.dart/0 | {
"file_path": "pinball/test/game/components/multipliers/multipliers_test.dart",
"repo_id": "pinball",
"token_count": 765
} | 1,392 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/how_to_play/how_to_play.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:platform_helper/platform_helper.dart';
import '../helpers/helpers.dart';
cla... | pinball/test/how_to_play/how_to_play_dialog_test.dart/0 | {
"file_path": "pinball/test/how_to_play/how_to_play_dialog_test.dart",
"repo_id": "pinball",
"token_count": 1625
} | 1,393 |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: create simulator
script: .ci/scripts/create_simulator.sh
- name: build examples
script: script/tool_runner.sh
args: ["build-examples", "--ios"]
- name: xcode analyze
script: script/tool_runner.sh
args: ["xcode-analyz... | plugins/.ci/targets/ios_platform_tests.yaml/0 | {
"file_path": "plugins/.ci/targets/ios_platform_tests.yaml",
"repo_id": "plugins",
"token_count": 375
} | 1,394 |
# FlutterFire - MOVED
The FlutterFire family of plugins has moved to the Firebase organization on GitHub. This makes it easier for us to collaborate with the Firebase team. We want to build the best integration we can!
Visit FlutterFire at its new home:
https://github.com/firebase/flutterfire
| plugins/FlutterFire.md/0 | {
"file_path": "plugins/FlutterFire.md",
"repo_id": "plugins",
"token_count": 75
} | 1,395 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:camera_example/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWi... | plugins/packages/camera/camera/example/test/main_test.dart/0 | {
"file_path": "plugins/packages/camera/camera/example/test/main_test.dart",
"repo_id": "plugins",
"token_count": 182
} | 1,396 |
// 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.
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#106316)
// ignore: unnecessary_import
import 'dart:ui... | plugins/packages/camera/camera/test/camera_value_test.dart/0 | {
"file_path": "plugins/packages/camera/camera/test/camera_value_test.dart",
"repo_id": "plugins",
"token_count": 2422
} | 1,397 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera;
import android.app.Activity;
import android.content.Context;
import android.hardware.camera2.CameraAccessException;
imp... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraUtils.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraUtils.java",
"repo_id": "plugins",
"token_count": 1652
} | 1,398 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.features.flash;
// Mirrors flash_mode.dart
public enum FlashMode {
off("off"),
auto("auto"),
always("always"),
t... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/flash/FlashMode.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/flash/FlashMode.java",
"repo_id": "plugins",
"token_count": 341
} | 1,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.