text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:google_identity_services_web/id.dart';
import 'jsify_as.dart';
/// A CredentialResponse with null `credential`.
final CredentialResponse ... | packages/packages/google_sign_in/google_sign_in_web/example/integration_test/src/jwt_examples.dart/0 | {
"file_path": "packages/packages/google_sign_in/google_sign_in_web/example/integration_test/src/jwt_examples.dart",
"repo_id": "packages",
"token_count": 1339
} | 979 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:google_identity_services_web/id.dart';
import 'package:google_identity_services_web/oauth2.dart';
import 'package:g... | packages/packages/google_sign_in/google_sign_in_web/lib/src/utils.dart/0 | {
"file_path": "packages/packages/google_sign_in/google_sign_in_web/lib/src/utils.dart",
"repo_id": "packages",
"token_count": 1289
} | 980 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/image_picker/image_picker/example/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "packages/packages/image_picker/image_picker/example/macos/Runner/Configs/Release.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 981 |
// 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:image_picker/image_picker.dart';
import 'package:i... | packages/packages/image_picker/image_picker/test/image_picker_test.dart/0 | {
"file_path": "packages/packages/image_picker/image_picker/test/image_picker_test.dart",
"repo_id": "packages",
"token_count": 18656
} | 982 |
// 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.imagepicker;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import androidx.annotation.... | packages/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java/0 | {
"file_path": "packages/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java",
"repo_id": "packages",
"token_count": 4275
} | 983 |
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/image_picker/image_picker_android/example/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/image_picker/image_picker_android/example/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 984 |
name: image_picker_android
description: Android implementation of the image_picker plugin.
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 0.8.9+4... | packages/packages/image_picker/image_picker_android/pubspec.yaml/0 | {
"file_path": "packages/packages/image_picker/image_picker_android/pubspec.yaml",
"repo_id": "packages",
"token_count": 352
} | 985 |
// 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:math';
import 'dart:ui';
import 'package:flutter/material.dart';
///a function that checks if an image needs to be resized or not
bool image... | packages/packages/image_picker/image_picker_for_web/lib/src/image_resizer_utils.dart/0 | {
"file_path": "packages/packages/image_picker/image_picker_for_web/lib/src/image_resizer_utils.dart",
"repo_id": "packages",
"token_count": 371
} | 986 |
// 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 "ImagePickerTestImages.h"
@import image_picker_ios;
@import image_picker_ios.Test;
@import XCTest;
// Corner colors of test image scaled to 3x2. ... | packages/packages/image_picker/image_picker_ios/example/ios/RunnerTests/ImageUtilTests.m/0 | {
"file_path": "packages/packages/image_picker/image_picker_ios/example/ios/RunnerTests/ImageUtilTests.m",
"repo_id": "packages",
"token_count": 4662
} | 987 |
// 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 "FLTImagePickerPlugin.h"
#import "FLTImagePickerPlugin_Test.h"
#import <AVFoundation/AVFoundation.h>
#import <MobileCoreServices/MobileCoreService... | packages/packages/image_picker/image_picker_ios/ios/Classes/FLTImagePickerPlugin.m/0 | {
"file_path": "packages/packages/image_picker/image_picker_ios/ios/Classes/FLTImagePickerPlugin.m",
"repo_id": "packages",
"token_count": 12715
} | 988 |
// 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/image_picker/image_picker_ios/test/test_api.g.dart/0 | {
"file_path": "packages/packages/image_picker/image_picker_ios/test/test_api.g.dart",
"repo_id": "packages",
"token_count": 3905
} | 989 |
name: image_picker_linux
description: Linux platform implementation of image_picker
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_linux
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 0.2.1+1
environ... | packages/packages/image_picker/image_picker_linux/pubspec.yaml/0 | {
"file_path": "packages/packages/image_picker/image_picker_linux/pubspec.yaml",
"repo_id": "packages",
"token_count": 329
} | 990 |
// 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:cross_file/cross_file.dart';
import 'package:flutter/foundation.dart' show immutable;
import 'camera_device.dart';
/// Options for [Image... | packages/packages/image_picker/image_picker_platform_interface/lib/src/types/camera_delegate.dart/0 | {
"file_path": "packages/packages/image_picker/image_picker_platform_interface/lib/src/types/camera_delegate.dart",
"repo_id": "packages",
"token_count": 500
} | 991 |
name: image_picker_platform_interface
description: A common platform interface for the image_picker plugin.
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+imag... | packages/packages/image_picker/image_picker_platform_interface/pubspec.yaml/0 | {
"file_path": "packages/packages/image_picker/image_picker_platform_interface/pubspec.yaml",
"repo_id": "packages",
"token_count": 302
} | 992 |
// 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:in_app_purchase_android/billing_client_wrappers.da... | packages/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart",
"repo_id": "packages",
"token_count": 1597
} | 993 |
// 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:json_annotation/json_annotation.dart';
import '../../billing_client_wrappers.dart';
// WARNING: C... | packages/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_response_wrapper.dart/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_response_wrapper.dart",
"repo_id": "packages",
"token_count": 677
} | 994 |
// 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/services.dart';
import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
... | packages/packages/in_app_purchase/in_app_purchase_android/lib/src/in_app_purchase_android_platform_addition.dart/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_android/lib/src/in_app_purchase_android_platform_addition.dart",
"repo_id": "packages",
"token_count": 2985
} | 995 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart' as widgets;
import 'package:flutter_test/flutter_test.dart';
import 'package:... | packages/packages/in_app_purchase/in_app_purchase_android/test/in_app_purchase_android_platform_addition_test.dart/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_android/test/in_app_purchase_android_platform_addition_test.dart",
"repo_id": "packages",
"token_count": 4655
} | 996 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
#import "messages.g.h"
NS_ASSUME_NONNULL_BEGIN
@interface FIAObjectTranslator : NSObject
... | packages/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/FIAObjectTranslator.h/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/FIAObjectTranslator.h",
"repo_id": "packages",
"token_count": 1292
} | 997 |
// 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 (v16.0.4), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import "messages.g.h"
#if TARGET_OS_OSX
#impor... | packages/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/messages.g.m/0 | {
"file_path": "packages/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/messages.g.m",
"repo_id": "packages",
"token_count": 13686
} | 998 |
// 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 (v11.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
import Foundation
#if os(iOS)
import Flutter
... | packages/packages/ios_platform_images/ios/Classes/messages.g.swift/0 | {
"file_path": "packages/packages/ios_platform_images/ios/Classes/messages.g.swift",
"repo_id": "packages",
"token_count": 1730
} | 999 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Fingerprint colors -->
<color name="black_text">#212121</color>
<color name="grey_text">#757575</color>
</resources>
| packages/packages/local_auth/local_auth_android/android/src/main/res/values/colors.xml/0 | {
"file_path": "packages/packages/local_auth/local_auth_android/android/src/main/res/values/colors.xml",
"repo_id": "packages",
"token_count": 64
} | 1,000 |
// 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:local_auth_android/local_auth_android.dart';
impor... | packages/packages/local_auth/local_auth_android/test/local_auth_test.dart/0 | {
"file_path": "packages/packages/local_auth/local_auth_android/test/local_auth_test.dart",
"repo_id": "packages",
"token_count": 6761
} | 1,001 |
// 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:plugin_platform_interface/plugin_platform_interface.dart';
import 'default_method_channel_platform.dart';
import 'types/types.dart';
expo... | packages/packages/local_auth/local_auth_platform_interface/lib/local_auth_platform_interface.dart/0 | {
"file_path": "packages/packages/local_auth/local_auth_platform_interface/lib/local_auth_platform_interface.dart",
"repo_id": "packages",
"token_count": 1020
} | 1,002 |
// 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 "include/local_auth_windows/local_auth_plugin.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <windows.h>
#include <functional>
#i... | packages/packages/local_auth/local_auth_windows/windows/test/local_auth_plugin_test.cpp/0 | {
"file_path": "packages/packages/local_auth/local_auth_windows/windows/test/local_auth_plugin_test.cpp",
"repo_id": "packages",
"token_count": 2053
} | 1,003 |
// 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';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:test/test.dart' as test_package show TypeMatcher;
expor... | packages/packages/metrics_center/test/common.dart/0 | {
"file_path": "packages/packages/metrics_center/test/common.dart",
"repo_id": "packages",
"token_count": 346
} | 1,004 |
// 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.
// Example script to illustrate how to use the mdns package to discover services
// on the local network.
// ignore_for_file: avoid_print
import 'package... | packages/packages/multicast_dns/example/mdns_sd.dart/0 | {
"file_path": "packages/packages/multicast_dns/example/mdns_sd.dart",
"repo_id": "packages",
"token_count": 790
} | 1,005 |
# Palette Generator package
[](https://pub.dartlang.org/packages/palette_generator)
A Flutter package to extract prominent colors from an Image, typically used to
find colors for a user interface.
## Usage
To use this package, add `palette_generator`... | packages/packages/palette_generator/README.md/0 | {
"file_path": "packages/packages/palette_generator/README.md",
"repo_id": "packages",
"token_count": 204
} | 1,006 |
#include "ephemeral/Flutter-Generated.xcconfig"
| packages/packages/palette_generator/example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "packages/packages/palette_generator/example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "packages",
"token_count": 19
} | 1,007 |
// 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:typed_data';
// This file contains base64-ecoded versions of the images in assets/, so that
// unit tests can be run o... | packages/packages/palette_generator/test/encoded_images.dart/0 | {
"file_path": "packages/packages/palette_generator/test/encoded_images.dart",
"repo_id": "packages",
"token_count": 83397
} | 1,008 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' show Directory;
import 'package:flutter_test/flutter_test.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path_... | packages/packages/path_provider/path_provider/test/path_provider_test.dart/0 | {
"file_path": "packages/packages/path_provider/path_provider/test/path_provider_test.dart",
"repo_id": "packages",
"token_count": 1850
} | 1,009 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'path_provider_foundation'
s.version = '0.0.1'
s.summary = 'An iOS and macOS implementation of the path_provider plugin.'
s.description = <<-DESC
An iOS and ... | packages/packages/path_provider/path_provider_foundation/darwin/path_provider_foundation.podspec/0 | {
"file_path": "packages/packages/path_provider/path_provider_foundation/darwin/path_provider_foundation.podspec",
"repo_id": "packages",
"token_count": 569
} | 1,010 |
# Pigeon
Pigeon is a code generator tool to make communication between Flutter and the
host platform type-safe, easier, and faster.
Pigeon removes the necessity to manage strings across multiple platforms and languages.
It also improves efficiency over common method channel patterns. Most importantly though,
it remov... | packages/packages/pigeon/README.md/0 | {
"file_path": "packages/packages/pigeon/README.md",
"repo_id": "packages",
"token_count": 1549
} | 1,011 |
// 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 UIKit
// #docregion swift-class
// This extension of Error is required to do use FlutterError in any Swift code.
extension FlutterEr... | packages/packages/pigeon/example/app/ios/Runner/AppDelegate.swift/0 | {
"file_path": "packages/packages/pigeon/example/app/ios/Runner/AppDelegate.swift",
"repo_id": "packages",
"token_count": 660
} | 1,012 |
// 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 'ast.dart';
import 'functional.dart';
import 'generator.dart';
import 'generator_tools.dart';
/// Documentation comment open symbol.
const String _... | packages/packages/pigeon/lib/swift_generator.dart/0 | {
"file_path": "packages/packages/pigeon/lib/swift_generator.dart",
"repo_id": "packages",
"token_count": 14646
} | 1,013 |
// 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 com.example.alternate_language_test_plugin;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import io.flutter.plugin.commo... | packages/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/NullableReturnsTest.java/0 | {
"file_path": "packages/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/NullableReturnsTest.java",
"repo_id": "packages",
"token_count": 1497
} | 1,014 |
// 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 alternate_language_test_plugin;
#import "EchoMessenger.h"
/////////////////////////////////////////////////////... | packages/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m/0 | {
"file_path": "packages/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m",
"repo_id": "packages",
"token_count": 2003
} | 1,015 |
name: shared_test_plugin_code
description: Common code for test_plugin and alternate_language_test_plugin
version: 0.0.1
publish_to: none
environment:
sdk: ^3.1.0
flutter: ">=3.13.0"
dependencies:
build_runner: ^2.1.10
flutter:
sdk: flutter
# These are normal dependencies rather than dev_dependencies be... | packages/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml/0 | {
"file_path": "packages/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml",
"repo_id": "packages",
"token_count": 182
} | 1,016 |
# test_plugin
Tests for default plugin languages.
See [the `platform_tests` README](../README.md) for details.
| packages/packages/pigeon/platform_tests/test_plugin/README.md/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/README.md",
"repo_id": "packages",
"token_count": 35
} | 1,017 |
// 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 com.example.test_plugin
import io.flutter.plugin.common.BinaryMessenger
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io... | packages/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/PrimitiveTest.kt/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/PrimitiveTest.kt",
"repo_id": "packages",
"token_count": 4740
} | 1,018 |
// 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
@testable import test_plugin
class MockEnumApi2Host: EnumApi2Host {
func echo(data: DataWithEnum) -> DataWithEnum {
return data
}
}... | packages/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/EnumTests.swift/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/EnumTests.swift",
"repo_id": "packages",
"token_count": 757
} | 1,019 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <flutter/method_call.h>
#include <flutter/method_result_functions.h>
#include <flutter/standard_method_codec.h>
#include <gmock/gmock.h>
#include <... | packages/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp",
"repo_id": "packages",
"token_count": 1839
} | 1,020 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/ast.dart';
import 'package:pigeon/java_generator.dart';
import 'package:pigeon/pigeon.dart';
import 'package:test/test.dart';
const... | packages/packages/pigeon/test/java_generator_test.dart/0 | {
"file_path": "packages/packages/pigeon/test/java_generator_test.dart",
"repo_id": "packages",
"token_count": 24211
} | 1,021 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
void main() {
... | packages/packages/pointer_interceptor/pointer_interceptor/example/integration_test/widget_test.dart/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor/example/integration_test/widget_test.dart",
"repo_id": "packages",
"token_count": 181
} | 1,022 |
// 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 UIKit
public class PointerInterceptorIosPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPlugin... | packages/packages/pointer_interceptor/pointer_interceptor_ios/ios/Classes/PointerInterceptorIosPlugin.swift/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor_ios/ios/Classes/PointerInterceptorIosPlugin.swift",
"repo_id": "packages",
"token_count": 131
} | 1,023 |
// 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/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pointer_interceptor_platform_interface/pointer_in... | packages/packages/pointer_interceptor/pointer_interceptor_platform_interface/test/pointer_interceptor_platform_test.dart/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor_platform_interface/test/pointer_interceptor_platform_test.dart",
"repo_id": "packages",
"token_count": 292
} | 1,024 |
// 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:file/local.dart';
import 'package:file/memory.dart';
import 'package:platform/pla... | packages/packages/process/test/src/interface/common_test.dart/0 | {
"file_path": "packages/packages/process/test/src/interface/common_test.dart",
"repo_id": "packages",
"token_count": 9747
} | 1,025 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v12.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_c... | packages/packages/quick_actions/quick_actions_ios/lib/messages.g.dart/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_ios/lib/messages.g.dart",
"repo_id": "packages",
"token_count": 2231
} | 1,026 |
name: quick_actions_platform_interface
description: A common platform interface for the quick_actions plugin.
repository: https://github.com/flutter/packages/tree/main/packages/quick_actions/quick_actions_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+... | packages/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml",
"repo_id": "packages",
"token_count": 270
} | 1,027 |
name: local
description: Example of new custom local widgets for RFW
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ^3.2.0
flutter: ">=3.16.0"
dependencies:
flutter:
sdk: flutter
rfw:
path: ../../
| packages/packages/rfw/example/local/pubspec.yaml/0 | {
"file_path": "packages/packages/rfw/example/local/pubspec.yaml",
"repo_id": "packages",
"token_count": 110
} | 1,028 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
import 'package:flutter/widgets.dart';
import '../dart/model.dart';
import 'content.dart';
import 'runtime.dart';
export... | packages/packages/rfw/lib/src/flutter/remote_widget.dart/0 | {
"file_path": "packages/packages/rfw/lib/src/flutter/remote_widget.dart",
"repo_id": "packages",
"token_count": 905
} | 1,029 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'dart:io';
import 'package:lcov_parser/lcov_parser.dart' as lcov;
import 'package:meta/meta.dart';
// After you r... | packages/packages/rfw/test_coverage/bin/test_coverage.dart/0 | {
"file_path": "packages/packages/rfw/test_coverage/bin/test_coverage.dart",
"repo_id": "packages",
"token_count": 2664
} | 1,030 |
rootProject.name = 'shared_preferences_android'
| packages/packages/shared_preferences/shared_preferences_android/android/settings.gradle/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_android/android/settings.gradle",
"repo_id": "packages",
"token_count": 15
} | 1,031 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'shared_preferences_foundation'
s.version = '0.0.1'
s.summary = 'iOS and macOS implementation of the shared_preferences plugin.'
s.description = <<-DESC
Wraps ... | packages/packages/shared_preferences/shared_preferences_foundation/darwin/shared_preferences_foundation.podspec/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_foundation/darwin/shared_preferences_foundation.podspec",
"repo_id": "packages",
"token_count": 600
} | 1,032 |
name: shared_preferences_windows
description: Windows implementation of shared_preferences
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences_windows
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%2... | packages/packages/shared_preferences/shared_preferences_windows/pubspec.yaml/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_windows/pubspec.yaml",
"repo_id": "packages",
"token_count": 337
} | 1,033 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import... | packages/packages/two_dimensional_scrollables/lib/src/table_view/table_span.dart/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/lib/src/table_view/table_span.dart",
"repo_id": "packages",
"token_count": 5727
} | 1,034 |
name: url_launcher
description: Flutter plugin for launching a URL. Supports
web, phone, SMS, and email schemes.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
... | packages/packages/url_launcher/url_launcher/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/pubspec.yaml",
"repo_id": "packages",
"token_count": 573
} | 1,035 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.urllauncher;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.BroadcastReceiver;
import... | packages/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java",
"repo_id": "packages",
"token_count": 2479
} | 1,036 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=false
| packages/packages/url_launcher/url_launcher_android/example/android/gradle.properties/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/example/android/gradle.properties",
"repo_id": "packages",
"token_count": 30
} | 1,037 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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_ios/lib/url_launcher_ios.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_ios/lib/url_launcher_ios.dart",
"repo_id": "packages",
"token_count": 1978
} | 1,038 |
name: url_launcher_linux
description: Linux implementation of the url_launcher plugin.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_linux
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 3.1.1
enviro... | packages/packages/url_launcher/url_launcher_linux/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_linux/pubspec.yaml",
"repo_id": "packages",
"token_count": 306
} | 1,039 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
dartOut: 'lib/src/messages.g.dart',
cppOptions: CppOptions(namespace: 'url_launch... | packages/packages/url_launcher/url_launcher_windows/pigeons/messages.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_windows/pigeons/messages.dart",
"repo_id": "packages",
"token_count": 214
} | 1,040 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v9.2.5), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_co... | packages/packages/video_player/video_player_android/test/test_api.g.dart/0 | {
"file_path": "packages/packages/video_player/video_player_android/test/test_api.g.dart",
"repo_id": "packages",
"token_count": 6029
} | 1,041 |
// 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
#import "messages.g.h"
#if TARGET_OS_OSX
#impor... | packages/packages/video_player/video_player_avfoundation/darwin/Classes/messages.g.m/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/darwin/Classes/messages.g.m",
"repo_id": "packages",
"token_count": 8255
} | 1,042 |
// 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:js_interop';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:video_playe... | packages/packages/video_player/video_player_web/lib/src/video_player.dart/0 | {
"file_path": "packages/packages/video_player/video_player_web/lib/src/video_player.dart",
"repo_id": "packages",
"token_count": 4120
} | 1,043 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Compilation options for bulding a Flutter web app.
///
/// This object holds metadata that is used to determine how the benchmark app
/// should be bui... | packages/packages/web_benchmarks/lib/src/compilation_options.dart/0 | {
"file_path": "packages/packages/web_benchmarks/lib/src/compilation_options.dart",
"repo_id": "packages",
"token_count": 312
} | 1,044 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:web_benchmarks/client.dart';
import 'runner.dart';
class SimpleRecorder extends AppRecor... | packages/packages/web_benchmarks/testing/test_app/lib/benchmarks/runner_simple.dart/0 | {
"file_path": "packages/packages/web_benchmarks/testing/test_app/lib/benchmarks/runner_simple.dart",
"repo_id": "packages",
"token_count": 182
} | 1,045 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import android.os.Handler;
import android.os.Looper;
import android.webkit.JavascriptInterface;
import androidx... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannel.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannel.java",
"repo_id": "packages",
"token_count": 546
} | 1,046 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package android.util;
import java.util.HashMap;
// Creates an implementation of LongSparseArray that can be used with unittests and the JVM.
// Typically... | packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/android/util/LongSparseArray.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/android/util/LongSparseArray.java",
"repo_id": "packages",
"token_count": 239
} | 1,047 |
// 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/android_webview_cookie_manager_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.dart",
"repo_id": "packages",
"token_count": 1598
} | 1,048 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FWFDataConverters.h"
#import <Flutter/Flutter.h>
NSURLRequest *_Nullable FWFNativeNSURLRequestFromRequestData(FWFNSUrlRequestData *data) {
NSU... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFDataConverters.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFDataConverters.m",
"repo_id": "packages",
"token_count": 4801
} | 1,049 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import <WebKit/WebKit.h>
#import "FWFObjectHostApi.h"
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_A... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScrollViewDelegateHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScrollViewDelegateHostApi.h",
"repo_id": "packages",
"token_count": 540
} | 1,050 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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/FWFUserContentControllerHostApi.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUserContentControllerHostApi.h",
"repo_id": "packages",
"token_count": 203
} | 1,051 |
// 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/lib/src/common/web_kit.g.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/common/web_kit.g.dart",
"repo_id": "packages",
"token_count": 53312
} | 1,052 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flut... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart",
"repo_id": "packages",
"token_count": 21846
} | 1,053 |
// 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';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:xdg_directories... | packages/packages/xdg_directories/example/integration_test/xdg_directories_test.dart/0 | {
"file_path": "packages/packages/xdg_directories/example/integration_test/xdg_directories_test.dart",
"repo_id": "packages",
"token_count": 463
} | 1,054 |
# The list of external dependencies that are allowed as unpinned dependencies.
# See https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#Dependencies
#
# All entries here should have an explanation for why they are here, either
# via being part of one of the default-allowed groups, or a specifi... | packages/script/configs/allowed_unpinned_deps.yaml/0 | {
"file_path": "packages/script/configs/allowed_unpinned_deps.yaml",
"repo_id": "packages",
"token_count": 411
} | 1,055 |
# Flutter Plugin Tools
This is a set of utilities used in this repository, both for CI and for
local development.
## Getting Started
Set up:
```sh
cd script/tool && dart pub get && cd ../../
```
Run:
```sh
dart run script/tool/bin/flutter_plugin_tools.dart <args>
```
Many commands require the Flutter-bundled ver... | packages/script/tool/README.md/0 | {
"file_path": "packages/script/tool/README.md",
"repo_id": "packages",
"token_count": 1859
} | 1,056 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:path/path.dart' as p;
import 'common/core.dart';
import 'common/output_utils.dart';
import 'common/packag... | packages/script/tool/lib/src/license_check_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/license_check_command.dart",
"repo_id": "packages",
"token_count": 3986
} | 1,057 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:pub_semver/pub_semver.dart';
import 'package:yaml_edit/yaml_edi... | packages/script/tool/lib/src/update_release_info_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/update_release_info_command.dart",
"repo_id": "packages",
"token_count": 4271
} | 1,058 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:flutter_plugin_tools/src/common/pub_version_finder.dart';
import 'package:http/http.dart' as http;
import 'package:... | packages/script/tool/test/common/pub_version_finder_test.dart/0 | {
"file_path": "packages/script/tool/test/common/pub_version_finder_test.dart",
"repo_id": "packages",
"token_count": 1146
} | 1,059 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_plugin_tools/src/lis... | packages/script/tool/test/list_command_test.dart/0 | {
"file_path": "packages/script/tool/test/list_command_test.dart",
"repo_id": "packages",
"token_count": 2641
} | 1,060 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flut... | packages/script/tool/test/version_check_command_test.dart/0 | {
"file_path": "packages/script/tool/test/version_check_command_test.dart",
"repo_id": "packages",
"token_count": 23242
} | 1,061 |
export const ENV = process.env.NODE_ENV;
export const UPLOAD_PATH = 'uploads';
export const SHARE_PATH = 'share';
export const ALLOWED_HOSTS = [
'localhost:5001',
'io-photobooth-dev.web.app',
'io-photo-booth.web.app',
'us-central1-io-photobooth-dev.cloudfunctions.net',
'us-central1-io-photo-booth.cloudfunctio... | photobooth/functions/src/config.ts/0 | {
"file_path": "photobooth/functions/src/config.ts",
"repo_id": "photobooth",
"token_count": 145
} | 1,062 |
{
"@@locale": "zh_Hant",
"landingPageHeading": "歡迎來到 I\u2215O 照相館",
"landingPageSubheading": "向社群分享您拍的照片!",
"landingPageTakePhotoButtonText": "開拍",
"footerMadeWithText": "產品構建基於 ",
"footerMadeWithFlutterLinkText": "Flutter",
"footerMadeWithFirebaseLinkText": "Firebase",
"footerGoogleIOLi... | photobooth/lib/l10n/arb/app_zh_Hant.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_zh_Hant.arb",
"repo_id": "photobooth",
"token_count": 3466
} | 1,063 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class AnimatedAndroid extends AnimatedSprite {
const AnimatedAndroid({super.key})
: super(
loadingIndicatorColor: PhotoboothColors.green,
sprites: const Sprites(
asset: 'android_spriteshee... | photobooth/lib/photobooth/widgets/animated_characters/animated_android.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/animated_characters/animated_android.dart",
"repo_id": "photobooth",
"token_count": 202
} | 1,064 |
part of 'share_bloc.dart';
abstract class ShareEvent extends Equatable {
const ShareEvent();
@override
List<Object> get props => [];
}
class ShareViewLoaded extends ShareEvent {
const ShareViewLoaded();
}
abstract class ShareTapped extends ShareEvent {
const ShareTapped();
}
class ShareOnTwitterTapped ex... | photobooth/lib/share/bloc/share_event.dart/0 | {
"file_path": "photobooth/lib/share/bloc/share_event.dart",
"repo_id": "photobooth",
"token_count": 208
} | 1,065 |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
const _backgroundColor = Color(0xFFF1F3F4);
const _textColor = Color(0xFF80858A);
class ShareCopyableLink extends Stat... | photobooth/lib/share/widgets/share_copyable_link.dart/0 | {
"file_path": "photobooth/lib/share/widgets/share_copyable_link.dart",
"repo_id": "photobooth",
"token_count": 1681
} | 1,066 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/stickers/stickers.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class ClearSticker... | photobooth/lib/stickers/widgets/clear_stickers/clear_stickers_button_layer.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/clear_stickers/clear_stickers_button_layer.dart",
"repo_id": "photobooth",
"token_count": 631
} | 1,067 |
import 'package:analytics/src/analytics_io.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('trackEvent', () {
test('returns normally', () {
expect(
() => trackEvent(
category: 'category',
action: 'action',
label: 'label',
),
... | photobooth/packages/analytics/test/analytics_io_test.dart/0 | {
"file_path": "photobooth/packages/analytics/test/analytics_io_test.dart",
"repo_id": "photobooth",
"token_count": 166
} | 1,068 |
class MediaDeviceInfo {
const MediaDeviceInfo({
this.deviceId,
this.label,
});
final String? deviceId;
final String? label;
}
| photobooth/packages/camera/camera_platform_interface/lib/src/types/media_device_info.dart/0 | {
"file_path": "photobooth/packages/camera/camera_platform_interface/lib/src/types/media_device_info.dart",
"repo_id": "photobooth",
"token_count": 50
} | 1,069 |
name: image_compositor
description: A Flutter package which adds image compositing support via web workers
environment:
sdk: ">=2.19.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^0.3.0
test: ^1.21.7
very_good_analysis: ^4.0.0+1
| photobooth/packages/image_compositor/pubspec.yaml/0 | {
"file_path": "photobooth/packages/image_compositor/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 127
} | 1,070 |
import 'package:flutter/widgets.dart';
import 'package:url_launcher/url_launcher_string.dart';
/// Opens the given [url] in a new tab of the host browser
Future<void> openLink(String url, {VoidCallback? onError}) async {
if (await canLaunchUrlString(url)) {
await launchUrlString(url);
} else if (onError != nul... | photobooth/packages/photobooth_ui/lib/src/helpers/links_helper.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/helpers/links_helper.dart",
"repo_id": "photobooth",
"token_count": 122
} | 1,071 |
import 'dart:async';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
/// Default duration for a single pulse animation.
const defaultPulseDuration = Duration(milliseconds: 1600);
/// Default duration for the time between pulse animations.
const defaultTi... | photobooth/packages/photobooth_ui/lib/src/widgets/animated_pulse.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/animated_pulse.dart",
"repo_id": "photobooth",
"token_count": 945
} | 1,072 |
export 'constants.dart';
| photobooth/packages/photobooth_ui/test/helpers/helpers.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/helpers/helpers.dart",
"repo_id": "photobooth",
"token_count": 9
} | 1,073 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('AppTooltipButton', () {
testWidgets('renders AppTooltip', (tester) async {
const target = Key('__key__');
await tester.pumpWidget(
M... | photobooth/packages/photobooth_ui/test/src/widgets/app_tooltip_button_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/app_tooltip_button_test.dart",
"repo_id": "photobooth",
"token_count": 930
} | 1,074 |
# platform_helper
A new Flutter package project.
## Getting Started
This project is a starting point for a Dart
[package](https://flutter.dev/developing-packages/),
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.
For help getting started with Flutter, view our
[... | photobooth/packages/platform_helper/README.md/0 | {
"file_path": "photobooth/packages/platform_helper/README.md",
"repo_id": "photobooth",
"token_count": 115
} | 1,075 |
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/external_links/external_links.dart';
import 'package:mocktail/mocktail.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart';
... | photobooth/test/external_links/external_links_test.dart/0 | {
"file_path": "photobooth/test/external_links/external_links_test.dart",
"repo_id": "photobooth",
"token_count": 1153
} | 1,076 |
// ignore_for_file: prefer_const_constructors
import 'dart:convert';
import 'dart:typed_data';
import 'package:bloc_test/bloc_test.dart';
import 'package:camera/camera.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/share/... | photobooth/test/share/bloc/share_bloc_test.dart/0 | {
"file_path": "photobooth/test/share/bloc/share_bloc_test.dart",
"repo_id": "photobooth",
"token_count": 10333
} | 1,077 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/stickers/stickers.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class MockAsset extends Mock impl... | photobooth/test/stickers/bloc/stickers_bloc_test.dart/0 | {
"file_path": "photobooth/test/stickers/bloc/stickers_bloc_test.dart",
"repo_id": "photobooth",
"token_count": 1130
} | 1,078 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.