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 'package:share_repository/share_repository.dart';
import 'package:test/test.dart';
void main() {
group('ShareRepository', () {
const appUrl = 'https://fakeurl.com/';
late ShareRepository shareRepository;
setUp(() {
shareRepository = ShareReposit... | pinball/packages/share_repository/test/src/share_repository_test.dart/0 | {
"file_path": "pinball/packages/share_repository/test/src/share_repository_test.dart",
"repo_id": "pinball",
"token_count": 546
} | 1,125 |
// ignore_for_file: cascade_invocations
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/behaviors/behaviors.dart';
import 'package:pinball_audio/pinball... | pinball/test/game/behaviors/rollover_noise_behavior_test.dart/0 | {
"file_path": "pinball/test/game/behaviors/rollover_noise_behavior_test.dart",
"repo_id": "pinball",
"token_count": 608
} | 1,126 |
// ignore_for_file: cascade_invocations
import 'package:flame/game.dart';
import 'package:flame/input.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mock... | pinball/test/game/components/backbox/displays/game_over_info_display_test.dart/0 | {
"file_path": "pinball/test/game/components/backbox/displays/game_over_info_display_test.dart",
"repo_id": "pinball",
"token_count": 2406
} | 1,127 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/start_game/bloc/start_game_bloc.dart';
import '../../../helpers/helpers.dart';
class _MockStartGameBloc extends Mock imp... | pinball/test/game/view/widgets/play_button_overlay_test.dart/0 | {
"file_path": "pinball/test/game/view/widgets/play_button_overlay_test.dart",
"repo_id": "pinball",
"token_count": 491
} | 1,128 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/how_to_play/how_to_play.dart';
import 'package:pinball/select_character/select_cha... | pinball/test/start_game/widgets/start_game_listener_test.dart/0 | {
"file_path": "pinball/test/start_game/widgets/start_game_listener_test.dart",
"repo_id": "pinball",
"token_count": 3562
} | 1,129 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import androi... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java",
"repo_id": "plugins",
"token_count": 15624
} | 1,130 |
// Copyright 2013 The Flutter 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.autofocus;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CaptureReques... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/autofocus/AutoFocusFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/autofocus/AutoFocusFeature.java",
"repo_id": "plugins",
"token_count": 959
} | 1,131 |
// Copyright 2013 The Flutter 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.zoomlevel;
import android.graphics.Rect;
import android.hardware.camera2.CaptureRequest;
import android.os.Buil... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/zoomlevel/ZoomLevelFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/zoomlevel/ZoomLevelFeature.java",
"repo_id": "plugins",
"token_count": 1190
} | 1,132 |
// Copyright 2013 The Flutter 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.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraTest.java",
"repo_id": "plugins",
"token_count": 13087
} | 1,133 |
// Copyright 2013 The Flutter 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;
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/noisereduction/NoiseReductionFeatureTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/features/noisereduction/NoiseReductionFeatureTest.java",
"repo_id": "plugins",
"token_count": 1794
} | 1,134 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.cameraexample">
<application
android:icon="@mipmap/ic_launcher"
android:label="camera_example">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
... | plugins/packages/camera/camera_android/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/camera/camera_android/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 379
} | 1,135 |
group 'io.flutter.plugins.camerax'
version '1.0'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugi... | plugins/packages/camera/camera_android_camerax/android/build.gradle/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/build.gradle",
"repo_id": "plugins",
"token_count": 757
} | 1,136 |
// Copyright 2013 The Flutter 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.lifecycle.ProcessCameraProvider;
import io.flutter.plugin.common.BinaryMessenger;
import io.flu... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProcessCameraProviderFlutterApiImpl.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProcessCameraProviderFlutterApiImpl.java",
"repo_id": "plugins",
"token_count": 246
} | 1,137 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/camera/camera_android_camerax/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 30
} | 1,138 |
// Copyright 2013 The Flutter 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 'android_camera_camerax_flutter_api_impls.dart';
import 'camera_info.dart';
import 'camerax_library.g.dart'... | plugins/packages/camera/camera_android_camerax/lib/src/camera_selector.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/lib/src/camera_selector.dart",
"repo_id": "plugins",
"token_count": 2228
} | 1,139 |
// Mocks generated by Mockito 5.3.2 from annotations
// in camera_android_camerax/test/camera_selector_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 'test_camerax_library.g.dart' as _i2;
// ignore_for... | plugins/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart",
"repo_id": "plugins",
"token_count": 689
} | 1,140 |
// Copyright 2013 The Flutter 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>
@interface FLTSavePhotoDele... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/FLTSavePhotoDelegateTests.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/FLTSavePhotoDelegateTests.m",
"repo_id": "plugins",
"token_count": 2452
} | 1,141 |
// Copyright 2013 The Flutter 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;
#import <Flutter/Flutter.h>
typedef void (^FLTCameraPermissionRequestCompletionHandler)(FlutterError *);
/// Requests camera access p... | plugins/packages/camera/camera_avfoundation/ios/Classes/CameraPermissionUtils.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/CameraPermissionUtils.h",
"repo_id": "plugins",
"token_count": 370
} | 1,142 |
// Copyright 2013 The Flutter 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>
NS_ASSUME_NONNULL_BEGIN
/**
* A thread safe wrapper for FlutterResult that can be called from any thread, by dispatching its... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeFlutterResult.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeFlutterResult.h",
"repo_id": "plugins",
"token_count": 535
} | 1,143 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The possible exposure modes that can be set for a camera.
enum ExposureMode {
/// Automatically determine exposure settings.
auto,
/// Lock the ... | plugins/packages/camera/camera_platform_interface/lib/src/types/exposure_mode.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/lib/src/types/exposure_mode.dart",
"repo_id": "plugins",
"token_count": 277
} | 1,144 |
// Copyright 2013 The Flutter 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/camera/camera_platform_interface/test/types/camera_image_data_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/test/types/camera_image_data_test.dart",
"repo_id": "plugins",
"token_count": 538
} | 1,145 |
// Copyright 2013 The Flutter 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';
import 'dart:js_util' as js_util;
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter... | plugins/packages/camera/camera_web/example/integration_test/camera_service_test.dart/0 | {
"file_path": "plugins/packages/camera/camera_web/example/integration_test/camera_service_test.dart",
"repo_id": "plugins",
"token_count": 14752
} | 1,146 |
// Copyright 2013 The Flutter 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:js_util' as js_util;
/// A utility that shims dart:js_util to manipulate JavaScript interop objects.
class JsUtil {
/// Returns true if the... | plugins/packages/camera/camera_web/lib/src/shims/dart_js_util.dart/0 | {
"file_path": "plugins/packages/camera/camera_web/lib/src/shims/dart_js_util.dart",
"repo_id": "plugins",
"token_count": 178
} | 1,147 |
// Copyright 2013 The Flutter 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 "photo_handler.h"
#include <mfapi.h>
#include <mfcaptureengine.h>
#include <wincodec.h>
#include <cassert>
#include "capture_engine_listener.h"... | plugins/packages/camera/camera_windows/windows/photo_handler.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/photo_handler.cpp",
"repo_id": "plugins",
"token_count": 1525
} | 1,148 |
// Copyright 2013 The Flutter 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(tarrinneal): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#104231)
// ignore: unnecessary_import
import 'd... | plugins/packages/file_selector/file_selector/example/lib/save_text_page.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector/example/lib/save_text_page.dart",
"repo_id": "plugins",
"token_count": 1485
} | 1,149 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 0.9.0+2
* Changes XTypeGroup initialization from final to const.
## 0.9.0+1
* Updates imports for `prefer_relative_imports`.
* Updates minimum Flutter version to 2.10.
* Fixes avoid_redundant_argument_values lint warnings and minor typos.
## 0.9.0
* **BREAKING... | plugins/packages/file_selector/file_selector_web/CHANGELOG.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector_web/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 409
} | 1,150 |
// Copyright 2013 The Flutter 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';
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#104231)
// ignore: unnecessary_i... | plugins/packages/google_maps_flutter/google_maps_flutter/test/map_creation_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/test/map_creation_test.dart",
"repo_id": "plugins",
"token_count": 2734
} | 1,151 |
// Copyright 2013 The Flutter 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 CoreLocation;
@import XCTest;
@import os.log;
@interface GoogleMapsUITests : XCTestCase
@property(nonatomic, strong) XCUIApplication *app;
@end
@... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m",
"repo_id": "plugins",
"token_count": 3672
} | 1,152 |
// Copyright 2013 The Flutter 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, avoid_print
import 'dart:async';
import 'dart:convert' show json;
import 'package:flutter/material.dart';
imp... | plugins/packages/google_sign_in/google_sign_in/example/lib/main.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 1986
} | 1,153 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:html' as html;
import 'package:flutter/foundation.dart' show visibleForTesting, kDebugMode;
import 'package:flutter/serv... | plugins/packages/google_sign_in/google_sign_in_web/lib/google_sign_in_web.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_web/lib/google_sign_in_web.dart",
"repo_id": "plugins",
"token_count": 2109
} | 1,154 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.imagepickerexample">
<!-- Flutter needs internet permission to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="a... | plugins/packages/image_picker/image_picker/example/android/app/src/debug/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/image_picker/image_picker/example/android/app/src/debug/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 329
} | 1,155 |
// Mocks generated by Mockito 5.1.0 from annotations
// in image_picker/test/image_picker_test.dart.
// Do not manually edit this file.
import 'dart:async' as _i4;
import 'package:cross_file/cross_file.dart' as _i5;
import 'package:image_picker_platform_interface/src/platform_interface/image_picker_platform.dart'
... | plugins/packages/image_picker/image_picker/test/image_picker_test.mocks.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker/test/image_picker_test.mocks.dart",
"repo_id": "plugins",
"token_count": 2711
} | 1,156 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.imagepickerexample">
<uses-permission android:name="android.permission.INTERNET"/>
<application android:label="Image Picker Example" android:icon="@mipmap/ic_launcher">
<activity android:name="io.flutt... | plugins/packages/image_picker/image_picker_android/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 406
} | 1,157 |
name: image_picker_ios
description: iOS implementation of the image_picker plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/image_picker/image_picker_ios
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 0.8.6+8
environment... | plugins/packages/image_picker/image_picker_ios/pubspec.yaml/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/pubspec.yaml",
"repo_id": "plugins",
"token_count": 302
} | 1,158 |
# image\_picker\_windows
A Windows implementation of [`image_picker`][1].
### pickImage()
The arguments `source`, `maxWidth`, `maxHeight`, `imageQuality`, and `preferredCameraDevice` are not supported on Windows.
### pickVideo()
The arguments `source`, `preferredCameraDevice`, and `maxDuration` are not supported on ... | plugins/packages/image_picker/image_picker_windows/README.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker_windows/README.md",
"repo_id": "plugins",
"token_count": 174
} | 1,159 |
// Copyright 2013 The Flutter 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 static io.flutter.plugins.inapppurchase.InAppPurchasePlugin.MethodNames.ACKNOWLEDGE_PURCHASE;
import stat... | plugins/packages/in_app_purchase/in_app_purchase_android/android/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/android/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java",
"repo_id": "plugins",
"token_count": 14540
} | 1,160 |
mock-maker-inline
| plugins/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker",
"repo_id": "plugins",
"token_count": 7
} | 1,161 |
// Copyright 2013 The Flutter 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(mvanbeusekom): Remove this file when the deprecated
// `SkuDetailsWrapper.introductoryPriceMicros` field is
// ... | plugins/packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/sku_details_wrapper_deprecated_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/sku_details_wrapper_deprecated_test.dart",
"repo_id": "plugins",
"token_count": 936
} | 1,162 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The class represents the information of a product.
class ProductDetails {
/// Creates a new product details object with the provided details.
Produ... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/product_details.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/product_details.dart",
"repo_id": "plugins",
"token_count": 523
} | 1,163 |
// Copyright 2013 The Flutter 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_test/flutter_test.dart';
import 'package:in_app_purchase_platform_int... | plugins/packages/in_app_purchase/in_app_purchase_storekit/test/in_app_purchase_storekit_platform_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/test/in_app_purchase_storekit_platform_test.dart",
"repo_id": "plugins",
"token_count": 9145
} | 1,164 |
// Copyright 2013 The Flutter 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 <UIKit/UIKit.h>
@interface UIImage (ios_platform_images)
/// Loads a UIImage from the embedded Flutter project's assets.
///
/// This method load... | plugins/packages/ios_platform_images/ios/Classes/UIImage+ios_platform_images.h/0 | {
"file_path": "plugins/packages/ios_platform_images/ios/Classes/UIImage+ios_platform_images.h",
"repo_id": "plugins",
"token_count": 335
} | 1,165 |
name: local_auth
description: Flutter plugin for Android and iOS devices to allow local
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
repository: https://github.com/flutter/plugins/tree/main/packages/local_auth/local_auth
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3A... | plugins/packages/local_auth/local_auth/pubspec.yaml/0 | {
"file_path": "plugins/packages/local_auth/local_auth/pubspec.yaml",
"repo_id": "plugins",
"token_count": 412
} | 1,166 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:local_auth_ios/local_auth_ios.dart';
void main() ... | plugins/packages/local_auth/local_auth_ios/test/local_auth_test.dart/0 | {
"file_path": "plugins/packages/local_auth/local_auth_ios/test/local_auth_test.dart",
"repo_id": "plugins",
"token_count": 2766
} | 1,167 |
# local\_auth\_windows
The Windows implementation of [`local_auth`][1].
## Usage
This package is [endorsed][2], which means you can simply use `local_auth`
normally. This package will be automatically included in your app when you do.
[1]: https://pub.dev/packages/local_auth
[2]: https://flutter.dev/docs/developmen... | plugins/packages/local_auth/local_auth_windows/README.md/0 | {
"file_path": "plugins/packages/local_auth/local_auth_windows/README.md",
"repo_id": "plugins",
"token_count": 118
} | 1,168 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import XCTest
@testable import path_provider_foundation
#if os(iOS)
import Flutter
#elseif os(macOS)
import FlutterMacOS
#endif
class RunnerTests: XCTest... | plugins/packages/path_provider/path_provider_foundation/darwin/RunnerTests/RunnerTests.swift/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/darwin/RunnerTests/RunnerTests.swift",
"repo_id": "plugins",
"token_count": 982
} | 1,169 |
name: path_provider_windows
description: Windows implementation of the path_provider plugin
repository: https://github.com/flutter/plugins/tree/main/packages/path_provider/path_provider_windows
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
version: 2.1.... | plugins/packages/path_provider/path_provider_windows/pubspec.yaml/0 | {
"file_path": "plugins/packages/path_provider/path_provider_windows/pubspec.yaml",
"repo_id": "plugins",
"token_count": 299
} | 1,170 |
rootProject.name = 'quick_actions'
| plugins/packages/quick_actions/quick_actions_android/android/settings.gradle/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_android/android/settings.gradle",
"repo_id": "plugins",
"token_count": 11
} | 1,171 |
// Copyright 2013 The Flutter 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
/// A channel for platform code to communicate with the Dart code.
protocol MethodChannel {
/// Invokes a method in Dart code.
/// - Pa... | plugins/packages/quick_actions/quick_actions_ios/ios/Classes/MethodChannel.swift/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/ios/Classes/MethodChannel.swift",
"repo_id": "plugins",
"token_count": 141
} | 1,172 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Home screen quick-action shortcut item.
class ShortcutItem {
/// Constructs an instance with the given [type], [localizedTitle], and
/// [icon].
... | plugins/packages/quick_actions/quick_actions_platform_interface/lib/types/shortcut_item.dart/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_platform_interface/lib/types/shortcut_item.dart",
"repo_id": "plugins",
"token_count": 225
} | 1,173 |
// Copyright 2013 The Flutter 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:shared_preferences/shared_prefere... | plugins/packages/shared_preferences/shared_preferences/example/integration_test/shared_preferences_test.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences/example/integration_test/shared_preferences_test.dart",
"repo_id": "plugins",
"token_count": 1418
} | 1,174 |
rootProject.name = 'shared_preferences_android'
| plugins/packages/shared_preferences/shared_preferences_android/android/settings.gradle/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/android/settings.gradle",
"repo_id": "plugins",
"token_count": 15
} | 1,175 |
// Copyright 2013 The Flutter 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:shared_preferences_platform_interface/shared_preferences_platform_interface.d... | plugins/packages/shared_preferences/shared_preferences_android/lib/shared_preferences_android.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/lib/shared_preferences_android.dart",
"repo_id": "plugins",
"token_count": 523
} | 1,176 |
// Copyright 2013 The Flutter 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
// ignore_for_file: public_member_api_docs, non_co... | plugins/packages/shared_preferences/shared_preferences_foundation/test/test_api.g.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_foundation/test/test_api.g.dart",
"repo_id": "plugins",
"token_count": 2551
} | 1,177 |
// Copyright 2013 The Flutter 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:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:shared_preferen... | plugins/packages/shared_preferences/shared_preferences_platform_interface/test/shared_preferences_platform_interface_test.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_platform_interface/test/shared_preferences_platform_interface_test.dart",
"repo_id": "plugins",
"token_count": 1027
} | 1,178 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert' show json;
import 'package:file/file.dart';
import 'package:file/local.dart';
import 'package:flutter/foundatio... | plugins/packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart",
"repo_id": "plugins",
"token_count": 1338
} | 1,179 |
name: url_launcher_example
description: Demonstrates how to use the url_launcher plugin.
publish_to: none
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
url_launcher_android:
# When depending on this package from a real application you should use:
# ur... | plugins/packages/url_launcher/url_launcher_android/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 315
} | 1,180 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <flutter_linux/flutter_linux.h>
#include "include/url_launcher_linux/url_launcher_plugin.h"
// TODO(stuartmorgan): Remove this private header an... | plugins/packages/url_launcher/url_launcher_linux/linux/url_launcher_plugin_private.h/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/linux/url_launcher_plugin_private.h",
"repo_id": "plugins",
"token_count": 170
} | 1,181 |
// Copyright 2013 The Flutter 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:ui' as ui;
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
/// Signature for a function ... | plugins/packages/url_launcher/url_launcher_platform_interface/lib/link.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_platform_interface/lib/link.dart",
"repo_id": "plugins",
"token_count": 1128
} | 1,182 |
// Copyright 2013 The Flutter 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_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:mock... | plugins/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.dart",
"repo_id": "plugins",
"token_count": 2989
} | 1,183 |
name: url_launcher_web
description: Web platform implementation of url_launcher
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 2.0.14
environment:
... | plugins/packages/url_launcher/url_launcher_web/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/pubspec.yaml",
"repo_id": "plugins",
"token_count": 296
} | 1,184 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.videoplayer">
</manifest>
| plugins/packages/video_player/video_player_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/video_player/video_player_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 47
} | 1,185 |
name: video_player_avfoundation
description: iOS implementation of the video_player plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/video_player/video_player_avfoundation
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.... | plugins/packages/video_player/video_player_avfoundation/pubspec.yaml/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/pubspec.yaml",
"repo_id": "plugins",
"token_count": 292
} | 1,186 |
// Copyright 2013 The Flutter 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 test is run using `flutter drive` by the CI (see /script/tool/README.md
// in this repository for details on driving that tooling manually), but ca... | plugins/packages/webview_flutter/webview_flutter/example/integration_test/webview_flutter_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/integration_test/webview_flutter_test.dart",
"repo_id": "plugins",
"token_count": 12653
} | 1,187 |
// Copyright 2013 The Flutter 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:webview_flutter/webview_flutter.dart' as main_file;
void main() {
group('webview_flutte... | plugins/packages/webview_flutter/webview_flutter/test/webview_flutter_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/test/webview_flutter_test.dart",
"repo_id": "plugins",
"token_count": 604
} | 1,188 |
// Copyright 2013 The Flutter 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.Mockito.verify;
import static org.mockito.Mockito.when;
import android.webkit.WebSto... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebStorageHostApiImplTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebStorageHostApiImplTest.java",
"repo_id": "plugins",
"token_count": 444
} | 1,189 |
// Copyright 2013 The Flutter 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 test is run using `flutter drive` by the CI (see /script/tool/README.md
// in this repository for details on driving that tooling manually), but ca... | plugins/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart",
"repo_id": "plugins",
"token_count": 23478
} | 1,190 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'pac... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android.dart",
"repo_id": "plugins",
"token_count": 1084
} | 1,191 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_android/test/android_webview_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5;
import 'dart:typed_data' as _i7;
import 'dart:ui' as _i4;
import 'package:mo... | plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart",
"repo_id": "plugins",
"token_count": 15737
} | 1,192 |
name: webview_flutter_platform_interface
description: A common platform interface for the webview_flutter plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%... | plugins/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 294
} | 1,193 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Class to represent a content-type header value.
class ContentType {
/// Creates a [ContentType] instance by parsing a "content-type" response [header... | plugins/packages/webview_flutter/webview_flutter_web/lib/src/content_type.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_web/lib/src/content_type.dart",
"repo_id": "plugins",
"token_count": 593
} | 1,194 |
// Copyright 2013 The Flutter 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 "FWFUIDelegateHostApi.h"
#import "FWFDataConverters.h"
@interface FWFUIDelegateFlutterApiImpl ()
// BinaryMessenger must be weak to prevent a circ... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUIDelegateHostApi.m",
"repo_id": "plugins",
"token_count": 2258
} | 1,195 |
// Copyright 2013 The Flutter 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/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
i... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.dart",
"repo_id": "plugins",
"token_count": 3578
} | 1,196 |
// Copyright 2013 The Flutter 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:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/local.dart';
import 'analyze_com... | plugins/script/tool/lib/src/main.dart/0 | {
"file_path": "plugins/script/tool/lib/src/main.dart",
"repo_id": "plugins",
"token_count": 572
} | 1,197 |
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Window... | samples/add_to_app/books/android_books/gradlew.bat/0 | {
"file_path": "samples/add_to_app/books/android_books/gradlew.bat",
"repo_id": "samples",
"token_count": 777
} | 1,198 |
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
flutter_application_path = '../flutter_module_books/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'IosBooks' do
# Comment the next line if you don't want to use dynamic frameworks
u... | samples/add_to_app/books/ios_books/Podfile/0 | {
"file_path": "samples/add_to_app/books/ios_books/Podfile",
"repo_id": "samples",
"token_count": 169
} | 1,199 |
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
flutter_application_path = '../flutter_module'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'IOSFullScreen' do
# Comment the next line if you don't want to use dynamic frameworks
use... | samples/add_to_app/fullscreen/ios_fullscreen/Podfile/0 | {
"file_path": "samples/add_to_app/fullscreen/ios_fullscreen/Podfile",
"repo_id": "samples",
"token_count": 240
} | 1,200 |
<resources>
<string name="app_name">Multiple Flutters</string>
</resources> | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/values/strings.xml/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/values/strings.xml",
"repo_id": "samples",
"token_count": 25
} | 1,201 |
include: package:analysis_defaults/flutter.yaml | samples/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml",
"repo_id": "samples",
"token_count": 14
} | 1,202 |
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
flutter_application_path = '../flutter_module_using_plugin'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'IOSUsingPlugin' do
# Comment the next line if you don't want to use dynamic fr... | samples/add_to_app/plugin/ios_using_plugin/Podfile/0 | {
"file_path": "samples/add_to_app/plugin/ios_using_plugin/Podfile",
"repo_id": "samples",
"token_count": 243
} | 1,203 |
include: package:analysis_defaults/flutter.yaml
| samples/android_splash_screen/analysis_options.yaml/0 | {
"file_path": "samples/android_splash_screen/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,204 |
include: package:analysis_defaults/flutter.yaml
| samples/animations/analysis_options.yaml/0 | {
"file_path": "samples/animations/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,205 |
#import "GeneratedPluginRegistrant.h"
| samples/animations/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/animations/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,206 |
// Copyright 2019 The Flutter team. 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' as ui;
import 'package:flutter/material.dart';
class CarouselDemo extends StatelessWidget {
CarouselDemo({super.key});
static String rou... | samples/animations/lib/src/misc/carousel.dart/0 | {
"file_path": "samples/animations/lib/src/misc/carousel.dart",
"repo_id": "samples",
"token_count": 1217
} | 1,207 |
// Copyright 2023 The Flutter team. 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:animations/src/basics/basics.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
Widget createAni... | samples/animations/test/basics/animated_builder_test.dart/0 | {
"file_path": "samples/animations/test/basics/animated_builder_test.dart",
"repo_id": "samples",
"token_count": 842
} | 1,208 |
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart';
import 'package:test/test.dart';
// Manual test:
// $ dart bin/server.dart
// $ curl -X POST -d '{"by": 1}' -H "Content-Type: application/json" localhost:8080/
void main() {
final port = '8080';
final host = 'http://0.0.0.0:$port';
late ... | samples/code_sharing/server/test/server_test.dart/0 | {
"file_path": "samples/code_sharing/server/test/server_test.dart",
"repo_id": "samples",
"token_count": 555
} | 1,209 |
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'constants.dart';
import 'platform_selector.dart';
class DefaultValuesPage extends StatelessWidget {
DefaultValuesPage({
super.key,
required this.onChangedPlatform,
});
static const String route = 'default-v... | samples/context_menus/lib/default_values_page.dart/0 | {
"file_path": "samples/context_menus/lib/default_values_page.dart",
"repo_id": "samples",
"token_count": 1675
} | 1,210 |
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Desktop Photo Search rebuild script
steps:
- name: Remove fluent_ui runners
path: fluent_ui
rmdirs:
- macos
- linux
- windows
- name: Flutter recreate
path: fluent_ui
flutter: creat... | samples/desktop_photo_search/codelab_rebuild.yaml/0 | {
"file_path": "samples/desktop_photo_search/codelab_rebuild.yaml",
"repo_id": "samples",
"token_count": 2287
} | 1,211 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'exif.dart';
// **************************************************************************
// BuiltValueGe... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/exif.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/exif.g.dart",
"repo_id": "samples",
"token_count": 2850
} | 1,212 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import '../serializers.dart';
import 'li... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/user.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/user.dart",
"repo_id": "samples",
"token_count": 495
} | 1,213 |
// Copyright 2019 The Flutter team. 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:desktop_photo_search/src/unsplash/photo.dart';
import 'package:desktop_photo_search/src/unsplash/search_photos_response.dart';
import 'package... | samples/desktop_photo_search/fluent_ui/test/unsplash_test.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/test/unsplash_test.dart",
"repo_id": "samples",
"token_count": 12984
} | 1,214 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,215 |
#import "FederatedPlugin.h"
#if __has_include(<federated_plugin/federated_plugin-Swift.h>)
#import <federated_plugin/federated_plugin-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-sta... | samples/experimental/federated_plugin/federated_plugin/ios/Classes/FederatedPlugin.m/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/ios/Classes/FederatedPlugin.m",
"repo_id": "samples",
"token_count": 200
} | 1,216 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin_platform_interface/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_platform_interface/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,217 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin_windows/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_windows/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,218 |
// Copyright 2021 The Flutter team. 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:equatable/equatable.dart';
import 'package:hive/hive.dart';
import 'package:linting_tool/model/rule.dart';
part 'profile.g.dart';
@HiveType(... | samples/experimental/linting_tool/lib/model/profile.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/model/profile.dart",
"repo_id": "samples",
"token_count": 199
} | 1,219 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import file_selector_macos
import path_provider_foundation
import url_launcher_macos
import window_size
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "File... | samples/experimental/linting_tool/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "samples/experimental/linting_tool/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "samples",
"token_count": 179
} | 1,220 |
# pedometer_example
Demonstrates how to use the pedometer plugin.
Visit the primary [pedometer README](../README.md) for more information.
| samples/experimental/pedometer/example/README.md/0 | {
"file_path": "samples/experimental/pedometer/example/README.md",
"repo_id": "samples",
"token_count": 40
} | 1,221 |
<resources>
<array name="health_permissions">
<item>androidx.health.permission.HeartRate.READ</item>
<item>androidx.health.permission.HeartRate.WRITE</item>
<item>androidx.health.permission.Steps.READ</item>
<item>androidx.health.permission.Steps.WRITE</item>
</array>
</resources> | samples/experimental/pedometer/example/android/app/src/main/res/values/health-permissions.xml/0 | {
"file_path": "samples/experimental/pedometer/example/android/app/src/main/res/values/health-permissions.xml",
"repo_id": "samples",
"token_count": 113
} | 1,222 |
# From dart SDK: https://github.com/dart-lang/sdk/blob/main/.clang-format
# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
# clang-format doesn't seem to do a good job of this for longer comments.
ReflowComments: 'false'
# We ha... | samples/experimental/pedometer/src/health_connect/.clang-format/0 | {
"file_path": "samples/experimental/pedometer/src/health_connect/.clang-format",
"repo_id": "samples",
"token_count": 169
} | 1,223 |
// Copyright 2023 The Flutter team. 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' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
enum Shader {
nothing('nothing'),
bwSplit('bw_s... | samples/experimental/varfont_shader_puzzle/lib/components/fragment_shaded.dart/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/lib/components/fragment_shaded.dart",
"repo_id": "samples",
"token_count": 2705
} | 1,224 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.