text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// ignore_for_file: prefer_const_constructors
import 'dart:ui';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:moc... | pinball/test/game/view/pinball_game_page_test.dart/0 | {
"file_path": "pinball/test/game/view/pinball_game_page_test.dart",
"repo_id": "pinball",
"token_count": 4477
} | 1,212 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball/select_character/select_character.dart';
void main() {
group('ThemeState', () {
test('can be instantiated', () {
expect(const CharacterThemeState.initial(), isNotNull);
});
test(... | pinball/test/select_character/cubit/character_theme_state_test.dart/0 | {
"file_path": "pinball/test/select_character/cubit/character_theme_state_test.dart",
"repo_id": "pinball",
"token_count": 174
} | 1,213 |
# Describes the targets run in continuous integration environment.
#
# Flutter infra uses this file to generate a checklist of tasks to be performed
# for every commit.
#
# More information at:
# * https://github.com/flutter/cocoon/blob/main/CI_YAML.md
enabled_branches:
- main
platform_properties:
linux:
prop... | plugins/.ci.yaml/0 | {
"file_path": "plugins/.ci.yaml",
"repo_id": "plugins",
"token_count": 3484
} | 1,214 |
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: create all_plugins app
script: .ci/scripts/create_all_plugins_app.sh
- name: build all_plugins for Windows debug
script: .ci/scripts/build_all_plugins.sh
args: ["windows", "debug"]
- name: build all_plugins for Windows relea... | plugins/.ci/targets/windows_build_all_plugins.yaml/0 | {
"file_path": "plugins/.ci/targets/windows_build_all_plugins.yaml",
"repo_id": "plugins",
"token_count": 142
} | 1,215 |
# camera\_android
The Android implementation of [`camera`][1].
## Usage
This package is [endorsed][2], which means you can simply use `camera`
normally. This package will be automatically included in your app when you do.
[1]: https://pub.dev/packages/camera
[2]: https://flutter.dev/docs/development/packages-and-pl... | plugins/packages/camera/camera_android/README.md/0 | {
"file_path": "plugins/packages/camera/camera_android/README.md",
"repo_id": "plugins",
"token_count": 110
} | 1,216 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.features;
import android.hardware.camera2.CaptureRequest;
import androidx.annotation.NonNull;
import io.flutter.plugins.... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/CameraFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/CameraFeature.java",
"repo_id": "plugins",
"token_count": 537
} | 1,217 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.features.noisereduction;
/** Only supports fast mode for now. */
public enum NoiseReductionMode {
off("off"),
fast("... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionMode.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionMode.java",
"repo_id": "plugins",
"token_count": 377
} | 1,218 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera;
import static org.mockito.ArgumentMatchers.anyFloat;
import static org.mockito.ArgumentMatchers.anyInt;
import static o... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraCaptureCallbackTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraCaptureCallbackTest.java",
"repo_id": "plugins",
"token_count": 949
} | 1,219 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.features.exposurepoint;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import ... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposurepoint/ExposurePointFeatureTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposurepoint/ExposurePointFeatureTest.java",
"repo_id": "plugins",
"token_count": 4382
} | 1,220 |
sdk=30 | plugins/packages/camera/camera_android/android/src/test/resources/robolectric.properties/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/resources/robolectric.properties",
"repo_id": "plugins",
"token_count": 4
} | 1,221 |
// 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.camerax;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/DeviceOrientationManager.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/DeviceOrientationManager.java",
"repo_id": "plugins",
"token_count": 3733
} | 1,222 |
// 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.camerax;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito... | plugins/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/PreviewTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/PreviewTest.java",
"repo_id": "plugins",
"token_count": 3162
} | 1,223 |
// 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:async/async.dart';
import 'package:camera_android_camerax/camera_android_camerax.dart';
import 'package:camera_androi... | plugins/packages/camera/camera_android_camerax/test/android_camera_camerax_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/test/android_camera_camerax_test.dart",
"repo_id": "plugins",
"token_count": 5154
} | 1,224 |
## 0.9.11
* Adds back use of Optional type.
* Updates minimum Flutter version to 3.0.
## 0.9.10+2
* Updates code for stricter lint checks.
## 0.9.10+1
* Updates code for stricter lint checks.
## 0.9.10
* Remove usage of deprecated quiver Optional type.
## 0.9.9
* Implements option to also stream when recording... | plugins/packages/camera/camera_avfoundation/CHANGELOG.md/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 391
} | 1,225 |
// 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 camera_avfoundation;
NS_ASSUME_NONNULL_BEGIN
/// Creates an `FLTCam` that runs its capture session operations on a given queue.
/// @param captur... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraTestUtils.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraTestUtils.h",
"repo_id": "plugins",
"token_count": 181
} | 1,226 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'camera_controller.dart';... | plugins/packages/camera/camera_avfoundation/example/lib/camera_preview.dart/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/lib/camera_preview.dart",
"repo_id": "plugins",
"token_count": 1115
} | 1,227 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import AVFoundation;
@import Foundation;
#import "FLTThreadSafeFlutterResult.h"
NS_ASSUME_NONNULL_BEGIN
/// The completion handler block for save photo... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTSavePhotoDelegate.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTSavePhotoDelegate.h",
"repo_id": "plugins",
"token_count": 459
} | 1,228 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_tes... | plugins/packages/camera/camera_platform_interface/test/events/device_event_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/test/events/device_event_test.dart",
"repo_id": "plugins",
"token_count": 796
} | 1,229 |
# Camera Web Plugin
The web implementation of [`camera`][camera].
*Note*: This plugin is under development. See [missing implementation](#missing-implementation).
## Usage
### Depend on the package
This package is [endorsed](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-fed... | plugins/packages/camera/camera_web/README.md/0 | {
"file_path": "plugins/packages/camera/camera_web/README.md",
"repo_id": "plugins",
"token_count": 1340
} | 1,230 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html' as html;
import 'package:flutter/foundation.dart';
/// The possible range of values for the zoom level configurable
/// on the camera ... | plugins/packages/camera/camera_web/lib/src/types/zoom_level_capability.dart/0 | {
"file_path": "plugins/packages/camera/camera_web/lib/src/types/zoom_level_capability.dart",
"repo_id": "plugins",
"token_count": 418
} | 1,231 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_CAPTURE_DEVICE_INFO_H_
#define PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_CAPTURE_DEVICE_INFO_H_
#include <stri... | plugins/packages/camera/camera_windows/windows/capture_device_info.h/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/capture_device_info.h",
"repo_id": "plugins",
"token_count": 465
} | 1,232 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_TEST_MOCKS_H_
#define PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_TEST_MOCKS_H_
#include <flutter/method_call.h>... | plugins/packages/camera/camera_windows/windows/test/mocks.h/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/test/mocks.h",
"repo_id": "plugins",
"token_count": 12733
} | 1,233 |
// 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 androidx.test.espresso.flutter.action;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preco... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/action/ActionUtil.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/action/ActionUtil.java",
"repo_id": "plugins",
"token_count": 1393
} | 1,234 |
// 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 androidx.test.espresso.flutter.assertion;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.hamcrest.MatcherAsser... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/assertion/FlutterAssertions.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/assertion/FlutterAssertions.java",
"repo_id": "plugins",
"token_count": 448
} | 1,235 |
// 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 androidx.test.espresso.flutter.internal.protocol.impl;
/** Represents an exception/error relevant to Dart VM service. */
public final class Flutte... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/FlutterProtocolException.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/protocol/impl/FlutterProtocolException.java",
"repo_id": "plugins",
"token_count": 172
} | 1,236 |
// 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 androidx.test.espresso.flutter.matcher;
import static com.google.common.base.Preconditions.checkNotNull;
import androidx.test.espresso.flutter.ap... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/matcher/WithTooltipMatcher.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/matcher/WithTooltipMatcher.java",
"repo_id": "plugins",
"token_count": 455
} | 1,237 |
## NEXT
* Updates example code for `use_build_context_synchronously` lint.
* Updates minimum Flutter version to 3.0.
## 0.9.2+2
* Improves API docs and examples.
* Changes XTypeGroup initialization from final to const.
* Updates minimum Flutter version to 2.10.
## 0.9.2
* Adds an endorsed iOS implementation.
## 0... | plugins/packages/file_selector/file_selector/CHANGELOG.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 582
} | 1,238 |
// 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_selector/file_selector.dart';
import 'package:file_selector_platform_interface/file_selector_platform_interface.dart';
import 'package... | plugins/packages/file_selector/file_selector/test/file_selector_test.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector/test/file_selector_test.dart",
"repo_id": "plugins",
"token_count": 3711
} | 1,239 |
// 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 (v3.2.5), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h>
@protocol Flutte... | plugins/packages/file_selector/file_selector_ios/ios/Classes/messages.g.h/0 | {
"file_path": "plugins/packages/file_selector/file_selector_ios/ios/Classes/messages.g.h",
"repo_id": "plugins",
"token_count": 553
} | 1,240 |
## NEXT
* Updates example code for `use_build_context_synchronously` lint.
* Updates minimum Flutter version to 3.0.
## 0.9.0+4
* Converts platform channel to Pigeon.
## 0.9.0+3
* Changes XTypeGroup initialization from final to const.
## 0.9.0+2
* Updates imports for `prefer_relative_imports`.
* Updates minimum ... | plugins/packages/file_selector/file_selector_macos/CHANGELOG.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector_macos/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 457
} | 1,241 |
name: file_selector_platform_interface
description: A common platform interface for the file_selector plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/file_selector_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+f... | plugins/packages/file_selector/file_selector_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/file_selector/file_selector_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 288
} | 1,242 |
// 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:file_selector_platform_interface/file_selector_platform_interface.dart';
import 'package:flutter/foundation.dart' sho... | plugins/packages/file_selector/file_selector_web/lib/file_selector_web.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector_web/lib/file_selector_web.dart",
"repo_id": "plugins",
"token_count": 775
} | 1,243 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_TEST_TEST_UTILS_H_
#define PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_TEST_TEST_UTILS... | plugins/packages/file_selector/file_selector_windows/windows/test/test_utils.h/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/windows/test/test_utils.h",
"repo_id": "plugins",
"token_count": 930
} | 1,244 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.googlemaps">
</manifest>
| plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 45
} | 1,245 |
// 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 google_maps_flutter_ios;
@import google_maps_flutter_ios.Test;
@import XCTest;
@import MapKit;
@import GoogleMaps;
#import <OCMock/OCMock.h>
#impo... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerTests/FLTGoogleMapJSONConversionsConversionTests.m/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerTests/FLTGoogleMapJSONConversionsConversionTests.m",
"repo_id": "plugins",
"token_count": 4271
} | 1,246 |
// 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 <GoogleMaps/GoogleMaps.h>
#import "GoogleMapCircleController.h"
#import "GoogleMapController.h"
#import "GoogleMapMarke... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapsPlugin.h/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapsPlugin.h",
"repo_id": "plugins",
"token_count": 169
} | 1,247 |
// 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:ui' show Offset;
import 'package:flutter/foundation.dart';
import 'types.dart';
/// The position of the map "camera", the view point from w... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/camera.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/camera.dart",
"repo_id": "plugins",
"token_count": 2161
} | 1,248 |
name: google_maps_flutter_platform_interface
description: A common platform interface for the google_maps_flutter plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/google_maps_flutter/google_maps_flutter_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 304
} | 1,249 |
// 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.
part of google_maps_flutter_web;
/// The `PolygonController` class wraps a [gmaps.Polyline] and its `onTap` behavior.
class PolylineController {
/// Cre... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/polyline.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/polyline.dart",
"repo_id": "plugins",
"token_count": 533
} | 1,250 |
# google_sign_in_example
Demonstrates how to use the google_sign_in plugin.
| plugins/packages/google_sign_in/google_sign_in/example/README.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/example/README.md",
"repo_id": "plugins",
"token_count": 25
} | 1,251 |
// 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.googlesignin;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito... | plugins/packages/google_sign_in/google_sign_in_android/android/src/test/java/io/flutter/plugins/googlesignin/GoogleSignInTest.java/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/android/src/test/java/io/flutter/plugins/googlesignin/GoogleSignInTest.java",
"repo_id": "plugins",
"token_count": 5039
} | 1,252 |
name: google_sign_in_web_integration_tests
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
google_sign_in_web:
path: ../
dev_dependencies:
build_runner: ^2.1.1
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
google_id... | plugins/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 229
} | 1,253 |
# image_picker_example
Demonstrates how to use the image_picker plugin.
| plugins/packages/image_picker/image_picker/example/README.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker/example/README.md",
"repo_id": "plugins",
"token_count": 23
} | 1,254 |
{
"name": "image_picker example",
"short_name": "image_picker",
"start_url": ".",
"display": "minimal-ui",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "An example of the image_picker on the web.",
"orientation": "portrait-primary",
"prefer_related_applicat... | plugins/packages/image_picker/image_picker/example/web/manifest.json/0 | {
"file_path": "plugins/packages/image_picker/image_picker/example/web/manifest.json",
"repo_id": "plugins",
"token_count": 316
} | 1,255 |
// 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.Manifest;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import and... | plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java",
"repo_id": "plugins",
"token_count": 8380
} | 1,256 |
// 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:html' as html;
import 'dart:typed_data';
import 'package:flutter_test/flutter_test.dart';
import 'package:image_picker... | plugins/packages/image_picker/image_picker_for_web/example/integration_test/image_picker_for_web_test.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_for_web/example/integration_test/image_picker_for_web_test.dart",
"repo_id": "plugins",
"token_count": 2216
} | 1,257 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'image_picker_ios'
s.version = '0.0.1'
s.summary = 'Flutter plugin that shows an image picker.'
s.description = <<-DESC
A Flutter plugin for picking images fro... | plugins/packages/image_picker/image_picker_ios/ios/image_picker_ios.podspec/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/ios/image_picker_ios.podspec",
"repo_id": "plugins",
"token_count": 491
} | 1,258 |
// 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.
/// Specifies image-specific options for picking.
class ImageOptions {
/// Creates an instance with the given [maxHeight], [maxWidth], [imageQuality]
/... | plugins/packages/image_picker/image_picker_platform_interface/lib/src/types/image_options.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_platform_interface/lib/src/types/image_options.dart",
"repo_id": "plugins",
"token_count": 386
} | 1,259 |
// 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.
/// Captures an error from the underlying purchase platform.
///
/// The error can happen during the purchase, restoring a purchase, or querying product.
/... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/errors/in_app_purchase_error.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/errors/in_app_purchase_error.dart",
"repo_id": "plugins",
"token_count": 308
} | 1,260 |
// 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:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
void main() ... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/test/src/types/product_details_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/test/src/types/product_details_test.dart",
"repo_id": "plugins",
"token_count": 586
} | 1,261 |
// 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 "FIAPPaymentQueueDelegate.h"
#import "FIAObjectTranslator.h"
@interface FIAPPaymentQueueDelegate ()
@property(strong, nonatomic, readonly) Flutte... | plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPPaymentQueueDelegate.m/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPPaymentQueueDelegate.m",
"repo_id": "plugins",
"token_count": 1496
} | 1,262 |
# store_kit_wrappers
This exposes Dart endpoints through to the
[StoreKit](https://developer.apple.com/documentation/storekit) APIs. Can be used
as an alternative to [in_app_purchase](../in_app_purchase/README.md). | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md",
"repo_id": "plugins",
"token_count": 68
} | 1,263 |
// 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:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../../store_kit_wrappers.dart';
/// Apple AppStore s... | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/types/app_store_purchase_param.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/types/app_store_purchase_param.dart",
"repo_id": "plugins",
"token_count": 406
} | 1,264 |
// 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 "InAppPurchasePlugin.h"
#import <StoreKit/StoreKit.h>
#import "FIAObjectTranslator.h"
#import "FIAPPaymentQueueDelegate.h"
#import "FIAPReceiptMana... | plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/InAppPurchasePlugin.m/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/InAppPurchasePlugin.m",
"repo_id": "plugins",
"token_count": 7041
} | 1,265 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file exists solely to host compiled excerpts for README.md, and is not
// intended for use as an actual example application.
// ignore_for_file: p... | plugins/packages/local_auth/local_auth/example/lib/readme_excerpts.dart/0 | {
"file_path": "plugins/packages/local_auth/local_auth/example/lib/readme_excerpts.dart",
"repo_id": "plugins",
"token_count": 1879
} | 1,266 |
// 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.localauth;
import static android.app.Activity.RESULT_OK;
import static android.content.Context.KEYGUARD_SERVICE;
import androi... | plugins/packages/local_auth/local_auth_android/android/src/main/java/io/flutter/plugins/localauth/LocalAuthPlugin.java/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/android/src/main/java/io/flutter/plugins/localauth/LocalAuthPlugin.java",
"repo_id": "plugins",
"token_count": 3883
} | 1,267 |
// 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 <LocalAuthentication/LocalAuthentication.h>
#import "FLTLocalAuthPlugin.h"
@interface FLTLocalAuthPlugin ()
@property(nonatomic, copy, nullable) N... | plugins/packages/local_auth/local_auth_ios/ios/Classes/FLTLocalAuthPlugin.m/0 | {
"file_path": "plugins/packages/local_auth/local_auth_ios/ios/Classes/FLTLocalAuthPlugin.m",
"repo_id": "plugins",
"token_count": 5227
} | 1,268 |
name: local_auth_platform_interface
description: A common platform interface for the local_auth plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/local_auth/local_auth_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22... | plugins/packages/local_auth/local_auth_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/local_auth/local_auth_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 262
} | 1,269 |
# path_provider
[](https://pub.dev/packages/path_provider)
A Flutter plugin for finding commonly used locations on the filesystem.
Supports Android, iOS, Linux, macOS and Windows.
Not all methods are supported on all platforms.
| | Android | i... | plugins/packages/path_provider/path_provider/README.md/0 | {
"file_path": "plugins/packages/path_provider/path_provider/README.md",
"repo_id": "plugins",
"token_count": 612
} | 1,270 |
// 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:path_provider/p... | plugins/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart",
"repo_id": "plugins",
"token_count": 1456
} | 1,271 |
// 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 (v3.2.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
package io.flutter.plugins.pathprovider;
import ... | plugins/packages/path_provider/path_provider_android/android/src/main/java/io/flutter/plugins/pathprovider/Messages.java/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/android/src/main/java/io/flutter/plugins/pathprovider/Messages.java",
"repo_id": "plugins",
"token_count": 3903
} | 1,272 |
org.gradle.jvmargs=-Xmx4G
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/path_provider/path_provider_android/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,273 |
## NEXT
* Updates minimum supported Flutter version to 3.0.
## 2.1.1
* Fixes a regression in the path retured by `getApplicationSupportDirectory` on iOS.
## 2.1.0
* Renames the package previously published as
[`path_provider_macos`](https://pub.dev/packages/path_provider_macos)
* Adds iOS support.
| plugins/packages/path_provider/path_provider_foundation/CHANGELOG.md/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 99
} | 1,274 |
// 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_platform_interface/path_provider_platform... | plugins/packages/path_provider/path_provider_foundation/example/lib/main.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 1052
} | 1,275 |
#
# 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 ... | plugins/packages/path_provider/path_provider_foundation/ios/path_provider_foundation.podspec/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/ios/path_provider_foundation.podspec",
"repo_id": "plugins",
"token_count": 535
} | 1,276 |
## 2.1.8
* Adds compatibility with `xdg_directories` 1.0.
* Updates minimum Flutter version to 3.0.
## 2.1.7
* Bumps ffi dependency to match path_provider_windows.
## 2.1.6
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
lint warnings.
## 2.1.5
* Remov... | plugins/packages/path_provider/path_provider_linux/CHANGELOG.md/0 | {
"file_path": "plugins/packages/path_provider/path_provider_linux/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 646
} | 1,277 |
name: path_provider_platform_interface
description: A common platform interface for the path_provider plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/path_provider/path_provider_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+p... | plugins/packages/path_provider/path_provider_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/path_provider/path_provider_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 266
} | 1,278 |
// 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
private let elementWaitingTime: TimeInterval = 30
class RunnerUITests: XCTestCase {
private var exampleApp: XCUIApplication!
override... | plugins/packages/quick_actions/quick_actions_ios/example/ios/RunnerUITests/RunnerUITests.swift/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/example/ios/RunnerUITests/RunnerUITests.swift",
"repo_id": "plugins",
"token_count": 1137
} | 1,279 |
# quick_actions_platform_interface
A common platform interface for the [`quick_actions`][1] plugin.
This interface allows platform-specific implementations of the `quick_actions`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.
# Usage
To implement a new platform-specific impl... | plugins/packages/quick_actions/quick_actions_platform_interface/README.md/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_platform_interface/README.md",
"repo_id": "plugins",
"token_count": 240
} | 1,280 |
# shared_preferences_example
Demonstrates how to use the shared_preferences plugin.
| plugins/packages/shared_preferences/shared_preferences/example/README.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/example/README.md",
"repo_id": "plugins",
"token_count": 25
} | 1,281 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_prefere... | plugins/packages/shared_preferences/shared_preferences/example/lib/main.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 1143
} | 1,282 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.0.15
* Updates code for stricter lint checks.
## 2.0.14
* Fixes typo in `SharedPreferencesAndroid` docs.
* Updates code for `no_leading_underscores_for_local_identifiers` lint.
## 2.0.13
* Updates gradle to 7.2.2.
* Updates minimum Flutter version to 2.10.
... | plugins/packages/shared_preferences/shared_preferences_android/CHANGELOG.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 248
} | 1,283 |
# shared_preferences_platform_interface
A common platform interface for the [`shared_preferences`][1] plugin.
This interface allows platform-specific implementations of the `shared_preferences`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.
# Usage
To implement a new platfor... | plugins/packages/shared_preferences/shared_preferences_platform_interface/README.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_platform_interface/README.md",
"repo_id": "plugins",
"token_count": 251
} | 1,284 |
// 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.
// Provides a String-based alterantive to the Uri-based primary API.
//
// This is provided as a separate import because it's much easier to use
// incorre... | plugins/packages/url_launcher/url_launcher/lib/url_launcher_string.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher/lib/url_launcher_string.dart",
"repo_id": "plugins",
"token_count": 143
} | 1,285 |
// 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.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.flutte... | plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java",
"repo_id": "plugins",
"token_count": 891
} | 1,286 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
| plugins/packages/url_launcher/url_launcher_android/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,287 |
// 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:url_launcher_platform_interface/link.dart';
import 'package:url_launcher_plat... | plugins/packages/url_launcher/url_launcher_linux/lib/url_launcher_linux.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/lib/url_launcher_linux.dart",
"repo_id": "plugins",
"token_count": 550
} | 1,288 |
// 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:url_launcher_macos/url_launcher_macos.dart';
impor... | plugins/packages/url_launcher/url_launcher_macos/test/url_launcher_macos_test.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/test/url_launcher_macos_test.dart",
"repo_id": "plugins",
"token_count": 1980
} | 1,289 |
// 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 (v5.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#undef _HAS_EXCEPTIONS
#include "messages.g.h"
... | plugins/packages/url_launcher/url_launcher_windows/windows/messages.g.cpp/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_windows/windows/messages.g.cpp",
"repo_id": "plugins",
"token_count": 1958
} | 1,290 |
## Updating pigeon-generated files
If you update files in the pigeons/ directory, run the following
command in this directory:
```bash
flutter pub upgrade
flutter pub run pigeon --input pigeons/messages.dart
# git commit your changes so that your working environment is clean
(cd ../../../; ./script/tool_runner.sh for... | plugins/packages/video_player/video_player_android/CONTRIBUTING.md/0 | {
"file_path": "plugins/packages/video_player/video_player_android/CONTRIBUTING.md",
"repo_id": "plugins",
"token_count": 330
} | 1,291 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import AVFoundation;
@import video_player_avfoundation;
@import XCTest;
#import <OCMock/OCMock.h>
#import <video_player_avfoundation/AVAssetTrackUtils.h>... | plugins/packages/video_player/video_player_avfoundation/example/ios/RunnerTests/VideoPlayerTests.m/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/example/ios/RunnerTests/VideoPlayerTests.m",
"repo_id": "plugins",
"token_count": 4730
} | 1,292 |
// 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:flutter/widgets.dart';
import 'package:video_player_platform_interface/video_... | plugins/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart",
"repo_id": "plugins",
"token_count": 2023
} | 1,293 |
// 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:webview_flutter/webview_flutter.dart';
void main() => ... | plugins/packages/webview_flutter/webview_flutter/example/lib/simple_example.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/lib/simple_example.dart",
"repo_id": "plugins",
"token_count": 670
} | 1,294 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter/test/navigation_delegate_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8;
import 'package:mockito/mockito.dart' as _i1;
import 'package:webview_flutter_pl... | plugins/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart",
"repo_id": "plugins",
"token_count": 3091
} | 1,295 |
// 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 android.hardware.display.DisplayManager.DisplayListener;
import android.annotation.TargetApi;
im... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java",
"repo_id": "plugins",
"token_count": 2177
} | 1,296 |
// 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.net.Uri;
import android.os.Build;
import android.os.Message;
import android.webkit.ValueCallback... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientHostApiImpl.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientHostApiImpl.java",
"repo_id": "plugins",
"token_count": 2894
} | 1,297 |
// 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.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static or... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/JavaScriptChannelTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/JavaScriptChannelTest.java",
"repo_id": "plugins",
"token_count": 730
} | 1,298 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#106316)
// ignore: unnecessary_import
import 'dart:ty... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart",
"repo_id": "plugins",
"token_count": 9371
} | 1,299 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#104231)
// ignore: unnecessary_import
import 'dart:ty... | plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart",
"repo_id": "plugins",
"token_count": 14096
} | 1,300 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// A cookie that can be set globally for all web views
/// using [WebViewCookieManagerPlatform].
class WebViewCookie {
/// Constructs a new [WebViewCook... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/webview_cookie.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/webview_cookie.dart",
"repo_id": "plugins",
"token_count": 573
} | 1,301 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_platform_interface/test/webview_platform_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:mockito/mockito.dart' as _i1;
import 'package:webview_flutter_platform_interf... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart",
"repo_id": "plugins",
"token_count": 1888
} | 1,302 |
// 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 FWFUserContentControllerHostApiTests : XCTestCas... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUserContentControllerHostApiTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUserContentControllerHostApiTests.m",
"repo_id": "plugins",
"token_count": 2032
} | 1,303 |
// 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 "FLTWebViewFlutterPlugin.h"
#import "FWFGeneratedWebKitApis.h"
#import "FWFHTTPCookieStoreHostApi.h"
#import "FWFInstanceManager.h"
#import "FWFNav... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FLTWebViewFlutterPlugin.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FLTWebViewFlutterPlugin.m",
"repo_id": "plugins",
"token_count": 2272
} | 1,304 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import <WebKit/WebKit.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
#import "FWFObjectHostApi.h"
NS_A... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScriptMessageHandlerHostApi.h/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScriptMessageHandlerHostApi.h",
"repo_id": "plugins",
"token_count": 530
} | 1,305 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import '../common/instance_manager.dart';
import '../common/web_kit.g.da... | plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/web_kit/web_kit_api_impls.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/web_kit/web_kit_api_impls.dart",
"repo_id": "plugins",
"token_count": 11485
} | 1,306 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_wkwebview/test/src/foundation/foundation_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:mockito/mockito.dart' as _i1;
import 'package:webview_flutter_wkwebview/src/c... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart",
"repo_id": "plugins",
"token_count": 894
} | 1,307 |
# No integration tests to run:
- espresso
| plugins/script/configs/exclude_integration_android.yaml/0 | {
"file_path": "plugins/script/configs/exclude_integration_android.yaml",
"repo_id": "plugins",
"token_count": 11
} | 1,308 |
// 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:git/git.dart';
import 'package:pub_semver/pub_semver.dart';
import 'package:yaml/yaml.dart';
/// Finding diffs ba... | plugins/script/tool/lib/src/common/git_version_finder.dart/0 | {
"file_path": "plugins/script/tool/lib/src/common/git_version_finder.dart",
"repo_id": "plugins",
"token_count": 1456
} | 1,309 |
# Flutter samples
[](https://github.com/flutter/samples/actions?workflow=Main%20Branch%20CI)
A collection of open source samples that illustrate best practices for
[Flutter](https://flutter.dev).
## Visual samples index
The ea... | samples/README.md/0 | {
"file_path": "samples/README.md",
"repo_id": "samples",
"token_count": 461
} | 1,310 |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.... | samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_notifications_black_24dp.xml/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_notifications_black_24dp.xml",
"repo_id": "samples",
"token_count": 266
} | 1,311 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.