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.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'package:path_provider_foundation/path_provider_foundation.dart'... | packages/packages/path_provider/path_provider_foundation/example/lib/main.dart/0 | {
"file_path": "packages/packages/path_provider/path_provider_foundation/example/lib/main.dart",
"repo_id": "packages",
"token_count": 1361
} | 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 'package:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
input: 'pigeons/messages.dart',
swiftOut: 'macos/Classes/messages.g.swift',
dart... | packages/packages/path_provider/path_provider_foundation/pigeons/messages.dart/0 | {
"file_path": "packages/packages/path_provider/path_provider_foundation/pigeons/messages.dart",
"repo_id": "packages",
"token_count": 249
} | 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.
import 'package:flutter_test/flutter_test.dart';
import 'package:path_provider_linux/path_provider_linux.dart';
import 'package:path_provider_platform_inter... | packages/packages/path_provider/path_provider_linux/test/path_provider_linux_test.dart/0 | {
"file_path": "packages/packages/path_provider/path_provider_linux/test/path_provider_linux_test.dart",
"repo_id": "packages",
"token_count": 916
} | 1,052 |
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/pigeon/example/app/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/pigeon/example/app/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 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.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'src/messages.g.dart';
... | packages/packages/pigeon/example/app/lib/main.dart/0 | {
"file_path": "packages/packages/pigeon/example/app/lib/main.dart",
"repo_id": "packages",
"token_count": 1193
} | 1,054 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
// #docregion config
@ConfigurePigeon(PigeonOptions(
dartOut: 'lib/src/messages.g.dart',
dartOptions: DartOptions... | packages/packages/pigeon/example/app/pigeons/messages.dart/0 | {
"file_path": "packages/packages/pigeon/example/app/pigeons/messages.dart",
"repo_id": "packages",
"token_count": 649
} | 1,055 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'ast.dart';
import 'functional.dart';
import 'generator.dart';
import 'generator_tools.dart';
import 'pigeon_lib.dart' show TaskQueueType;
/// Docu... | packages/packages/pigeon/lib/kotlin_generator.dart/0 | {
"file_path": "packages/packages/pigeon/lib/kotlin_generator.dart",
"repo_id": "packages",
"token_count": 14217
} | 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.
// This file is an example pigeon file that is used in compilation, unit, mock
// handler, and e2e tests.
import 'package:pigeon/pigeon.dart';
@HostApi()... | packages/packages/pigeon/pigeons/nullable_returns.dart/0 | {
"file_path": "packages/packages/pigeon/pigeons/nullable_returns.dart",
"repo_id": "packages",
"token_count": 352
} | 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.
package com.example.alternate_language_test_plugin;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Test;
public class En... | packages/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/EnumTest.java/0 | {
"file_path": "packages/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/EnumTest.java",
"repo_id": "packages",
"token_count": 209
} | 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 Flutter;
@import XCTest;
@import alternate_language_test_plugin;
#import "EchoMessenger.h"
////////////////////////////////////////////////////... | packages/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m/0 | {
"file_path": "packages/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m",
"repo_id": "packages",
"token_count": 178
} | 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.
//
// Autogenerated from Pigeon, do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h>
@protocol FlutterBin... | packages/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h/0 | {
"file_path": "packages/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h",
"repo_id": "packages",
"token_count": 12092
} | 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.
//
// Autogenerated from Pigeon, do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant... | packages/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart/0 | {
"file_path": "packages/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart",
"repo_id": "packages",
"token_count": 3111
} | 1,061 |
// Mocks generated by Mockito 5.4.1 from annotations
// in shared_test_plugin_code/test/primitive_test.dart.
// Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:typed_data' as _i4;
import 'dart:ui' as _i5;
import 'p... | packages/packages/pigeon/platform_tests/shared_test_plugin_code/test/primitive_test.mocks.dart/0 | {
"file_path": "packages/packages/pigeon/platform_tests/shared_test_plugin_code/test/primitive_test.mocks.dart",
"repo_id": "packages",
"token_count": 2051
} | 1,062 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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/EnumTest.kt/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/EnumTest.kt",
"repo_id": "packages",
"token_count": 908
} | 1,063 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Autogenerated from Pigeon, do not edit directly.
// See also: https://pub.dev/packages/pigeon
#ifndef PIGEON_CORE_TESTS_GEN_H_
#define PIGEON_CORE_TE... | packages/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h/0 | {
"file_path": "packages/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h",
"repo_id": "packages",
"token_count": 13802
} | 1,064 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/ast.dart';
import 'package:pigeon/cpp_generator.dart';
import 'package:pigeon/generator_tools.dart';
import 'package:pigeon/pigeon.d... | packages/packages/pigeon/test/cpp_generator_test.dart/0 | {
"file_path": "packages/packages/pigeon/test/cpp_generator_test.dart",
"repo_id": "packages",
"token_count": 35379
} | 1,065 |
// 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_utils.dart';
import 'process_utils.dart';
Future<int> runFlutterCommand(
String projectDirectory,
String command, [
List<String> com... | packages/packages/pigeon/tool/shared/native_project_runners.dart/0 | {
"file_path": "packages/packages/pigeon/tool/shared/native_project_runners.dart",
"repo_id": "packages",
"token_count": 558
} | 1,066 |
test_on: vm
| packages/packages/platform/example/dart_test.yaml/0 | {
"file_path": "packages/packages/platform/example/dart_test.yaml",
"repo_id": "packages",
"token_count": 6
} | 1,067 |
#include "ephemeral/Flutter-Generated.xcconfig"
| packages/packages/platform/example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "packages/packages/platform/example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "packages",
"token_count": 19
} | 1,068 |
{
"numberOfProcessors": 8,
"pathSeparator": "/",
"operatingSystem": "macos",
"operatingSystemVersion": "10.14.5",
"localHostname": "platform.test.org",
"environment": {
"PATH": "/bin",
"PWD": "/platform"
},
"executable": "/bin/dart",
"resolvedExecutable": "/bin/dart",
"script": "file:///plat... | packages/packages/platform/test/platform.json/0 | {
"file_path": "packages/packages/platform/test/platform.json",
"repo_id": "packages",
"token_count": 193
} | 1,069 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html' as html;
import 'dart:ui_web' as ui_web;
import 'package:flutter/material.dart';
/// The html.Element that will be rendered underneath... | packages/packages/pointer_interceptor/pointer_interceptor/example/lib/platforms/native_widget_web.dart/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor/example/lib/platforms/native_widget_web.dart",
"repo_id": "packages",
"token_count": 668
} | 1,070 |
## NEXT
* Updates minimum iOS version to 12.0 and minimum Flutter version to 3.16.6.
## 0.10.0+2
* Adds privacy manifest.
## 0.10.0+1
* Updates minimum required plugin_platform_interface version to 2.1.7.
## 0.10.0
* Initial release.
| packages/packages/pointer_interceptor/pointer_interceptor_ios/CHANGELOG.md/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor_ios/CHANGELOG.md",
"repo_id": "packages",
"token_count": 86
} | 1,071 |
name: pointer_interceptor_ios_example
description: "Demonstrates how to use the pointer_interceptor_ios plugin."
publish_to: 'none'
environment:
sdk: ^3.2.3
flutter: ">=3.16.6"
dependencies:
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
pointer_interceptor_ios:
path: ../../pointer_interceptor_ios
... | packages/packages/pointer_interceptor/pointer_interceptor_ios/example/pubspec.yaml/0 | {
"file_path": "packages/packages/pointer_interceptor/pointer_interceptor_ios/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 194
} | 1,072 |
// 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 ProcessException;
/// A specialized exception class for this package, so that it can throw
/// customized exceptions with more infor... | packages/packages/process/lib/src/interface/exceptions.dart/0 | {
"file_path": "packages/packages/process/lib/src/interface/exceptions.dart",
"repo_id": "packages",
"token_count": 1020
} | 1,073 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:quick_actions/quick_actions.dart'... | packages/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart/0 | {
"file_path": "packages/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart",
"repo_id": "packages",
"token_count": 267
} | 1,074 |
// 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 quick_actions;
@import XCTest;
@interface QuickActionsTests : XCTestCase
@end
@implementation QuickActionsTests
- (void)testPlugin {
FLTQuickA... | packages/packages/quick_actions/quick_actions/example/ios/RunnerTests/RunnerTests.m/0 | {
"file_path": "packages/packages/quick_actions/quick_actions/example/ios/RunnerTests/RunnerTests.m",
"repo_id": "packages",
"token_count": 132
} | 1,075 |
// 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
package io.flutter.plugins.quickactions;
import... | packages/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/Messages.java/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/Messages.java",
"repo_id": "packages",
"token_count": 4422
} | 1,076 |
// 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',
javaOut:
'android/src/main/java/io/flut... | packages/packages/quick_actions/quick_actions_android/pigeons/messages.dart/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_android/pigeons/messages.dart",
"repo_id": "packages",
"token_count": 430
} | 1,077 |
// 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
public final class QuickActionsPlugin: NSObject, FlutterPlugin, IOSQuickActionsApi {
public static func register(with registrar: Flutter... | packages/packages/quick_actions/quick_actions_ios/ios/Classes/QuickActionsPlugin.swift/0 | {
"file_path": "packages/packages/quick_actions/quick_actions_ios/ios/Classes/QuickActionsPlugin.swift",
"repo_id": "packages",
"token_count": 1157
} | 1,078 |
# Use the analysis options settings from the top level of the repo (not
# the ones from above, which include the `public_member_api_docs` rule).
include: ../../../analysis_options.yaml
linter:
rules:
public_member_api_docs: false
| packages/packages/rfw/example/analysis_options.yaml/0 | {
"file_path": "packages/packages/rfw/example/analysis_options.yaml",
"repo_id": "packages",
"token_count": 73
} | 1,079 |
#include "Generated.xcconfig"
| packages/packages/rfw/example/local/ios/Flutter/Release.xcconfig/0 | {
"file_path": "packages/packages/rfw/example/local/ios/Flutter/Release.xcconfig",
"repo_id": "packages",
"token_count": 12
} | 1,080 |
# Example of fetching remote widgets for RFW
This example shows how one can fetch remote widget library files from
a remote server.
| packages/packages/rfw/example/remote/README.md/0 | {
"file_path": "packages/packages/rfw/example/remote/README.md",
"repo_id": "packages",
"token_count": 30
} | 1,081 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
import 'dart:async';
import 'dart:io';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
im... | packages/packages/rfw/example/wasm/lib/main.dart/0 | {
"file_path": "packages/packages/rfw/example/wasm/lib/main.dart",
"repo_id": "packages",
"token_count": 1229
} | 1,082 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
// This file must not import `dart:ui`, directly or indirectly, as it is
// intended to function even in pure Dart server ... | packages/packages/rfw/lib/src/dart/text.dart/0 | {
"file_path": "packages/packages/rfw/lib/src/dart/text.dart",
"repo_id": "packages",
"token_count": 44534
} | 1,083 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is hand-formatted.
// ignore_for_file: avoid_dynamic_calls
import 'dart:convert';
import 'dart:typed_data';
import 'package:flutter/widgets... | packages/packages/rfw/test/runtime_test.dart/0 | {
"file_path": "packages/packages/rfw/test/runtime_test.dart",
"repo_id": "packages",
"token_count": 23025
} | 1,084 |
// 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, unused_local_variable, invalid_use_of_visible_for_testing_member
import 'package:shared_preferences/shared_pref... | packages/packages/shared_preferences/shared_preferences/example/lib/readme_excerpts.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences/example/lib/readme_excerpts.dart",
"repo_id": "packages",
"token_count": 675
} | 1,085 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| packages/packages/shared_preferences/shared_preferences_android/example/android/gradle.properties/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_android/example/android/gradle.properties",
"repo_id": "packages",
"token_count": 30
} | 1,086 |
// 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:web/web.dart' as html;
/// An extension on [html.Storage] that adds a convenience [keys] getter.
extension KeysExtension on html.Storage {... | packages/packages/shared_preferences/shared_preferences_web/lib/src/keys_extension.dart/0 | {
"file_path": "packages/packages/shared_preferences/shared_preferences_web/lib/src/keys_extension.dart",
"repo_id": "packages",
"token_count": 146
} | 1,087 |
// 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 'src/serialization.dart';
export 'src/serialization.dart' show ReadBuffer, WriteBuffer;
const int _writeBufferStartCapacit... | packages/packages/standard_message_codec/lib/standard_message_codec.dart/0 | {
"file_path": "packages/packages/standard_message_codec/lib/standard_message_codec.dart",
"repo_id": "packages",
"token_count": 5242
} | 1,088 |
#include "ephemeral/Flutter-Generated.xcconfig"
| packages/packages/two_dimensional_scrollables/example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "packages/packages/two_dimensional_scrollables/example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "packages",
"token_count": 19
} | 1,089 |
buildFlags:
_pluginToolsConfigGlobalKey:
- "--no-tree-shake-icons"
- "--dart-define=buildmode=testing"
| packages/packages/url_launcher/url_launcher/example/.pluginToolsConfig.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher/example/.pluginToolsConfig.yaml",
"repo_id": "packages",
"token_count": 45
} | 1,090 |
rootProject.name = 'url_launcher_android'
| packages/packages/url_launcher/url_launcher_android/android/settings.gradle/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/android/settings.gradle",
"repo_id": "packages",
"token_count": 14
} | 1,091 |
name: url_launcher_android
description: Android implementation of the url_launcher plugin.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 6.3.0
e... | packages/packages/url_launcher/url_launcher_android/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_android/pubspec.yaml",
"repo_id": "packages",
"token_count": 360
} | 1,092 |
// 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 final class URLLauncherPlugin: NSObject, FlutterPlugin, UrlLauncherApi {
public static func register(with registrar:... | packages/packages/url_launcher/url_launcher_ios/ios/Classes/URLLauncherPlugin.swift/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_ios/ios/Classes/URLLauncherPlugin.swift",
"repo_id": "packages",
"token_count": 998
} | 1,093 |
# url\_launcher\_linux
The Linux implementation of [`url_launcher`][1].
## Usage
This package is [endorsed][2], which means you can simply use `url_launcher`
normally. This package will be automatically included in your app when you do,
so you do not need to add it to your `pubspec.yaml`.
However, if you `import` t... | packages/packages/url_launcher/url_launcher_linux/README.md/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_linux/README.md",
"repo_id": "packages",
"token_count": 177
} | 1,094 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| packages/packages/url_launcher/url_launcher_macos/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_macos/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "packages",
"token_count": 32
} | 1,095 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:collection';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart... | packages/packages/url_launcher/url_launcher_platform_interface/test/link_test.dart/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_platform_interface/test/link_test.dart",
"repo_id": "packages",
"token_count": 984
} | 1,096 |
name: url_launcher_web
description: Web platform implementation of url_launcher
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 2.3.0
environment:
... | packages/packages/url_launcher/url_launcher_web/pubspec.yaml/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_web/pubspec.yaml",
"repo_id": "packages",
"token_count": 325
} | 1,097 |
// 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 "url_launcher_plugin.h"
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include <flutter/standard_method_codec.... | packages/packages/url_launcher/url_launcher_windows/windows/url_launcher_plugin.cpp/0 | {
"file_path": "packages/packages/url_launcher/url_launcher_windows/windows/url_launcher_plugin.cpp",
"repo_id": "packages",
"token_count": 1586
} | 1,098 |
1
00:00:00,200 --> 00:00:01,750
[ Birds chirping ]
2
00:00:02,300 --> 00:00:05,000
[ Buzzing ]
| packages/packages/video_player/video_player/example/assets/bumble_bee_captions.srt/0 | {
"file_path": "packages/packages/video_player/video_player/example/assets/bumble_bee_captions.srt",
"repo_id": "packages",
"token_count": 49
} | 1,099 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
| packages/packages/video_player/video_player_android/example/android/app/src/main/res/values/styles.xml/0 | {
"file_path": "packages/packages/video_player/video_player_android/example/android/app/src/main/res/values/styles.xml",
"repo_id": "packages",
"token_count": 84
} | 1,100 |
// 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 "FVPVideoPlayerPlugin.h"
#import "FVPVideoPlayerPlugin_Test.h"
#import <AVFoundation/AVFoundation.h>
#import <GLKit/GLKit.h>
#import "AVAssetTrac... | packages/packages/video_player/video_player_avfoundation/darwin/Classes/FVPVideoPlayerPlugin.m/0 | {
"file_path": "packages/packages/video_player/video_player_avfoundation/darwin/Classes/FVPVideoPlayerPlugin.m",
"repo_id": "packages",
"token_count": 13298
} | 1,101 |
name: video_player_platform_interface
description: A common platform interface for the video_player plugin.
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vide... | packages/packages/video_player/video_player_platform_interface/pubspec.yaml/0 | {
"file_path": "packages/packages/video_player/video_player_platform_interface/pubspec.yaml",
"repo_id": "packages",
"token_count": 257
} | 1,102 |
name: video_player_for_web_integration_tests
publish_to: none
environment:
sdk: ^3.3.0
flutter: ">=3.19.0"
dependencies:
flutter:
sdk: flutter
video_player_platform_interface: ^6.1.0
video_player_web:
path: ../
web: ^0.5.1
dev_dependencies:
flutter_test:
sdk: flutter
integration_test:
... | packages/packages/video_player/video_player_web/example/pubspec.yaml/0 | {
"file_path": "packages/packages/video_player/video_player_web/example/pubspec.yaml",
"repo_id": "packages",
"token_count": 150
} | 1,103 |
// 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' show json;
import 'dart:js_interop';
import 'dart:math' as math;
import 'package:web/web.dart';
import 'src/co... | packages/packages/web_benchmarks/lib/client.dart/0 | {
"file_path": "packages/packages/web_benchmarks/lib/client.dart",
"repo_id": "packages",
"token_count": 4853
} | 1,104 |
// 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
// Runs `dart test -p chrome` in the root of the cross_file package.
//
// Called from the custom-tests CI action.
//
// u... | packages/packages/web_benchmarks/tool/run_tests.dart/0 | {
"file_path": "packages/packages/web_benchmarks/tool/run_tests.dart",
"repo_id": "packages",
"token_count": 653
} | 1,105 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart'
show
HttpAuthRequest,
JavaScriptAlertDialog... | packages/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart",
"repo_id": "packages",
"token_count": 503
} | 1,106 |
# webview\_flutter\_android
The Android implementation of [`webview_flutter`][1].
## Usage
This package is [endorsed][2], which means you can simply use `webview_flutter`
normally. This package will be automatically included in your app when you do,
so you do not need to add it to your `pubspec.yaml`.
However, if y... | packages/packages/webview_flutter/webview_flutter_android/README.md/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/README.md",
"repo_id": "packages",
"token_count": 1078
} | 1,107 |
// 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.GeolocationPermissions;
import androidx.annotation.NonNull;
import io.flutter.plugin.comm... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeolocationPermissionsCallbackHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeolocationPermissionsCallbackHostApiImpl.java",
"repo_id": "packages",
"token_count": 560
} | 1,108 |
// 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.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
im... | packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewClientHostApiImpl.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewClientHostApiImpl.java",
"repo_id": "packages",
"token_count": 3854
} | 1,109 |
// 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/PermissionRequestTest.java/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/PermissionRequestTest.java",
"repo_id": "packages",
"token_count": 1159
} | 1,110 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| packages/packages/webview_flutter/webview_flutter_android/example/android/gradle.properties/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/example/android/gradle.properties",
"repo_id": "packages",
"token_count": 30
} | 1,111 |
name: webview_flutter_android
description: A Flutter plugin that provides a WebView widget on Android.
repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
ver... | packages/packages/webview_flutter/webview_flutter_android/pubspec.yaml/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/pubspec.yaml",
"repo_id": "packages",
"token_count": 347
} | 1,112 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v11.0.1), 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_android/test/test_android_webview.g.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart",
"repo_id": "packages",
"token_count": 42817
} | 1,113 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:meta/meta.dart';
import '../types/http_auth_request.dart';
/// Defines the response parameters of a pending [HttpAuthRequest] received by... | packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_credential.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_credential.dart",
"repo_id": "packages",
"token_count": 176
} | 1,114 |
// Mocks generated by Mockito 5.4.4 from annotations
// in webview_flutter_web/test/web_webview_controller_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'dart:html' as _i2;
import 'package:mockito/mockito.dart' as _i1;
... | packages/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart",
"repo_id": "packages",
"token_count": 5280
} | 1,115 |
// 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 FWFURLCredentialHostApiTests : XCTestCase
@end
... | packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFURLCredentialHostApiTests.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFURLCredentialHostApiTests.m",
"repo_id": "packages",
"token_count": 526
} | 1,116 |
// 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 "FWFObjectHostApi.h"
#import <objc/runtime.h>
#import "FWFDataConverters.h"
#import "FWFURLHostApi.h"
@interface FWFObjectFlutterApiImpl ()
// Bin... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.m",
"repo_id": "packages",
"token_count": 2856
} | 1,117 |
// 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 "FWFURLCredentialHostApi.h"
@interface FWFURLCredentialHostApiImpl ()
// BinaryMessenger must be weak to prevent a circular reference with the hos... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLCredentialHostApi.m/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFURLCredentialHostApi.m",
"repo_id": "packages",
"token_count": 1011
} | 1,118 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
#import "FLTWebViewFlutterPlugin.h"
#import "FWFDataConverters.h"
#import "FWFGeneratedWebKitApis.h"
#import "FWFHTTPCoo... | packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/webview-umbrella.h/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/webview-umbrella.h",
"repo_id": "packages",
"token_count": 384
} | 1,119 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'pa... | packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart",
"repo_id": "packages",
"token_count": 15721
} | 1,120 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
im... | packages/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart/0 | {
"file_path": "packages/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart",
"repo_id": "packages",
"token_count": 2413
} | 1,121 |
# `xdg_directories`
A Dart package for reading XDG directory configuration information on Linux.
## Getting Started
On Linux, `xdg` is a system developed by [freedesktop.org](freedesktop.org), a
project to work on interoperability and shared base technology for free software
desktop environments for Linux.
This Dar... | packages/packages/xdg_directories/README.md/0 | {
"file_path": "packages/packages/xdg_directories/README.md",
"repo_id": "packages",
"token_count": 612
} | 1,122 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io';
import 'package:meta/meta.dart';
import 'package:path/path.dart' as path;
// From errno definitions.
const int _... | packages/packages/xdg_directories/lib/xdg_directories.dart/0 | {
"file_path": "packages/packages/xdg_directories/lib/xdg_directories.dart",
"repo_id": "packages",
"token_count": 2320
} | 1,123 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:colorize/colorize.dart';
import 'package:meta/meta.dart';
export 'package:colorize/colorize.dart' show Styles;
/// Tru... | packages/script/tool/lib/src/common/output_utils.dart/0 | {
"file_path": "packages/script/tool/lib/src/common/output_utils.dart",
"repo_id": "packages",
"token_count": 388
} | 1,124 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'common/core.dart';
import 'common/gradle.dart';
import 'common/output_utils.dart';
import 'common/package_looping_command.dart';
import 'common/plu... | packages/script/tool/lib/src/fetch_deps_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/fetch_deps_command.dart",
"repo_id": "packages",
"token_count": 3337
} | 1,125 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:yaml/yaml.dart';
import 'package:yaml_edit/yaml_edit.dart';
import 'common/package_looping_command.dart';
import 'common/repository_packag... | packages/script/tool/lib/src/remove_dev_dependencies_command.dart/0 | {
"file_path": "packages/script/tool/lib/src/remove_dev_dependencies_command.dart",
"repo_id": "packages",
"token_count": 624
} | 1,126 |
// Mocks generated by Mockito 5.4.4 from annotations
// in flutter_plugin_tools/test/common/package_command_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'dart:io' as _i10;
import 'package:git/src/branch_reference.dart'... | packages/script/tool/test/common/package_command_test.mocks.dart/0 | {
"file_path": "packages/script/tool/test/common/package_command_test.mocks.dart",
"repo_id": "packages",
"token_count": 4164
} | 1,127 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '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/fix_command_test.dart/0 | {
"file_path": "packages/script/tool/test/fix_command_test.dart",
"repo_id": "packages",
"token_count": 867
} | 1,128 |
// 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/update_dependency_command_test.dart/0 | {
"file_path": "packages/script/tool/test/update_dependency_command_test.dart",
"repo_id": "packages",
"token_count": 16826
} | 1,129 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// File to create a lib/ directory for a well-formed .packages file and to
// conform to pub analyzer.
//
// This is an asset package. No dart import neede... | packages/third_party/packages/cupertino_icons/lib/cupertino_icons.dart/0 | {
"file_path": "packages/third_party/packages/cupertino_icons/lib/cupertino_icons.dart",
"repo_id": "packages",
"token_count": 84
} | 1,130 |
arb-dir: lib/l10n/arb
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
| photobooth/l10n.yaml/0 | {
"file_path": "photobooth/l10n.yaml",
"repo_id": "photobooth",
"token_count": 39
} | 1,131 |
{
"@@locale": "ne",
"landingPageHeading": "I∕O फोटो बुथमा स्वागत छ",
"landingPageSubheading": "फोटो लिनुहोस् र समुदायसँग साझा गर्नुहोस्!",
"landingPageTakePhotoButtonText": "सुरु गर्नुहोस्",
"footerMadeWithText": "द्वारा बनाइएको ",
"footerMadeWithFlutterLinkText": "Flutter",
"footerMadeWithF... | photobooth/lib/l10n/arb/app_ne.arb/0 | {
"file_path": "photobooth/lib/l10n/arb/app_ne.arb",
"repo_id": "photobooth",
"token_count": 5954
} | 1,132 |
import 'package:bloc/bloc.dart';
import 'package:camera/camera.dart';
import 'package:equatable/equatable.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
import 'package:rxdart/rxdart.dart';
import 'package:uuid/uuid.dart';
part 'photobooth_event.dart';
part 'photobooth_state.dart';
typedef UuidGetter = Str... | photobooth/lib/photobooth/bloc/photobooth_bloc.dart/0 | {
"file_path": "photobooth/lib/photobooth/bloc/photobooth_bloc.dart",
"repo_id": "photobooth",
"token_count": 2379
} | 1,133 |
import 'package:analytics/analytics.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/assets.g.dart';
import 'package:io_photobooth/footer/footer.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/photobooth/pho... | photobooth/lib/photobooth/widgets/photobooth_preview.dart/0 | {
"file_path": "photobooth/lib/photobooth/widgets/photobooth_preview.dart",
"repo_id": "photobooth",
"token_count": 3548
} | 1,134 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_photobooth/l10n/l10n.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
class FacebookButton extends StatelessWidget {
const FacebookButton({super.key});... | photobooth/lib/share/widgets/facebook_button.dart/0 | {
"file_path": "photobooth/lib/share/widgets/facebook_button.dart",
"repo_id": "photobooth",
"token_count": 345
} | 1,135 |
part of 'stickers_bloc.dart';
abstract class StickersEvent extends Equatable {
const StickersEvent();
@override
List<Object> get props => [];
}
class StickersDrawerToggled extends StickersEvent {
const StickersDrawerToggled();
}
class StickersDrawerTabTapped extends StickersEvent {
const StickersDrawerTab... | photobooth/lib/stickers/bloc/stickers_event.dart/0 | {
"file_path": "photobooth/lib/stickers/bloc/stickers_event.dart",
"repo_id": "photobooth",
"token_count": 116
} | 1,136 |
# example
A new Flutter project.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://... | photobooth/packages/camera/camera/example/README.md/0 | {
"file_path": "photobooth/packages/camera/camera/example/README.md",
"repo_id": "photobooth",
"token_count": 146
} | 1,137 |
import 'package:camera_platform_interface/camera_platform_interface.dart';
/// An implementation of [CameraPlatform] that uses a `MethodChannel`
/// to communicate with the native code.
///
/// The `camera` plugin code itself never talks to the native code directly.
/// It delegates all calls to an instance of a class... | photobooth/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart/0 | {
"file_path": "photobooth/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart",
"repo_id": "photobooth",
"token_count": 158
} | 1,138 |
export 'src/unsupported.dart' if (dart.library.html) 'src/web.dart';
/// {@template vector_2d}
/// A 2 dimensional vector representation.
/// {@endtemplate}
class Vector2D {
/// {@macro vector_2d}
const Vector2D(this.x, this.y);
/// Factory which returns a [Vector2D] based on the provided [json].
factory Vect... | photobooth/packages/image_compositor/lib/image_compositor.dart/0 | {
"file_path": "photobooth/packages/image_compositor/lib/image_compositor.dart",
"repo_id": "photobooth",
"token_count": 737
} | 1,139 |
import 'package:flutter/material.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
const _smallTextScaleFactor = 0.80;
/// Namespace for the Photobooth [ThemeData].
class PhotoboothTheme {
/// Standard `ThemeData` for Photobooth UI.
static ThemeData get standard {
return ThemeData(
colorScheme: ... | photobooth/packages/photobooth_ui/lib/src/theme.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/theme.dart",
"repo_id": "photobooth",
"token_count": 2373
} | 1,140 |
import 'package:flutter/material.dart';
/// {@template preview_image}
/// A wrapper around [Image.memory]
/// {@endtemplate}
class PreviewImage extends StatelessWidget {
/// {@macro preview_image}
const PreviewImage({
required this.data,
this.height,
this.width,
super.key,
});
/// Data URI rep... | photobooth/packages/photobooth_ui/lib/src/widgets/preview_image.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/preview_image.dart",
"repo_id": "photobooth",
"token_count": 346
} | 1,141 |
// ignore_for_file: prefer_const_constructors
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flame/cache.dart';
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:photo... | photobooth/packages/photobooth_ui/test/src/widgets/animated_sprite_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/animated_sprite_test.dart",
"repo_id": "photobooth",
"token_count": 1548
} | 1,142 |
import 'dart:typed_data';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:image_compositor/image_compositor.dart';
/// {@template upload_photo_exception}
/// Exception thrown when upload photo operation failed.
///
/// It contains a [message] field which describes the error.
/// {@endtemplate... | photobooth/packages/photos_repository/lib/src/photos_repository.dart/0 | {
"file_path": "photobooth/packages/photos_repository/lib/src/photos_repository.dart",
"repo_id": "photobooth",
"token_count": 1686
} | 1,143 |
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{folder}/{imageId} {
allow read: if imageId.matches(".*\\.png") || imageId.matches(".*\\.jpg");
allow write: if false;
}
}
}
| photobooth/storage.rules/0 | {
"file_path": "photobooth/storage.rules",
"repo_id": "photobooth",
"token_count": 100
} | 1,144 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/widgets/widgets.dart';
import '../../helpers/helpers.dart';
void main() {
group('CharacterIconButton', () {
testWidgets('renders', (tes... | photobooth/test/photobooth/widgets/character_icon_button_test.dart/0 | {
"file_path": "photobooth/test/photobooth/widgets/character_icon_button_test.dart",
"repo_id": "photobooth",
"token_count": 1526
} | 1,145 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/share/share.dart';
import '../../helpers/helpers.dart';
class MockClipboard {
Object get clipboardData => _cli... | photobooth/test/share/widgets/share_copyable_link_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/share_copyable_link_test.dart",
"repo_id": "photobooth",
"token_count": 1917
} | 1,146 |
if (typeof firebase === 'undefined') throw new Error('hosting/init-error: Firebase SDK not detected. You must include it before /__/firebase/init.js');
var firebaseConfig = {
"projectId": "io-photobooth-dev",
"appId": "1:931695903758:web:33a07d199e97fa53f4a85f",
"storageBucket": "io-photobooth-dev.appspot.com",
... | photobooth/web/__/firebase/init.js/0 | {
"file_path": "photobooth/web/__/firebase/init.js",
"repo_id": "photobooth",
"token_count": 666
} | 1,147 |
import 'dart:async';
import 'dart:developer';
import 'package:bloc/bloc.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/widgets.dart';
class AppBlocObserver extends BlocObserver {
@override
void onChange(BlocBase bloc, Change... | pinball/lib/bootstrap.dart/0 | {
"file_path": "pinball/lib/bootstrap.dart",
"repo_id": "pinball",
"token_count": 509
} | 1,148 |
// ignore_for_file: avoid_renaming_method_parameters
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flutter/material.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball/game/components/android_acres/behaviors/behaviors.dart';
impo... | pinball/lib/game/components/android_acres/android_acres.dart/0 | {
"file_path": "pinball/lib/game/components/android_acres/android_acres.dart",
"repo_id": "pinball",
"token_count": 1221
} | 1,149 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.