text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html';
/// Create anchor element with download attribute
AnchorElement createAnchorElement(String href, String? suggestedName) {
final Anch... | plugins/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart",
"repo_id": "plugins",
"token_count": 319
} | 1,220 |
// Copyright 2013 The Flutter 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 "test/test_utils.h"
#include <shobjidl.h>
#include <windows.h>
#include <string>
namespace file_selector_windows {
namespace test {
namespace {... | plugins/packages/file_selector/file_selector_windows/windows/test/test_utils.cpp/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/windows/test/test_utils.cpp",
"repo_id": "plugins",
"token_count": 439
} | 1,221 |
rootProject.name = 'google_maps_flutter_android'
| plugins/packages/google_maps_flutter/google_maps_flutter_android/android/settings.gradle/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/android/settings.gradle",
"repo_id": "plugins",
"token_count": 16
} | 1,222 |
name: google_maps_flutter_android
description: Android implementation of the google_maps_flutter plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/google_maps_flutter/google_maps_flutter_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%... | plugins/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml",
"repo_id": "plugins",
"token_count": 357
} | 1,223 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTGoogleMapTileOverlayController.h"
#import "FLTGoogleMapJSONConversions.h"
@interface FLTGoogleMapTileOverlayController ()
@property(strong, n... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapTileOverlayController.m/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapTileOverlayController.m",
"repo_id": "plugins",
"token_count": 2967
} | 1,224 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'google_maps_flutter_ios'
s.version = '0.0.1'
s.summary = 'Google Maps for Flutter'
s.description = <<-DESC
A Flutter plugin that provides a Google Maps widget... | plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/google_maps_flutter_ios.podspec/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_ios/ios/google_maps_flutter_ios.podspec",
"repo_id": "plugins",
"token_count": 527
} | 1,225 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'types.dart';
/// Callback that receives updates to the camera position.
///
/// This callback is triggered when the platform Google Map
/// regist... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/callbacks.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/callbacks.dart",
"repo_id": "plugins",
"token_count": 589
} | 1,226 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'types.dart';
/// [Polygon] update events to be applied to the [GoogleMap].
///
/// Used in [GoogleMapController] when the map is updated.
// (Do n... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart",
"repo_id": "plugins",
"token_count": 288
} | 1,227 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps_flutter_platform_interface/google_maps... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/utils/map_configuration_serialization_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/utils/map_configuration_serialization_test.dart",
"repo_id": "plugins",
"token_count": 993
} | 1,228 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:html' as html;
import 'dart:ui';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps/google_map... | plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/shapes_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/shapes_test.dart",
"repo_id": "plugins",
"token_count": 5242
} | 1,229 |
// Copyright 2013 The Flutter 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 [PolygonController]s associated to a [GoogleMapController].
class PolygonsController exte... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/polygons.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/polygons.dart",
"repo_id": "plugins",
"token_count": 1042
} | 1,230 |
[](https://pub.dev/packages/google_sign_in)
A Flutter plugin for [Google Sign In](https://developers.google.com/identity/).
_Note_: This plugin is still under development, and some APIs might not be
available yet. [Feedback](https://github.com/flutter/flu... | plugins/packages/google_sign_in/google_sign_in/README.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/README.md",
"repo_id": "plugins",
"token_count": 1572
} | 1,231 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="default_web_client_id">YOUR_WEB_CLIENT_ID</string>
</resources>
| plugins/packages/google_sign_in/google_sign_in/example/android/app/src/main/res/values/strings.xml/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/example/android/app/src/main/res/values/strings.xml",
"repo_id": "plugins",
"token_count": 53
} | 1,232 |
`transparentImage.gif` is a 1x1 transparent gif which comes from [this wikimedia page](https://commons.wikimedia.org/wiki/File:Transparent.gif):

This is the image used a placeholder for the `GoogleCircleAvatar` widget.
The variable `_transparentImage` in `lib/widgets.dart` is the list of by... | plugins/packages/google_sign_in/google_sign_in/resources/README.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/resources/README.md",
"repo_id": "plugins",
"token_count": 106
} | 1,233 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.googlesignin;
import android.app.Activity;
import android.content.Context;
import com.google.android.gms.auth.api.signin.Google... | plugins/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java",
"repo_id": "plugins",
"token_count": 460
} | 1,234 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 5.5.1
* Fixes passing `serverClientId` via the channelled `init` call
* Updates minimum Flutter version to 2.10.
## 5.5.0
* Adds override for `GoogleSignInPlatform.initWithParams`.
## 5.4.0
* Adds support for `serverClientId` configuration option.
* Makes `Goo... | plugins/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 267
} | 1,235 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This header is available in the Test module. Import via "@import google_sign_in.Test;"
#import <google_sign_in_ios/FLTGoogleSignInPlugin.h>
NS_ASSUME_... | plugins/packages/google_sign_in/google_sign_in_ios/ios/Classes/FLTGoogleSignInPlugin_Test.h/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_ios/ios/Classes/FLTGoogleSignInPlugin_Test.h",
"repo_id": "plugins",
"token_count": 263
} | 1,236 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart';
import 'package... | plugins/packages/google_sign_in/google_sign_in_platform_interface/test/google_sign_in_platform_interface_test.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_platform_interface/test/google_sign_in_platform_interface_test.dart",
"repo_id": "plugins",
"token_count": 1186
} | 1,237 |
# Image Picker plugin for Flutter
[](https://pub.dev/packages/image_picker)
A Flutter plugin for iOS and Android for picking images from the image library,
and taking new pictures with the camera.
| | Android | iOS | Web ... | plugins/packages/image_picker/image_picker/README.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker/README.md",
"repo_id": "plugins",
"token_count": 1719
} | 1,238 |
org.gradle.jvmargs=-Xmx4G
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/image_picker/image_picker/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/image_picker/image_picker/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,239 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.imagepicker;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import androidx.... | plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerCache.java/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerCache.java",
"repo_id": "plugins",
"token_count": 2579
} | 1,240 |
## 0.8.6+8
* Fixes issue with images sometimes changing to incorrect orientation.
## 0.8.6+7
* Fixes issue where GIF file would not animate without `Photo Library Usage` permissions. Fixes issue where PNG and GIF files were converted to JPG, but only when they are do not have `Photo Library Usage` permissions.
* Upd... | plugins/packages/image_picker/image_picker_ios/CHANGELOG.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 585
} | 1,241 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v3.0.3), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import "messages.g.h"
#import <Flutter/Flutter.h>... | plugins/packages/image_picker/image_picker_ios/ios/Classes/messages.g.m/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/ios/Classes/messages.g.m",
"repo_id": "plugins",
"token_count": 3525
} | 1,242 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Which camera to use when picking images/videos while source is `ImageSource.camera`.
///
/// Not every device supports both of the positions.
enum Came... | plugins/packages/image_picker/image_picker_platform_interface/lib/src/types/camera_device.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_platform_interface/lib/src/types/camera_device.dart",
"repo_id": "plugins",
"token_count": 143
} | 1,243 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:image_picker_platform_interface/image_picker_platf... | plugins/packages/image_picker/image_picker_platform_interface/test/new_method_channel_image_picker_test.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_platform_interface/test/new_method_channel_image_picker_test.dart",
"repo_id": "plugins",
"token_count": 24520
} | 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.inapppurchase;
import static io.flutter.plugins.inapppurchase.Translator.fromPurchaseHistoryRecordList;
import static io.flutte... | plugins/packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java",
"repo_id": "plugins",
"token_count": 6656
} | 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.
#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#else
#import <Flutter/Flutter.h>
#endif
#import <Foundation/Foundation.h>
#import <StoreKit/StoreK... | plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPPaymentQueueDelegate.h/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/ios/Classes/FIAPPaymentQueueDelegate.h",
"repo_id": "plugins",
"token_count": 208
} | 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.
// ignore_for_file: avoid_print
import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../in_app_purchase_st... | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase_storekit_platform_addition.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase_storekit_platform_addition.dart",
"repo_id": "plugins",
"token_count": 902
} | 1,247 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../../in_app_purchase_storekit.dart';
import '../../s... | plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/types/app_store_purchase_details.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/lib/src/types/app_store_purchase_details.dart",
"repo_id": "plugins",
"token_count": 893
} | 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.
#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#else
#import <Flutter/Flutter.h>
#endif
@class FIAPaymentQueueHandler;
@class FIAPReceiptManager;
... | plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/InAppPurchasePlugin.h/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/macos/Classes/InAppPurchasePlugin.h",
"repo_id": "plugins",
"token_count": 207
} | 1,249 |
name: ios_platform_images_example
description: Demonstrates how to use the ios_platform_images plugin.
publish_to: none
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
ios_platform_images:
# When depending on this package from a real... | plugins/packages/ios_platform_images/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/ios_platform_images/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 260
} | 1,250 |
# local_auth_example
Demonstrates how to use the local_auth plugin.
| plugins/packages/local_auth/local_auth/example/README.md/0 | {
"file_path": "plugins/packages/local_auth/local_auth/example/README.md",
"repo_id": "plugins",
"token_count": 21
} | 1,251 |
targets:
$default:
sources:
include:
- lib/**
# Some default includes that aren't really used here but will prevent
# false-negative warnings:
- $package$
- lib/$lib$
exclude:
- '**/.*/**'
- '**/build/**'
builders:
code_excerpter|code_e... | plugins/packages/local_auth/local_auth/example/build.excerpt.yaml/0 | {
"file_path": "plugins/packages/local_auth/local_auth/example/build.excerpt.yaml",
"repo_id": "plugins",
"token_count": 168
} | 1,252 |
// Copyright 2013 The Flutter 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 'package:flutter/material.dart';
import 'package:flutter/services.dar... | plugins/packages/local_auth/local_auth/example/lib/main.dart/0 | {
"file_path": "plugins/packages/local_auth/local_auth/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 3470
} | 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.
package io.flutter.plugins.localauth;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.a... | plugins/packages/local_auth/local_auth_android/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java",
"repo_id": "plugins",
"token_count": 3630
} | 1,254 |
name: local_auth_android_example
description: Demonstrates how to use the local_auth_android plugin.
publish_to: none
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
local_auth_android:
# When depending on this package from a real application you should use:
... | plugins/packages/local_auth/local_auth_android/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 289
} | 1,255 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.pathprovider">
</manifest>
| plugins/packages/path_provider/path_provider_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 46
} | 1,256 |
This only contains symlinks to ../darwin, to support versions of Flutter
prior that don't include https://github.com/flutter/flutter/pull/115337.
Once the minimum Flutter version supported by this implementation is one that
includes that functionality, this directory should be removed.
| plugins/packages/path_provider/path_provider_foundation/ios/README.md/0 | {
"file_path": "plugins/packages/path_provider/path_provider_foundation/ios/README.md",
"repo_id": "plugins",
"token_count": 67
} | 1,257 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show visibleForTesting;
import 'package:flutter/services.dart';
import 'package:platform/platform.dart';
import '... | plugins/packages/path_provider/path_provider_platform_interface/lib/src/method_channel_path_provider.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_platform_interface/lib/src/method_channel_path_provider.dart",
"repo_id": "plugins",
"token_count": 890
} | 1,258 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:mockito/mockito.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:test/test.dart';
class S... | plugins/packages/plugin_platform_interface/test/plugin_platform_interface_test.dart/0 | {
"file_path": "plugins/packages/plugin_platform_interface/test/plugin_platform_interface_test.dart",
"repo_id": "plugins",
"token_count": 1584
} | 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.
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:plugin_platform_interface/plugin_platform_interface... | plugins/packages/quick_actions/quick_actions/test/quick_actions_test.dart/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions/test/quick_actions_test.dart",
"repo_id": "plugins",
"token_count": 823
} | 1,260 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'shared_preferences_foundation'
s.version = '0.0.1'
s.summary = 'iOS and macOS implementation of the shared_preferences plugin.'
s.description = <<-DESC
Wraps ... | plugins/packages/shared_preferences/shared_preferences_foundation/darwin/shared_preferences_foundation.podspec/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_foundation/darwin/shared_preferences_foundation.podspec",
"repo_id": "plugins",
"token_count": 565
} | 1,261 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:shared_preferences_linux/shared_p... | plugins/packages/shared_preferences/shared_preferences_linux/example/integration_test/shared_preferences_test.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_linux/example/integration_test/shared_preferences_test.dart",
"repo_id": "plugins",
"token_count": 1505
} | 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.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:shared_preferences_windows/shared... | plugins/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart",
"repo_id": "plugins",
"token_count": 1489
} | 1,263 |
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
path: ^1.8.0
url_launcher:
# When depending on this package from a real application you should use:
... | plugins/packages/url_launcher/url_launcher/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 316
} | 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 io.flutter.plugins.urllauncher;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.ComponentNam... | plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java",
"repo_id": "plugins",
"token_count": 1266
} | 1,265 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 3.0.2
* Updates code for stricter lint checks.
* Updates minimum Flutter version to 2.10.
## 3.0.1
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
lint warnings.
## 3.0.0
* Changes the major version ... | plugins/packages/url_launcher/url_launcher_linux/CHANGELOG.md/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 538
} | 1,266 |
name: url_launcher_macos
description: macOS implementation of the url_launcher plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_macos
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
version: 3.0.2
environ... | plugins/packages/url_launcher/url_launcher_macos/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/pubspec.yaml",
"repo_id": "plugins",
"token_count": 312
} | 1,267 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.0.14
* Updates code for stricter lint checks.
* Updates minimum Flutter version to 2.10.
## 2.0.13
* Updates `url_launcher_platform_interface` constraint to the correct minimum
version.
## 2.0.12
* Fixes call to `setState` after dispose on the `Link` widge... | plugins/packages/url_launcher/url_launcher_web/CHANGELOG.md/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 1183
} | 1,268 |
name: video_player_example
description: Demonstrates how to use the video_player plugin.
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
video_player:
# When depending on this package from a real application you should use:
# video_play... | plugins/packages/video_player/video_player/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/video_player/video_player/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 391
} | 1,269 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.3.10
* Adds compatibilty with version 6.0 of the platform interface.
* Fixes file URI construction in example.
* Updates code for new analysis options.
* Updates code for `no_leading_underscores_for_local_identifiers` lint.
* Updates minimum Flutter version to 2... | plugins/packages/video_player/video_player_android/CHANGELOG.md/0 | {
"file_path": "plugins/packages/video_player/video_player_android/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 490
} | 1,270 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
| plugins/packages/video_player/video_player_android/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/video_player/video_player_android/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,271 |
name: video_player_android
description: Android implementation of the video_player plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/video_player/video_player_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.3.10
... | plugins/packages/video_player/video_player_android/pubspec.yaml/0 | {
"file_path": "plugins/packages/video_player/video_player_android/pubspec.yaml",
"repo_id": "plugins",
"token_count": 306
} | 1,272 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'video_player_avfoundation'
s.version = '0.0.1'
s.summary = 'Flutter Video Player'
s.description = <<-DESC
A Flutter plugin for playing back video on a Widget ... | plugins/packages/video_player/video_player_avfoundation/ios/video_player_avfoundation.podspec/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/ios/video_player_avfoundation.podspec",
"repo_id": "plugins",
"token_count": 433
} | 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.
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player_platform_interface/video_player_platform_interface.dart';
void main() {
//... | plugins/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_platform_interface/test/video_player_platform_interface_test.dart",
"repo_id": "plugins",
"token_count": 161
} | 1,274 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:flutte... | plugins/packages/webview_flutter/webview_flutter/example/lib/main.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 6364
} | 1,275 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:plugin_p... | plugins/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.dart",
"repo_id": "plugins",
"token_count": 919
} | 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.
package io.flutter.plugins.webviewflutter;
import android.os.Build;
import android.webkit.CookieManager;
class CookieManagerHostApiImpl implements Genera... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/CookieManagerHostApiImpl.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/CookieManagerHostApiImpl.java",
"repo_id": "plugins",
"token_count": 312
} | 1,277 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import android.os.Build;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import androidx.... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientFlutterApiImpl.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebChromeClientFlutterApiImpl.java",
"repo_id": "plugins",
"token_count": 973
} | 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.webviewflutterexample;
import static androidx.test.espresso.flutter.EspressoFlutter.onFlutterWidget;
import static androidx.tes... | plugins/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/webviewflutterexample/BackgroundColorTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/webviewflutterexample/BackgroundColorTest.java",
"repo_id": "plugins",
"token_count": 873
} | 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.
// Autogenerated from Pigeon (v4.2.14), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_c... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart",
"repo_id": "plugins",
"token_count": 29235
} | 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 'dart:async';
import 'package:flutter_test/flutter_test.dart';
import 'package:webview_flutter_android/src/android_proxy.dart';
import 'package:web... | plugins/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.dart",
"repo_id": "plugins",
"token_count": 6513
} | 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:flutter/widgets.dart';
import 'javascript_mode.dart';
/// A single setting for configuring a WebViewPlatform which may be absent.
@immuta... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_settings.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_settings.dart",
"repo_id": "plugins",
"token_count": 1304
} | 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_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:plugin_p... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.dart",
"repo_id": "plugins",
"token_count": 2257
} | 1,283 |
h1 {
color: blue;
} | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/assets/www/styles/style.css/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/assets/www/styles/style.css",
"repo_id": "plugins",
"token_count": 13
} | 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.
@import Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFUIViewHostApiTests : XCTestCase
@end
@implem... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIViewHostApiTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIViewHostApiTests.m",
"repo_id": "plugins",
"token_count": 717
} | 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.
#import "FWFPreferencesHostApi.h"
#import "FWFWebViewConfigurationHostApi.h"
@interface FWFPreferencesHostApiImpl ()
// InstanceManager must be weak to pr... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.m",
"repo_id": "plugins",
"token_count": 752
} | 1,286 |
// Copyright 2013 The Flutter 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 "FWFWebViewHostApi.h"
#import "FWFDataConverters.h"
@implementation FWFAssetManager
- (NSString *)lookupKeyForAsset:(NSString *)asset {
return [... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.m",
"repo_id": "plugins",
"token_count": 6186
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import '../common/instance_manager.dart';
import '../foundation/foundati... | plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/web_kit/web_kit.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/web_kit/web_kit.dart",
"repo_id": "plugins",
"token_count": 11998
} | 1,288 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
im... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.dart",
"repo_id": "plugins",
"token_count": 2223
} | 1,289 |
# This list should be kept as short as possible, and things should remain here
# only as long as necessary, since in general the goal is for all of the latest
# versions of plugins to be mutually compatible.
#
# An example use case for this list would be to temporarily add plugins while
# updating multiple plugins for ... | plugins/script/configs/exclude_all_packages_app.yaml/0 | {
"file_path": "plugins/script/configs/exclude_all_packages_app.yaml",
"repo_id": "plugins",
"token_count": 118
} | 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 'package:colorize/colorize.dart';
import 'package:file/file.dart';
/// The signature for a print handler for commands that allow overriding the
///... | plugins/script/tool/lib/src/common/core.dart/0 | {
"file_path": "plugins/script/tool/lib/src/common/core.dart",
"repo_id": "plugins",
"token_count": 769
} | 1,291 |
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.FlutterViewIntegration" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="co... | samples/add_to_app/android_view/android_view/app/src/main/res/values-night/themes.xml/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/values-night/themes.xml",
"repo_id": "samples",
"token_count": 318
} | 1,292 |
<resources>
<string name="app_name">Books</string>
<string name="edit">Edit</string>
<string name="author_prefix">By: %1$s</string>
</resources> | samples/add_to_app/books/android_books/app/src/main/res/values/strings.xml/0 | {
"file_path": "samples/add_to_app/books/android_books/app/src/main/res/values/strings.xml",
"repo_id": "samples",
"token_count": 58
} | 1,293 |
#!/bin/sh
flutter pub run pigeon --input pigeon/schema.dart \
--dart_out lib/api.dart \
--objc_header_out ../ios_books/IosBooks/api.h \
--objc_source_out ../ios_books/IosBooks/api.m \
--objc_prefix BK \
--java_out ../android_books/app/src/main/java/dev/flutter/example/books/Api.java \
--java_package "dev.fl... | samples/add_to_app/books/flutter_module_books/run_pigeon.sh/0 | {
"file_path": "samples/add_to_app/books/flutter_module_books/run_pigeon.sh",
"repo_id": "samples",
"token_count": 142
} | 1,294 |
// 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.
package dev.flutter.example.androidfullscreen
import androidx.multidex.MultiDexApplication
import io.flutter.embedding.engine.FlutterEngine
import io.flutter... | samples/add_to_app/fullscreen/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MyApplication.kt/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MyApplication.kt",
"repo_id": "samples",
"token_count": 609
} | 1,295 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
| samples/add_to_app/fullscreen/android_fullscreen/app/src/main/res/values/colors.xml/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/main/res/values/colors.xml",
"repo_id": "samples",
"token_count": 81
} | 1,296 |
name: flutter_module
description: An example Flutter module.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
provider: ^6.0.2
dev_dependencies:
analysis_defaults:
path: ../../../analysis_defaults
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
espr... | samples/add_to_app/fullscreen/flutter_module/pubspec.yaml/0 | {
"file_path": "samples/add_to_app/fullscreen/flutter_module/pubspec.yaml",
"repo_id": "samples",
"token_count": 312
} | 1,297 |
package dev.flutter.multipleflutters
import java.lang.ref.WeakReference
/**
* Interface for getting notifications when the DataModel is updated.
*/
interface DataModelObserver {
fun onCountUpdate(newCount: Int)
}
/**
* A singleton/observable data model for the data shared between Flutter and the host platform... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/DataModel.kt/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/DataModel.kt",
"repo_id": "samples",
"token_count": 382
} | 1,298 |
// 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 Flutter
import FlutterPluginRegistrant
import Foundation
/// A FlutterViewController intended for the MyApp widget in the Flutter module.
///
/// This... | samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift",
"repo_id": "samples",
"token_count": 721
} | 1,299 |
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless requ... | samples/android_splash_screen/android/app/src/main/res/layout/main_activity_2.xml/0 | {
"file_path": "samples/android_splash_screen/android/app/src/main/res/layout/main_activity_2.xml",
"repo_id": "samples",
"token_count": 1204
} | 1,300 |
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | samples/android_splash_screen/lib/main.dart/0 | {
"file_path": "samples/android_splash_screen/lib/main.dart",
"repo_id": "samples",
"token_count": 1255
} | 1,301 |
// 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:flutter/material.dart';
class TweenSequenceDemo extends StatefulWidget {
const TweenSequenceDemo({super.key});
static const String routeN... | samples/animations/lib/src/basics/tween_sequence.dart/0 | {
"file_path": "samples/animations/lib/src/basics/tween_sequence.dart",
"repo_id": "samples",
"token_count": 870
} | 1,302 |
import 'package:shared/shared.dart';
import 'package:test/test.dart';
void main() {
test('Increment serialization', () {
expect(Increment(by: 3).toJson(), <String, dynamic>{'by': 3});
});
test('Increment derialization', () {
expect(Increment.fromJson(<String, dynamic>{'by': 5}), Increment(by: 5));
});
... | samples/code_sharing/shared/test/shared_test.dart/0 | {
"file_path": "samples/code_sharing/shared/test/shared_test.dart",
"repo_id": "samples",
"token_count": 201
} | 1,303 |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'constants.dart';
import 'context_menu_region.dart';
import 'platform_selector.dart';
class AnywherePage extends StatelessWidget {
AnywherePage({
super.key,
required this.... | samples/context_menus/lib/anywhere_page.dart/0 | {
"file_path": "samples/context_menus/lib/anywhere_page.dart",
"repo_id": "samples",
"token_count": 1507
} | 1,304 |
import 'dart:collection';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'constants.dart';
import 'platform_selector.dart';
class ReorderedButtonsPage extends StatelessWidget {
ReorderedButtonsPage({
super.key,
required this.onChangedPlatform,
});
stati... | samples/context_menus/lib/reordered_buttons_page.dart/0 | {
"file_path": "samples/context_menus/lib/reordered_buttons_page.dart",
"repo_id": "samples",
"token_count": 1634
} | 1,305 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| samples/context_menus/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "samples/context_menus/macos/Runner/Configs/Release.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,306 |
import 'package:context_menus/default_values_page.dart';
import 'package:context_menus/main.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void mai... | samples/context_menus/test/default_values_page_test.dart/0 | {
"file_path": "samples/context_menus/test/default_values_page_test.dart",
"repo_id": "samples",
"token_count": 1307
} | 1,307 |
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: 9d49bc6f8521b9f1119c6b05088154f7c95dbcd8
channel: issues/120405
project_type: app
# Tracks metadata for the flutter migrate... | samples/deeplink_store_example/.metadata/0 | {
"file_path": "samples/deeplink_store_example/.metadata",
"repo_id": "samples",
"token_count": 776
} | 1,308 |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | samples/deeplink_store_example/lib/product_category_list.dart/0 | {
"file_path": "samples/deeplink_store_example/lib/product_category_list.dart",
"repo_id": "samples",
"token_count": 655
} | 1,309 |
#include "ephemeral/Flutter-Generated.xcconfig"
| samples/deeplink_store_example/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "samples/deeplink_store_example/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "samples",
"token_count": 19
} | 1,310 |
// 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 'serializers.dart';
// **************************************************************************
// Built... | samples/desktop_photo_search/fluent_ui/lib/src/serializers.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/serializers.g.dart",
"repo_id": "samples",
"token_count": 614
} | 1,311 |
// 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 'search_photos_response.dart';
// ************************************************************************... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/search_photos_response.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/search_photos_response.g.dart",
"repo_id": "samples",
"token_count": 2193
} | 1,312 |
// 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:flutter/foundation.dart';
import '../unsplash/photo.dart';
import '../unsplash/unsplash.dart';
import 'search.dart';
class SearchEntry {
c... | samples/desktop_photo_search/material/lib/src/model/photo_search_model.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/model/photo_search_model.dart",
"repo_id": "samples",
"token_count": 429
} | 1,313 |
// 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 'photo.dart';
// **************************************************************************
// BuiltValueG... | samples/desktop_photo_search/material/lib/src/unsplash/photo.g.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/unsplash/photo.g.dart",
"repo_id": "samples",
"token_count": 6987
} | 1,314 |
// Copyright 2022 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:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import '../../unsplash_acces... | samples/desktop_photo_search/material/lib/src/widgets/unsplash_notice.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/widgets/unsplash_notice.dart",
"repo_id": "samples",
"token_count": 1638
} | 1,315 |
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <file_selector_windows/file_selector_windows.h>
#include <menubar/menubar_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>
#include <window_size/window_size_plugin.h>
void RegisterPlugins(flu... | samples/desktop_photo_search/material/windows/flutter/generated_plugin_registrant.cc/0 | {
"file_path": "samples/desktop_photo_search/material/windows/flutter/generated_plugin_registrant.cc",
"repo_id": "samples",
"token_count": 261
} | 1,316 |
# Custom Context Menus
The [Custom Context Menus](https://github.com/flutter/samples/tree/main/context_menus)
app has been moved out of the experimental directory of this repository as it now
works on stable channel of Flutter.
| samples/experimental/context_menus/README.md/0 | {
"file_path": "samples/experimental/context_menus/README.md",
"repo_id": "samples",
"token_count": 62
} | 1,317 |
// The federated_plugin_macos uses the default BatteryMethodChannel used by
// federated_plugin_platform_interface to do platform calls.
| samples/experimental/federated_plugin/federated_plugin_macos/lib/federated_plugin_macos.dart/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_macos/lib/federated_plugin_macos.dart",
"repo_id": "samples",
"token_count": 33
} | 1,318 |
name: federated_plugin_web
description: Web implementation of federated_plugin to retrieve current battery level.
version: 0.0.1
publish_to: none
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
federated_plugin_platform_interface:
path: ../federated_p... | samples/experimental/federated_plugin/federated_plugin_web/pubspec.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_web/pubspec.yaml",
"repo_id": "samples",
"token_count": 247
} | 1,319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.