text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/behaviors/ball_spawn... | pinball/test/game/behaviors/ball_spawning_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/ball_spawning_behavior_test.dart",
"repo_id": "pinball",
"token_count": 1927
} | 1,239 |
// ignore_for_file: cascade_invocations, prefer_const_constructors
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart... | pinball/test/game/components/android_acres/behaviors/ramp_multiplier_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/android_acres/behaviors/ramp_multiplier_behavior_test.dart",
"repo_id": "pinball",
"token_count": 2342
} | 1,240 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/forge2d_game.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_compon... | pinball/test/game/components/bottom_group_test.dart/0 | {
"file_path": "pinball/test/game/components/bottom_group_test.dart",
"repo_id": "pinball",
"token_count": 1640
} | 1,241 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/components/sparky_s... | pinball/test/game/components/sparky_scorch/behaviors/sparky_computer_bonus_behavior_test.dart/0 | {
"file_path": "pinball/test/game/components/sparky_scorch/behaviors/sparky_computer_bonus_behavior_test.dart",
"repo_id": "pinball",
"token_count": 986
} | 1,242 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:pinball/leaderboard/models/leader_board_entry.dart';
import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('Leaderboard... | pinball/test/leaderboard/models/leader_board_entry_test.dart/0 | {
"file_path": "pinball/test/leaderboard/models/leader_board_entry_test.dart",
"repo_id": "pinball",
"token_count": 582
} | 1,243 |
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 macOS debug
script: .ci/scripts/build_all_plugins.sh
args: ["macos", "debug"]
- name: build all_plugins for macOS release
... | plugins/.ci/targets/macos_build_all_plugins.yaml/0 | {
"file_path": "plugins/.ci/targets/macos_build_all_plugins.yaml",
"repo_id": "plugins",
"token_count": 144
} | 1,244 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera;
import android.os.Handler;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotatio... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/DartMessenger.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/DartMessenger.java",
"repo_id": "plugins",
"token_count": 2302
} | 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.
package io.flutter.plugins.camera.features.focuspoint;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.params.MeteringRect... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/focuspoint/FocusPointFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/focuspoint/FocusPointFeature.java",
"repo_id": "plugins",
"token_count": 1073
} | 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.
package io.flutter.plugins.camera.features.exposurelock;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import st... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposurelock/ExposureLockFeatureTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/exposurelock/ExposureLockFeatureTest.java",
"repo_id": "plugins",
"token_count": 868
} | 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.
package io.flutter.plugins.camera.types;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class FlashModeTest {
@Test
pub... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/types/FlashModeTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/types/FlashModeTest.java",
"repo_id": "plugins",
"token_count": 523
} | 1,248 |
// 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';
class MethodChannelMock {
MethodChannelMock({
required Stri... | plugins/packages/camera/camera_android/test/method_channel_mock.dart/0 | {
"file_path": "plugins/packages/camera/camera_android/test/method_channel_mock.dart",
"repo_id": "plugins",
"token_count": 496
} | 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.
package io.flutter.plugins.camerax;
import androidx.camera.core.CameraSelector;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugins... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraSelectorFlutterApiImpl.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraSelectorFlutterApiImpl.java",
"repo_id": "plugins",
"token_count": 254
} | 1,250 |
// 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/DeviceOrientationManagerTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/DeviceOrientationManagerTest.java",
"repo_id": "plugins",
"token_count": 4584
} | 1,251 |
name: camera_android_camerax_example
description: Demonstrates how to use the camera_android_camerax plugin.
publish_to: 'none'
environment:
sdk: '>=2.17.0 <3.0.0'
flutter: ">=3.0.0"
dependencies:
camera_android_camerax:
# When depending on this package from a real application you should use:
# camera... | plugins/packages/camera/camera_android_camerax/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 293
} | 1,252 |
// Mocks generated by Mockito 5.3.2 from annotations
// in camera_android_camerax/test/system_services_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:camera_android_camerax/src/camerax_library.g.dart' as _i4;
im... | plugins/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart",
"repo_id": "plugins",
"token_count": 852
} | 1,253 |
// 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;
@import camera_avfoundation.Test;
@import AVFoundation;
@import XCTest;
#import <OCMock/OCMock.h>
#import "CameraTestUtils.h"
... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPermissionTests.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/CameraPermissionTests.m",
"repo_id": "plugins",
"token_count": 3701
} | 1,254 |
// 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;
@import XCTest;
#import <OCMock/OCMock.h>
@interface ThreadSafeMethodChannelTests : XCTestCase
@end
@implementation ThreadSa... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/ThreadSafeMethodChannelTests.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/ThreadSafeMethodChannelTests.m",
"repo_id": "plugins",
"token_count": 668
} | 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.
@import AVFoundation;
@import Foundation;
@import Flutter;
#import "CameraProperties.h"
#import "FLTThreadSafeEventChannel.h"
#import "FLTThreadSafeFlutte... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTCam.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTCam.h",
"repo_id": "plugins",
"token_count": 1639
} | 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 'package:flutter/foundation.dart' show immutable;
import '../../camera_platform_interface.dart';
/// Generic Event coming from the native side of ... | plugins/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart",
"repo_id": "plugins",
"token_count": 3178
} | 1,257 |
name: camera_platform_interface
description: A common platform interface for the camera plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
# NOTE: We strongly... | plugins/packages/camera/camera_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 275
} | 1,258 |
name: camera_web_integration_tests
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
async: ^2.5.0
camera_platform_interface: ^2.1.0
camera_web:
path: ../
cross_file: ^0.3.1
flutter_driver:
sdk: flutter
flutter_... | plugins/packages/camera/camera_web/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/camera/camera_web/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 190
} | 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.
/// A kind of a media device.
///
/// See: https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/kind
abstract class MediaDeviceKind {
/// A v... | plugins/packages/camera/camera_web/lib/src/types/media_device_kind.dart/0 | {
"file_path": "plugins/packages/camera/camera_web/lib/src/types/media_device_kind.dart",
"repo_id": "plugins",
"token_count": 158
} | 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 'dart:async';
import 'package:async/async.dart';
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/... | plugins/packages/camera/camera_windows/example/integration_test/camera_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_windows/example/integration_test/camera_test.dart",
"repo_id": "plugins",
"token_count": 1112
} | 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.
#ifndef PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_CAPTURE_CONTROLLER_H_
#define PACKAGES_CAMERA_CAMERA_WINDOWS_WINDOWS_CAPTURE_CONTROLLER_H_
#include <d3d11.... | plugins/packages/camera/camera_windows/windows/capture_controller.h/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/capture_controller.h",
"repo_id": "plugins",
"token_count": 3256
} | 1,262 |
// 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 "camera_plugin.h"
#include <flutter/method_call.h>
#include <flutter/method_result_functions.h>
#include <flutter/standard_method_codec.h>
#inclu... | plugins/packages/camera/camera_windows/windows/test/camera_plugin_test.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/test/camera_plugin_test.cpp",
"repo_id": "plugins",
"token_count": 14997
} | 1,263 |
rootProject.name = 'espresso'
| plugins/packages/espresso/android/settings.gradle/0 | {
"file_path": "plugins/packages/espresso/android/settings.gradle",
"repo_id": "plugins",
"token_count": 10
} | 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.
package androidx.test.espresso.flutter.api;
import android.view.View;
import androidx.test.espresso.UiController;
import com.google.common.annotations.Bet... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/WidgetAction.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/WidgetAction.java",
"repo_id": "plugins",
"token_count": 523
} | 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.
package androidx.test.espresso.flutter.internal.jsonrpc.message;
import static com.google.common.base.Preconditions.checkArgument;
import static com.googl... | plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/JsonRpcResponse.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/JsonRpcResponse.java",
"repo_id": "plugins",
"token_count": 1437
} | 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 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/IsDescendantOfMatcher.java/0 | {
"file_path": "plugins/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/matcher/IsDescendantOfMatcher.java",
"repo_id": "plugins",
"token_count": 783
} | 1,267 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.espresso_example">
<application
android:label="espresso_example"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
... | plugins/packages/espresso/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/espresso/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 479
} | 1,268 |
// 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 "FFSFileSelectorPlugin.h"
#import "messages.g.h"
// This header is available in the Test module. Import via "@import file_selector_ios.Test;".
@i... | plugins/packages/file_selector/file_selector_ios/ios/Classes/FFSFileSelectorPlugin_Test.h/0 | {
"file_path": "plugins/packages/file_selector/file_selector_ios/ios/Classes/FFSFileSelectorPlugin_Test.h",
"repo_id": "plugins",
"token_count": 210
} | 1,269 |
## NEXT
* Updates example code for `use_build_context_synchronously` lint.
* Updates minimum Flutter version to 3.0.
## 0.9.1
* Adds `getDirectoryPaths` implementation.
## 0.9.0+1
* Changes XTypeGroup initialization from final to const.
* Updates minimum Flutter version to 2.10.
## 0.9.0
* Moves source to flutte... | plugins/packages/file_selector/file_selector_linux/CHANGELOG.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector_linux/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 189
} | 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 FlutterMacOS
import Foundation
/// Protocol for showing panels, allowing for depenedency injection in tests.
protocol PanelController {
/// Displ... | plugins/packages/file_selector/file_selector_macos/macos/Classes/FileSelectorPlugin.swift/0 | {
"file_path": "plugins/packages/file_selector/file_selector_macos/macos/Classes/FileSelectorPlugin.swift",
"repo_id": "plugins",
"token_count": 1904
} | 1,271 |
// Mocks generated by Mockito 5.2.0 from annotations
// in file_selector_windows/example/windows/flutter/ephemeral/.plugin_symlinks/file_selector_windows/test/file_selector_windows_test.dart.
// Do not manually edit this file.
import 'package:file_selector_windows/src/messages.g.dart' as _i3;
import 'package:mockito/m... | plugins/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart",
"repo_id": "plugins",
"token_count": 663
} | 1,272 |
// 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_FILE_DIALOG_CONTROLLER_H_
#define PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOW... | plugins/packages/file_selector/file_selector_windows/windows/test/test_file_dialog_controller.h/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/windows/test/test_file_dialog_controller.h",
"repo_id": "plugins",
"token_count": 1187
} | 1,273 |
// 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.flutter_plugin_android_lifecycle;
import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugi... | plugins/packages/flutter_plugin_android_lifecycle/android/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle/FlutterAndroidLifecyclePlugin.java/0 | {
"file_path": "plugins/packages/flutter_plugin_android_lifecycle/android/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle/FlutterAndroidLifecyclePlugin.java",
"repo_id": "plugins",
"token_count": 279
} | 1,274 |
# google_maps_flutter_example
Demonstrates how to use the google_maps_flutter plugin.
| plugins/packages/google_maps_flutter/google_maps_flutter/example/README.md/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/example/README.md",
"repo_id": "plugins",
"token_count": 27
} | 1,275 |
org.gradle.jvmargs=-Xmx4G
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/google_maps_flutter/google_maps_flutter/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,276 |
// 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:google_maps_flutter/google_maps_flutter.dart';
import '... | plugins/packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart",
"repo_id": "plugins",
"token_count": 1104
} | 1,277 |
# google\_maps\_flutter\_android
<?code-excerpt path-base="excerpts/packages/google_maps_flutter_example"?>
The Android implementation of [`google_maps_flutter`][1].
## Usage
This package is [endorsed][2], which means you can simply use
`google_maps_flutter` normally. This package will be automatically included in
... | plugins/packages/google_maps_flutter/google_maps_flutter_android/README.md/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/README.md",
"repo_id": "plugins",
"token_count": 854
} | 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.
package io.flutter.plugins.googlemaps;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.TileOverlay;
import com.goog... | plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/TileOverlaysController.java/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/TileOverlaysController.java",
"repo_id": "plugins",
"token_count": 1380
} | 1,279 |
// 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 'package:google_maps_flutter_platform_interface/google_maps_flutte... | plugins/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart",
"repo_id": "plugins",
"token_count": 1392
} | 1,280 |
// 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 "FLTGoogleMapJSONConversions.h"
@implementation FLTGoogleMapJSONConversions
+ (CLLocationCoordinate2D)locationFromLatLong:(NSArray *)latlong {
... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapJSONConversions.m/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapJSONConversions.m",
"repo_id": "plugins",
"token_count": 2137
} | 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.
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import '../../google_maps_flutter_platform_interface.dart';
/// The interface ... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/platform_interface/google_maps_inspector_platform.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/platform_interface/google_maps_inspector_platform.dart",
"repo_id": "plugins",
"token_count": 1333
} | 1,282 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show immutable;
/// Item used in the stroke pattern for a Polyline.
@immutable
class PatternItem {
const Patter... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/pattern_item.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/pattern_item.dart",
"repo_id": "plugins",
"token_count": 311
} | 1,283 |
// 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 '../types.dart';
import 'maps_object.dart';
/// Converts an [Iterable] of Polygons in a Map of PolygonId -> Polygon.
Map<PolygonId, Polygon> keyByP... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/utils/polygon.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/utils/polygon.dart",
"repo_id": "plugins",
"token_count": 190
} | 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.
const String iconImageBase64 =
'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIRlWElmTU'
'0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAAB... | plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart",
"repo_id": "plugins",
"token_count": 1402
} | 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.
part of google_maps_flutter_web;
/// This class manages a set of [MarkerController]s associated to a [GoogleMapController].
class MarkersController extend... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart",
"repo_id": "plugins",
"token_count": 2279
} | 1,286 |
## 6.0.0
* **Breaking change** for platform `web`:
* Endorses `google_sign_in_web: ^0.11.0` as the web implementation of the plugin.
* The web package is now backed by the **Google Identity Services (GIS) SDK**,
instead of the **Google Sign-In for Web JS SDK**, which is set to be deprecated
after March 3... | plugins/packages/google_sign_in/google_sign_in/CHANGELOG.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 3982
} | 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:typed_data';
import 'package:flutter/material.dart';
import 'src/common.dart';
import 'src/fife.dart' as fife;
/// Builds a CircleAvatar pr... | plugins/packages/google_sign_in/google_sign_in/lib/widgets.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/lib/widgets.dart",
"repo_id": "plugins",
"token_count": 1658
} | 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.
package io.flutter.plugins.googlesignin;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.Executor;
/**
* Factory and ut... | plugins/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java",
"repo_id": "plugins",
"token_count": 301
} | 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.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_sign_in_android/google_sign_in_android.dart... | plugins/packages/google_sign_in/google_sign_in_android/test/google_sign_in_android_test.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/test/google_sign_in_android_test.dart",
"repo_id": "plugins",
"token_count": 2295
} | 1,290 |
// 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 "FLTGoogleSignInPlugin.h"
#import "FLTGoogleSignInPlugin_Test.h"
#import <GoogleSignIn/GoogleSignIn.h>
// The key within `GoogleService-Info.plis... | plugins/packages/google_sign_in/google_sign_in_ios/ios/Classes/FLTGoogleSignInPlugin.m/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_ios/ios/Classes/FLTGoogleSignInPlugin.m",
"repo_id": "plugins",
"token_count": 5726
} | 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 '../google_sign_in_platform_interface.dart';
/// Converts user data coming from native code into the proper platform interface type.
GoogleSignInUs... | plugins/packages/google_sign_in/google_sign_in_platform_interface/lib/src/utils.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_platform_interface/lib/src/utils.dart",
"repo_id": "plugins",
"token_count": 333
} | 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.
const String expectedPersonId = '1234567890';
const String expectedPersonName = 'Vincent Adultman';
const String expectedPersonEmail = 'adultman@example.co... | plugins/packages/google_sign_in/google_sign_in_web/example/integration_test/src/person.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_web/example/integration_test/src/person.dart",
"repo_id": "plugins",
"token_count": 715
} | 1,293 |
## 0.8.6+2
* Updates `NSPhotoLibraryUsageDescription` description in README.
* Updates minimum Flutter version to 3.0.
## 0.8.6+1
* Updates code for stricter lint checks.
## 0.8.6
* Updates minimum Flutter version to 2.10.
* Fixes avoid_redundant_argument_values lint warnings and minor typos.
* Adds `requestFullM... | plugins/packages/image_picker/image_picker/CHANGELOG.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 5753
} | 1,294 |
// 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.util.Log;
import androidx.exifinterface.media.ExifInterface;
import java.util.Arrays;
import java.u... | plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ExifDataCopier.java/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ExifDataCopier.java",
"repo_id": "plugins",
"token_count": 759
} | 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.
#import <XCTest/XCTest.h>
#import <os/log.h>
const int kElementWaitingTime = 30;
@interface ImagePickerFromGalleryUITests : XCTestCase
@property(nonatom... | plugins/packages/image_picker/image_picker_ios/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m",
"repo_id": "plugins",
"token_count": 3813
} | 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.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import '../../image_picker_platform_interface.dart... | plugins/packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart",
"repo_id": "plugins",
"token_count": 3275
} | 1,297 |
name: image_picker_platform_interface
description: A common platform interface for the image_picker plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/image_picker/image_picker_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image... | plugins/packages/image_picker/image_picker_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/image_picker/image_picker_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 280
} | 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.
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:in_app_purchase/in_app_purchase.dart';
import 'package:in_a... | plugins/packages/in_app_purchase/in_app_purchase/example/lib/main.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 7723
} | 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.
package io.flutter.plugins.inapppurchase;
import android.content.Context;
import com.android.billingclient.api.BillingClient;
import io.flutter.plugin.com... | plugins/packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/BillingClientFactoryImpl.java/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/BillingClientFactoryImpl.java",
"repo_id": "plugins",
"token_count": 202
} | 1,300 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.inapppurchaseexample">
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
to allow setting breakpoints, to provide... | plugins/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 477
} | 1,301 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:in_app_purchase_android/billing_client_wrapp... | plugins/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 7581
} | 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 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../../billing_client_wrappers.dart';
/// The class r... | plugins/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart",
"repo_id": "plugins",
"token_count": 596
} | 1,303 |
# in_app_purchase_platform_interface
A common platform interface for the [`in_app_purchase`][1] plugin.
This interface allows platform-specific implementations of the `in_app_purchase`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.
# Usage
To implement a new platform-specifi... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/README.md/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/README.md",
"repo_id": "plugins",
"token_count": 368
} | 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 'package:flutter_test/flutter_test.dart';
import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import 'packa... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/test/in_app_purchase_platform_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/test/in_app_purchase_platform_test.dart",
"repo_id": "plugins",
"token_count": 2494
} | 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 "FIAPRequestHandler.h"
#import <StoreKit/StoreKit.h>
#pragma mark - Main Handler
@interface FIAPRequestHandler () <SKProductsRequestDelegate>
@p... | plugins/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/FIAPRequestHandler.m/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/FIAPRequestHandler.m",
"repo_id": "plugins",
"token_count": 442
} | 1,306 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <XCTest/XCTest.h>
@import in_app_purchase_storekit;
@interface FIATransactionCacheTests : XCTestCase
@end
@implementation FIATransactionCacheTe... | plugins/packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/FIATransactionCacheTests.m/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/FIATransactionCacheTests.m",
"repo_id": "plugins",
"token_count": 843
} | 1,307 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface FIAObjectTranslator : NSObject
// Converts an instanc... | plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAObjectTranslator.h/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAObjectTranslator.h",
"repo_id": "plugins",
"token_count": 849
} | 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 'package:flutter/services.dart';
/// Method channel for the plugin's platform<-->Dart calls.
const MethodChannel channel =
MethodChannel('plugi... | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/channel.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/channel.dart",
"repo_id": "plugins",
"token_count": 155
} | 1,309 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'sk_storefront_wrapper.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SKStorefrontWrapper _$SKStorefrontWrapperFromJson(Ma... | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/sk_storefront_wrapper.g.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/sk_storefront_wrapper.g.dart",
"repo_id": "plugins",
"token_count": 201
} | 1,310 |
// 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.
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, TransactionCacheKey) {
TransactionCacheKeyUpdatedDownloads,
TransactionCacheKeyUpdatedTransactions... | plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/FIATransactionCache.h/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/FIATransactionCache.h",
"repo_id": "plugins",
"token_count": 262
} | 1,311 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import ios_platform_images;
@import XCTest;
@interface IosPlatformImagesTests : XCTestCase
@end
@implementation IosPlatformImagesTests
- (void)testPlug... | plugins/packages/ios_platform_images/example/ios/RunnerTests/IosPlatformImagesTests.m/0 | {
"file_path": "plugins/packages/ios_platform_images/example/ios/RunnerTests/IosPlatformImagesTests.m",
"repo_id": "plugins",
"token_count": 135
} | 1,312 |
include ':app'
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withInputStream { stream -> plugins.load(stream) }
}
plugins.each { name, path ->
... | plugins/packages/local_auth/local_auth/example/android/settings.gradle/0 | {
"file_path": "plugins/packages/local_auth/local_auth/example/android/settings.gradle",
"repo_id": "plugins",
"token_count": 151
} | 1,313 |
rootProject.name = 'local_auth'
| plugins/packages/local_auth/local_auth_android/android/settings.gradle/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/android/settings.gradle",
"repo_id": "plugins",
"token_count": 11
} | 1,314 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
/// Options wrapper for [LocalAuthPlatform.authenticate] parameters.
@immutable
class AuthenticationOptions {
... | plugins/packages/local_auth/local_auth_platform_interface/lib/types/auth_options.dart/0 | {
"file_path": "plugins/packages/local_auth/local_auth_platform_interface/lib/types/auth_options.dart",
"repo_id": "plugins",
"token_count": 658
} | 1,315 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:local_auth_platform_interface/local_auth_platform_interface.dart';
import 'src/messages.g.dart';... | plugins/packages/local_auth/local_auth_windows/lib/local_auth_windows.dart/0 | {
"file_path": "plugins/packages/local_auth/local_auth_windows/lib/local_auth_windows.dart",
"repo_id": "plugins",
"token_count": 678
} | 1,316 |
org.gradle.jvmargs=-Xmx4G
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/path_provider/path_provider/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/path_provider/path_provider/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,317 |
group 'io.flutter.plugins.pathprovider'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
... | plugins/packages/path_provider/path_provider_android/android/build.gradle/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/android/build.gradle",
"repo_id": "plugins",
"token_count": 543
} | 1,318 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:path_provider_android/messages.g.dart' as messages;
import 'package:path_provider_android/... | plugins/packages/path_provider/path_provider_android/test/path_provider_android_test.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/test/path_provider_android_test.dart",
"repo_id": "plugins",
"token_count": 1081
} | 1,319 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import Foundation
#if os(iOS)
import Flutter
#elseif os(macOS)
import FlutterMacOS
#endif
public class PathProviderPlugin: NSObject, FlutterPlugin, PathP... | plugins/packages/path_provider/path_provider_foundation/ios/Classes/PathProviderPlugin.swift/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/ios/Classes/PathProviderPlugin.swift",
"repo_id": "plugins",
"token_count": 710
} | 1,320 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'src/enums.dart';
import 'src/method_channel_path_provider.dart';
expor... | plugins/packages/path_provider/path_provider_platform_interface/lib/path_provider_platform_interface.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_platform_interface/lib/path_provider_platform_interface.dart",
"repo_id": "plugins",
"token_count": 1057
} | 1,321 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library plugin_platform_interface;
import 'package:meta/meta.dart';
/// Base class for platform interfaces.
///
/// Provides a static helper method for e... | plugins/packages/plugin_platform_interface/lib/plugin_platform_interface.dart/0 | {
"file_path": "plugins/packages/plugin_platform_interface/lib/plugin_platform_interface.dart",
"repo_id": "plugins",
"token_count": 1389
} | 1,322 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:quick_actions_platform_interface/platform_interface/quick_actions_platform.dart';
import 'package:quick_actions_platf... | plugins/packages/quick_actions/quick_actions/lib/quick_actions.dart/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions/lib/quick_actions.dart",
"repo_id": "plugins",
"token_count": 320
} | 1,323 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@testable import quick_actions_ios
final class MockShortcutItemProvider: ShortcutItemProviding {
var shortcutItems: [UIApplicationShortcutItem]? = nil
}... | plugins/packages/quick_actions/quick_actions_ios/example/ios/RunnerTests/Mocks/MockShortcutItemProvider.swift/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/example/ios/RunnerTests/Mocks/MockShortcutItemProvider.swift",
"repo_id": "plugins",
"token_count": 88
} | 1,324 |
# Shared preferences plugin
[](https://pub.dev/packages/shared_preferences)
Wraps platform-specific persistent storage for simple data
(NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.).
Data may be persisted to disk asynchronously,... | plugins/packages/shared_preferences/shared_preferences/README.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/README.md",
"repo_id": "plugins",
"token_count": 863
} | 1,325 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| plugins/packages/shared_preferences/shared_preferences/example/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/example/macos/Runner/Configs/Release.xcconfig",
"repo_id": "plugins",
"token_count": 32
} | 1,326 |
name: shared_preferences
description: Flutter plugin for reading and writing simple key-value pairs.
Wraps NSUserDefaults on iOS and SharedPreferences on Android.
repository: https://github.com/flutter/plugins/tree/main/packages/shared_preferences/shared_preferences
issue_tracker: https://github.com/flutter/flutter/i... | plugins/packages/shared_preferences/shared_preferences/pubspec.yaml/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/pubspec.yaml",
"repo_id": "plugins",
"token_count": 522
} | 1,327 |
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
go... | plugins/packages/shared_preferences/shared_preferences_android/example/android/build.gradle/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/example/android/build.gradle",
"repo_id": "plugins",
"token_count": 258
} | 1,328 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v5.0.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
import Foundation
#if os(iOS)
import Flutter
#els... | plugins/packages/shared_preferences/shared_preferences_foundation/darwin/Classes/messages.g.swift/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_foundation/darwin/Classes/messages.g.swift",
"repo_id": "plugins",
"token_count": 1452
} | 1,329 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| plugins/packages/shared_preferences/shared_preferences_foundation/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_foundation/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "plugins",
"token_count": 32
} | 1,330 |
name: shared_preferences_web_integration_tests
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
shared_preferences_platform_interface: ^2.0.0
shared_preferences_web:
path: ../
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_t... | plugins/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 179
} | 1,331 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Run this example with: flutter run -t lib/files.dart -d linux
// This file is used to extract code samples for the README.md file.
// Run update-excerp... | plugins/packages/url_launcher/url_launcher/example/lib/files.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher/example/lib/files.dart",
"repo_id": "plugins",
"token_count": 509
} | 1,332 |
// 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:url_launcher_platform_interface/url_launcher_platform_interface.dart';
import 'type_conversion.dart';
import 'types.dart';
/// String ver... | plugins/packages/url_launcher/url_launcher/lib/src/url_launcher_string.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher/lib/src/url_launcher_string.dart",
"repo_id": "plugins",
"token_count": 670
} | 1,333 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.urllauncher">
<application>
<activity android:name="io.flutter.plugins.urllauncher.WebViewActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:exported="false"/>
</application>
... | plugins/packages/url_launcher/url_launcher_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 120
} | 1,334 |
# url\_launcher\_ios
The iOS 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.
[1]: https://pub.dev/packages/url_launcher
[2]: https://flutter.dev/docs/developmen... | plugins/packages/url_launcher/url_launcher_ios/README.md/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_ios/README.md",
"repo_id": "plugins",
"token_count": 123
} | 1,335 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:url_launcher_platform_interface/u... | plugins/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart",
"repo_id": "plugins",
"token_count": 262
} | 1,336 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import FlutterMacOS
import Foundation
/// A handler that can launch other apps, check if any app is able to open the URL.
public protocol SystemURLHandler... | plugins/packages/url_launcher/url_launcher_macos/macos/Classes/UrlLauncherPlugin.swift/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/macos/Classes/UrlLauncherPlugin.swift",
"repo_id": "plugins",
"token_count": 834
} | 1,337 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:url_launcher_platform_interface/link.dart';
import 'package:url_launcher_platform_interfac... | plugins/packages/url_launcher/url_launcher_platform_interface/test/url_launcher_platform_test.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_platform_interface/test/url_launcher_platform_test.dart",
"repo_id": "plugins",
"token_count": 1414
} | 1,338 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.