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:async';
import 'dart:html' as html;
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:g... | plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart",
"repo_id": "plugins",
"token_count": 10893
} | 1,154 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library google_maps_flutter_web;
import 'dart:async';
import 'dart:convert';
import 'dart:html';
import 'dart:js_util';
import 'package:flutter/foundatio... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/google_maps_flutter_web.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/google_maps_flutter_web.dart",
"repo_id": "plugins",
"token_count": 448
} | 1,155 |
# to_screen_location
The code in this directory is a Dart re-implementation of Krasimir Tsonev's blog
post: [GoogleMaps API v3: convert LatLng object to actual pixels][blog-post].
The blog post describes a way to implement the [`toScreenLocation` method][method]
of the Google Maps Platform SDK for the web.
Used unde... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/third_party/to_screen_location/README.md/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/third_party/to_screen_location/README.md",
"repo_id": "plugins",
"token_count": 239
} | 1,156 |
name: google_sign_in_example
description: Example of Google Sign-In plugin.
publish_to: none
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
google_sign_in:
# When depending on this package from a real application you should use:
# google_sign_in: ^x.y.... | plugins/packages/google_sign_in/google_sign_in/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 287
} | 1,157 |
## 6.1.6
* Minor implementation cleanup
* Updates minimum Flutter version to 3.0.
## 6.1.5
* Updates play-services-auth version to 20.4.1.
## 6.1.4
* Rolls Guava to version 31.1.
## 6.1.3
* Updates play-services-auth version to 20.4.0.
## 6.1.2
* Fixes passing `serverClientId` via the channelled `init` call
#... | plugins/packages/google_sign_in/google_sign_in_android/CHANGELOG.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 494
} | 1,158 |
// Copyright 2013 The Flutter 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 os.log;
@import XCTest;
@interface GoogleSignInUITests : XCTestCase
@property(nonatomic, strong) XCUIApplication *app;
@end
@implementation Googl... | plugins/packages/google_sign_in/google_sign_in_ios/example/ios/RunnerUITests/GoogleSignInUITests.m/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_ios/example/ios/RunnerUITests/GoogleSignInUITests.m",
"repo_id": "plugins",
"token_count": 462
} | 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.
import 'dart:async';
// TODO(dit): Split `id` and `oauth2` "services" for mocking. https://github.com/flutter/flutter/issues/120657
import 'package:google_... | plugins/packages/google_sign_in/google_sign_in_web/lib/src/gis_client.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_web/lib/src/gis_client.dart",
"repo_id": "plugins",
"token_count": 3780
} | 1,160 |
// Copyright 2013 The Flutter 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 static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.assertTrue;
import static or... | plugins/packages/image_picker/image_picker_android/android/src/test/java/io/flutter/plugins/imagepicker/FileUtilTest.java/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/android/src/test/java/io/flutter/plugins/imagepicker/FileUtilTest.java",
"repo_id": "plugins",
"token_count": 1417
} | 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.
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:image_picker_ios/image_picker_ios.dart';
import ... | plugins/packages/image_picker/image_picker_ios/test/image_picker_ios_test.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/test/image_picker_ios_test.dart",
"repo_id": "plugins",
"token_count": 21245
} | 1,162 |
## 0.2.4+1
* Updates Google Play Billing Library to 5.1.0.
* Updates androidx.annotation to 1.5.0.
## 0.2.4
* Updates minimum Flutter version to 3.0.
* Ignores a lint in the example app for backwards compatibility.
## 0.2.3+9
* Updates `androidx.test.espresso:espresso-core` to 3.5.1.
## 0.2.3+8
* Updates code fo... | plugins/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 1384
} | 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.
package io.flutter.plugins.inapppurchase;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.jun... | plugins/packages/in_app_purchase/in_app_purchase_android/android/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/android/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java",
"repo_id": "plugins",
"token_count": 3535
} | 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 'package:in_app_purchase_android/billing_client_wrappers.dart';
import 'package:in_app_purchase_android/src/types/google_play_product_details.dart';... | plugins/packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/sku_details_wrapper_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/sku_details_wrapper_test.dart",
"repo_id": "plugins",
"token_count": 2965
} | 1,165 |
// Copyright 2013 The Flutter 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 '../errors/in_app_purchase_error.dart';
import 'product_details.dart';
/// The response returned by [InAppPurchasePlatform.queryProductDetails].
//... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/product_details_response.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/product_details_response.dart",
"repo_id": "plugins",
"token_count": 376
} | 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:in_app_purchase_storekit/src/channel.dart';
import... | plugins/packages/in_app_purchase/in_app_purchase_storekit/test/store_kit_wrappers/sk_methodchannel_apis_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_storekit/test/store_kit_wrappers/sk_methodchannel_apis_test.dart",
"repo_id": "plugins",
"token_count": 4092
} | 1,167 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import "UIImage+ios_platform_images.h"
@implementation UIImage (ios_platform_images)
+ (UIImage *)flutterImageWithName:(NSStr... | plugins/packages/ios_platform_images/ios/Classes/UIImage+ios_platform_images.m/0 | {
"file_path": "plugins/packages/ios_platform_images/ios/Classes/UIImage+ios_platform_images.m",
"repo_id": "plugins",
"token_count": 374
} | 1,168 |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12,19m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"/>
... | plugins/packages/local_auth/local_auth_android/android/src/main/res/drawable/ic_priority_high_white_24dp.xml/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/android/src/main/res/drawable/ic_priority_high_white_24dp.xml",
"repo_id": "plugins",
"token_count": 210
} | 1,169 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 1.0.12
* Adds compatibility with `intl` 0.18.0.
## 1.0.11
* Fixes issue where failed authentication was failing silently
## 1.0.10
* Updates imports for `prefer_relative_imports`.
* Updates minimum Flutter version to 2.10.
## 1.0.9
* Fixes avoid_redundant_ar... | plugins/packages/local_auth/local_auth_ios/CHANGELOG.md/0 | {
"file_path": "plugins/packages/local_auth/local_auth_ios/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 387
} | 1,170 |
name: path_provider_linux
description: Linux implementation of the path_provider plugin
repository: https://github.com/flutter/plugins/tree/main/packages/path_provider/path_provider_linux
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
version: 2.1.8
env... | plugins/packages/path_provider/path_provider_linux/pubspec.yaml/0 | {
"file_path": "plugins/packages/path_provider/path_provider_linux/pubspec.yaml",
"repo_id": "plugins",
"token_count": 312
} | 1,171 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 1.0.2
* Migrates remaining components to Swift and removes all Objective-C settings.
* Migrates `RunnerUITests` to Swift.
## 1.0.1
* Removes custom modulemap file with "Test" submodule and private headers for Swift migration.
* Migrates `FLTQuickActionsPlugin` ... | plugins/packages/quick_actions/quick_actions_ios/CHANGELOG.md/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 331
} | 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.
import Flutter
public final class QuickActionsPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
... | plugins/packages/quick_actions/quick_actions_ios/ios/Classes/QuickActionsPlugin.swift/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/ios/Classes/QuickActionsPlugin.swift",
"repo_id": "plugins",
"token_count": 991
} | 1,173 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.sharedpreferences">
</manifest>
| plugins/packages/shared_preferences/shared_preferences_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 47
} | 1,174 |
name: shared_preferences_android
description: Android implementation of the shared_preferences plugin
repository: https://github.com/flutter/plugins/tree/main/packages/shared_preferences/shared_preferences_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_pre... | plugins/packages/shared_preferences/shared_preferences_android/pubspec.yaml/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/pubspec.yaml",
"repo_id": "plugins",
"token_count": 302
} | 1,175 |
name: shared_preferences_windows
description: Windows implementation of shared_preferences
repository: https://github.com/flutter/plugins/tree/main/packages/shared_preferences/shared_preferences_windows
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22... | plugins/packages/shared_preferences/shared_preferences_windows/pubspec.yaml/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_windows/pubspec.yaml",
"repo_id": "plugins",
"token_count": 316
} | 1,176 |
name: url_launcher_linux
description: Linux implementation of the url_launcher plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_linux
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_linux/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/pubspec.yaml",
"repo_id": "plugins",
"token_count": 287
} | 1,177 |
// Mocks generated by Mockito 5.3.2 from annotations
// in regular_integration_tests/integration_test/url_launcher_web_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:html' as _i2;
import 'dart:math' as _i4;
import ... | plugins/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart",
"repo_id": "plugins",
"token_count": 19002
} | 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.
@JS()
library integration_test_utils;
import 'dart:html';
import 'package:js/js.dart';
// Returns the URL to load an asset from this example app as a ne... | plugins/packages/video_player/video_player_web/example/integration_test/utils.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_web/example/integration_test/utils.dart",
"repo_id": "plugins",
"token_count": 546
} | 1,179 |
// Copyright 2013 The Flutter 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.content.Context;
import io.flutter.plugin.common.StandardMessageCodec;
import io.flutter.plugin.... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebViewFactory.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebViewFactory.java",
"repo_id": "plugins",
"token_count": 272
} | 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.
package io.flutter.plugins.webviewflutter;
import android.content.Context;
import android.os.Handler;
import android.view.View;
import androidx.annotation... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterPlugin.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterPlugin.java",
"repo_id": "plugins",
"token_count": 2669
} | 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.
package io.flutter.plugins.webviewflutter;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebViewClientTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/WebViewClientTest.java",
"repo_id": "plugins",
"token_count": 1611
} | 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.
// 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/webview_flutter_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/example/integration_test/webview_flutter_test.dart",
"repo_id": "plugins",
"token_count": 17333
} | 1,183 |
// Copyright 2013 The Flutter 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: implementation_imports
import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_interface_legacy.dart';
import '../andro... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_cookie_manager.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_cookie_manager.dart",
"repo_id": "plugins",
"token_count": 482
} | 1,184 |
// Copyright 2013 The Flutter 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_platform_interface/src/webview_flutter_platform_interface_legacy.dart';
v... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/legacy/platform_interface/javascript_channel_registry_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/legacy/platform_interface/javascript_channel_registry_test.dart",
"repo_id": "plugins",
"token_count": 1306
} | 1,185 |
// Copyright 2013 The Flutter 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';
/// Factory class for creating [HttpRequest] instances.
class HttpRequestFactory {
/// Creates a [HttpRequestFactory].
const HttpR... | plugins/packages/webview_flutter/webview_flutter_web/lib/src/http_request_factory.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_web/lib/src/http_request_factory.dart",
"repo_id": "plugins",
"token_count": 1093
} | 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.
@import Flutter;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFDataConvertersTests : XCTestCase
@end
@imple... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFDataConvertersTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFDataConvertersTests.m",
"repo_id": "plugins",
"token_count": 2093
} | 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 "FWFHTTPCookieStoreHostApi.h"
#import "FWFDataConverters.h"
#import "FWFWebsiteDataStoreHostApi.h"
@interface FWFHTTPCookieStoreHostApiImpl ()
// ... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFHTTPCookieStoreHostApi.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFHTTPCookieStoreHostApi.m",
"repo_id": "plugins",
"token_count": 1145
} | 1,188 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_wkwebview/test/webkit_navigation_delegate_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'dart:ui' as _i6;
import 'package:mockito/mockito.dart' ... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart",
"repo_id": "plugins",
"token_count": 4378
} | 1,189 |
name: flutter_plugin_tools
description: Productivity utils for flutter/plugins and flutter/packages
repository: https://github.com/flutter/plugins/tree/main/script/tool
version: 0.13.4+2
publish_to: none # See README.md
dependencies:
args: ^2.1.0
async: ^2.6.1
collection: ^1.15.0
colorize: ^3.0.0
file: ^6.1.... | plugins/script/tool/pubspec.yaml/0 | {
"file_path": "plugins/script/tool/pubspec.yaml",
"repo_id": "plugins",
"token_count": 367
} | 1,190 |
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "dev.flutter.example.androidView"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "a... | samples/add_to_app/android_view/android_view/app/build.gradle/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/build.gradle",
"repo_id": "samples",
"token_count": 720
} | 1,191 |
#Wed Mar 10 09:46:16 PST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
| samples/add_to_app/android_view/android_view/gradle/wrapper/gradle-wrapper.properties/0 | {
"file_path": "samples/add_to_app/android_view/android_view/gradle/wrapper/gradle-wrapper.properties",
"repo_id": "samples",
"token_count": 83
} | 1,192 |
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "dev.flutter.example.books"
minSdkVersion 19
targetSdkVersion 29
versionC... | samples/add_to_app/books/android_books/app/build.gradle/0 | {
"file_path": "samples/add_to_app/books/android_books/app/build.gradle",
"repo_id": "samples",
"token_count": 701
} | 1,193 |
include ':app'
setBinding(new Binding([gradle: this]))
evaluate(new File(
settingsDir,
'../flutter_module_books/.android/include_flutter.groovy'
))
rootProject.name = "Android Books"
| samples/add_to_app/books/android_books/settings.gradle/0 | {
"file_path": "samples/add_to_app/books/android_books/settings.gradle",
"repo_id": "samples",
"token_count": 64
} | 1,194 |
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:IosBooks.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
| samples/add_to_app/books/ios_books/IosBooks.xcworkspace/contents.xcworkspacedata/0 | {
"file_path": "samples/add_to_app/books/ios_books/IosBooks.xcworkspace/contents.xcworkspacedata",
"repo_id": "samples",
"token_count": 105
} | 1,195 |
# fullscreen
Embeds a full screen instance of Flutter into an existing iOS or Android app.
## Description
These apps showcase a relatively straightforward integration of
`flutter_module`:
* The Flutter module is built along with the app when the app is built.
* The Flutter engine is warmed up at app launch.
* The F... | samples/add_to_app/fullscreen/README.md/0 | {
"file_path": "samples/add_to_app/fullscreen/README.md",
"repo_id": "samples",
"token_count": 395
} | 1,196 |
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
| samples/add_to_app/fullscreen/android_fullscreen/gradle/wrapper/gradle-wrapper.properties/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/gradle/wrapper/gradle-wrapper.properties",
"repo_id": "samples",
"token_count": 71
} | 1,197 |
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_heigh... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/layout/activity_main.xml/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/layout/activity_main.xml",
"repo_id": "samples",
"token_count": 866
} | 1,198 |
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.MultipleFlutters" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPri... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/values/themes.xml/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/res/values/themes.xml",
"repo_id": "samples",
"token_count": 316
} | 1,199 |
// 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:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:url_launcher/url_launcher.dart' as launcher;
void main() => r... | samples/add_to_app/multiple_flutters/multiple_flutters_module/lib/main.dart/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_module/lib/main.dart",
"repo_id": "samples",
"token_count": 1413
} | 1,200 |
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
| samples/add_to_app/prebuilt_module/android_using_prebuilt_module/gradle/wrapper/gradle-wrapper.properties/0 | {
"file_path": "samples/add_to_app/prebuilt_module/android_using_prebuilt_module/gradle/wrapper/gradle-wrapper.properties",
"repo_id": "samples",
"token_count": 71
} | 1,201 |
// 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 UIKit
import Flutter
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var flutterEngine : Flu... | samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift/0 | {
"file_path": "samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift",
"repo_id": "samples",
"token_count": 223
} | 1,202 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| samples/animations/android/gradle.properties/0 | {
"file_path": "samples/animations/android/gradle.properties",
"repo_id": "samples",
"token_count": 30
} | 1,203 |
// Copyright 2020 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:math' as math;
import 'package:flutter/material.dart';
class CurvedAnimationDemo extends StatefulWidget {
const CurvedAnimationDemo({super.key... | samples/animations/lib/src/misc/curved_animation.dart/0 | {
"file_path": "samples/animations/lib/src/misc/curved_animation.dart",
"repo_id": "samples",
"token_count": 2382
} | 1,204 |
// Copyright 2020 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/misc/animated_list.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
Widget crea... | samples/animations/test/misc/animated_list_test.dart/0 | {
"file_path": "samples/animations/test/misc/animated_list_test.dart",
"repo_id": "samples",
"token_count": 1640
} | 1,205 |
package com.example.client
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/code_sharing/client/android/app/src/main/kotlin/com/example/client/MainActivity.kt/0 | {
"file_path": "samples/code_sharing/client/android/app/src/main/kotlin/com/example/client/MainActivity.kt",
"repo_id": "samples",
"token_count": 36
} | 1,206 |
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'constants.dart';
import 'is_valid_email.dart';
import 'platform_selector.dart';
class EmailButtonPage extends StatelessWidget {
EmailButtonPage({
super.key,
required this.onChangedPlatform,
});
static const... | samples/context_menus/lib/email_button_page.dart/0 | {
"file_path": "samples/context_menus/lib/email_button_page.dart",
"repo_id": "samples",
"token_count": 1509
} | 1,207 |
package com.example.deeplink_store_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/deeplink_store_example/android/app/src/main/kotlin/com/example/deeplink_store_example/MainActivity.kt/0 | {
"file_path": "samples/deeplink_store_example/android/app/src/main/kotlin/com/example/deeplink_store_example/MainActivity.kt",
"repo_id": "samples",
"token_count": 43
} | 1,208 |
// 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';
part 'lin... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/links.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/links.dart",
"repo_id": "samples",
"token_count": 332
} | 1,209 |
// 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 'user.dart';
// **************************************************************************
// BuiltValueGe... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/user.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/user.g.dart",
"repo_id": "samples",
"token_count": 4603
} | 1,210 |
// 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:typed_data';
import 'package:desktop_photo_search/src/model/photo_search_model.dart';
import 'package:desktop_photo_search/src/unsplash/photo.da... | samples/desktop_photo_search/fluent_ui/test/widget_test.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/test/widget_test.dart",
"repo_id": "samples",
"token_count": 2318
} | 1,211 |
// Copyright 2020 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 UIKit
public class SwiftFederatedPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar... | samples/experimental/federated_plugin/federated_plugin/ios/Classes/SwiftFederatedPlugin.swift/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/ios/Classes/SwiftFederatedPlugin.swift",
"repo_id": "samples",
"token_count": 346
} | 1,212 |
// Copyright 2020 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:federated_plugin_platform_interface/federated_plugin_platform_interface.dart';
import 'package:flutter/services.dart';
/// Implements [Federa... | samples/experimental/federated_plugin/federated_plugin_platform_interface/lib/battery_method_channel.dart/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_platform_interface/lib/battery_method_channel.dart",
"repo_id": "samples",
"token_count": 182
} | 1,213 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'profile.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class RulesProfileAdapter extends TypeAdapter<RulesProfile> {
@overri... | samples/experimental/linting_tool/lib/model/profile.g.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/model/profile.g.dart",
"repo_id": "samples",
"token_count": 391
} | 1,214 |
// 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 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show SystemUiOverlayStyle;
import 'package:linting... | samples/experimental/linting_tool/lib/widgets/adaptive_nav.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/widgets/adaptive_nav.dart",
"repo_id": "samples",
"token_count": 6254
} | 1,215 |
# Run with `flutter pub run ffigen --config ffigen.yaml`.
name: PedometerBindings
description: "Bindings for CM pedometers"
language: objc
output: "lib/pedometer_bindings_generated.dart"
compiler-opts:
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Libra... | samples/experimental/pedometer/ffigen.yaml/0 | {
"file_path": "samples/experimental/pedometer/ffigen.yaml",
"repo_id": "samples",
"token_count": 291
} | 1,216 |
// 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:flutter/material.dart';
import '../page_content/pages_flow.dart';
import '../styles.dart';
class LightboxedPanel extends StatefulWidget {
f... | samples/experimental/varfont_shader_puzzle/lib/components/lightboxed_panel.dart/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/lib/components/lightboxed_panel.dart",
"repo_id": "samples",
"token_count": 1947
} | 1,217 |
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file
// for details. 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:provider/provider.dart';
import '../api/api.dart... | samples/experimental/web_dashboard/lib/src/pages/dashboard.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/src/pages/dashboard.dart",
"repo_id": "samples",
"token_count": 846
} | 1,218 |
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "<YOUR_PROJECT_ID>",
storageBucket: "",
messagingSenderId: "",
appId: ""
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
| samples/experimental/web_dashboard/web/firebase_init.js/0 | {
"file_path": "samples/experimental/web_dashboard/web/firebase_init.js",
"repo_id": "samples",
"token_count": 109
} | 1,219 |
package dev.flutter.formApp.form_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/form_app/android/app/src/main/kotlin/dev/flutter/formApp/form_app/MainActivity.kt/0 | {
"file_path": "samples/form_app/android/app/src/main/kotlin/dev/flutter/formApp/form_app/MainActivity.kt",
"repo_id": "samples",
"token_count": 42
} | 1,220 |
// File normally generated by FlutterFire CLI. This is a stand-in.
// See README.md for details.
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
class DefaultFirebaseOptions {
@Deprecated('Run `flutterfire configure` to re-generate this file')
static FirebaseOptions get currentPlatform {
... | samples/game_template/lib/firebase_options.dart/0 | {
"file_path": "samples/game_template/lib/firebase_options.dart",
"repo_id": "samples",
"token_count": 146
} | 1,221 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. 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:go_router/go_router.dart';
import 'package:provid... | samples/game_template/lib/src/main_menu/main_menu_screen.dart/0 | {
"file_path": "samples/game_template/lib/src/main_menu/main_menu_screen.dart",
"repo_id": "samples",
"token_count": 1932
} | 1,222 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. 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';
/// Shows [message] in a snack bar as long as a [ScaffoldMesseng... | samples/game_template/lib/src/style/snack_bar.dart/0 | {
"file_path": "samples/game_template/lib/src/style/snack_bar.dart",
"repo_id": "samples",
"token_count": 222
} | 1,223 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/game_template/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/game_template/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,224 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
import 'item.dart';
import 'page.dart';
const catalogLength = 200;
/// This function emulat... | samples/infinite_list/lib/src/api/fetch.dart/0 | {
"file_path": "samples/infinite_list/lib/src/api/fetch.dart",
"repo_id": "samples",
"token_count": 482
} | 1,225 |
// Copyright 2021, the Flutter project authors. Please see the AUTHORS file
// for details. 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 '../data.dart';
class BookList extends StatelessWidget {... | samples/navigation_and_routing/lib/src/widgets/book_list.dart/0 | {
"file_path": "samples/navigation_and_routing/lib/src/widgets/book_list.dart",
"repo_id": "samples",
"token_count": 335
} | 1,226 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/navigation_and_routing/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/navigation_and_routing/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,227 |
// Copyright 2020 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 UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplicat... | samples/platform_channels/ios/Runner/AppDelegate.swift/0 | {
"file_path": "samples/platform_channels/ios/Runner/AppDelegate.swift",
"repo_id": "samples",
"token_count": 1814
} | 1,228 |
// Copyright 2020 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';
import 'package:go_router/go_router.dart';
import 'package:platform_channels/src/pet_list_message_channel.dart';
/// ... | samples/platform_channels/lib/src/add_pet_details.dart/0 | {
"file_path": "samples/platform_channels/lib/src/add_pet_details.dart",
"repo_id": "samples",
"token_count": 1285
} | 1,229 |
// Copyright 2020 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_lorem/flutt... | samples/platform_design/lib/news_tab.dart/0 | {
"file_path": "samples/platform_design/lib/news_tab.dart",
"repo_id": "samples",
"token_count": 1728
} | 1,230 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| samples/provider_counter/android/gradle.properties/0 | {
"file_path": "samples/provider_counter/android/gradle.properties",
"repo_id": "samples",
"token_count": 31
} | 1,231 |
include: package:analysis_defaults/flutter.yaml
| samples/provider_shopper/analysis_options.yaml/0 | {
"file_path": "samples/provider_shopper/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,232 |
// 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:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:go_router/go_ro... | samples/provider_shopper/lib/main.dart/0 | {
"file_path": "samples/provider_shopper/lib/main.dart",
"repo_id": "samples",
"token_count": 1104
} | 1,233 |
// 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';
import 'package:flutter_test/flutter_test.dart';
import 'package:provider_shopper/main.dart';
void main() {
testWid... | samples/provider_shopper/test/widget_test.dart/0 | {
"file_path": "samples/provider_shopper/test/widget_test.dart",
"repo_id": "samples",
"token_count": 380
} | 1,234 |
#version 460 core
#include <flutter/runtime_effect.glsl>
precision mediump float;
uniform vec2 resolution;
out vec4 fragColor;
vec3 flutterBlue = vec3(5, 83, 177) / 255;
vec3 flutterNavy = vec3(4, 43, 89) / 255;
vec3 flutterSky = vec3(2, 125, 253) / 255;
void main() {
vec2 st = FlutterFragCoord().xy / resolution... | samples/simple_shader/shaders/simple.frag/0 | {
"file_path": "samples/simple_shader/shaders/simple.frag",
"repo_id": "samples",
"token_count": 234
} | 1,235 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| samples/simplistic_editor/android/gradle.properties/0 | {
"file_path": "samples/simplistic_editor/android/gradle.properties",
"repo_id": "samples",
"token_count": 31
} | 1,236 |
import 'dart:math' as math;
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
/// Signature for the generator function that produces an [InlineSpan] for replacement
/// in a [TextEditingInlineSpanReplacement].
///
/// This function takes a String which is the matched substring to be repla... | samples/simplistic_editor/lib/replacements.dart/0 | {
"file_path": "samples/simplistic_editor/lib/replacements.dart",
"repo_id": "samples",
"token_count": 11583
} | 1,237 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| samples/simplistic_editor/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "samples/simplistic_editor/macos/Runner/Configs/Release.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,238 |
name: testing_app
description: A sample that shows testing in Flutter.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.3
provider: ^6.0.2
go_router: ">=10.0.0 <14.0.0"
dev_dependencies:
analysis_defaults:
path: ../analysis_defaults
integrati... | samples/testing_app/pubspec.yaml/0 | {
"file_path": "samples/testing_app/pubspec.yaml",
"repo_id": "samples",
"token_count": 190
} | 1,239 |
function ci_projects () {
local channel="$1"
shift
local arr=("$@")
for PROJECT_NAME in "${arr[@]}"
do
echo "== Testing '${PROJECT_NAME}' on Flutter's $channel channel =="
pushd "${PROJECT_NAME}"
# Grab packages.
flutter pub get
# Run the analyzer to find a... | samples/tool/flutter_ci_script_shared.sh/0 | {
"file_path": "samples/tool/flutter_ci_script_shared.sh",
"repo_id": "samples",
"token_count": 405
} | 1,240 |
// Copyright 2018 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/cupertino.dart';
import 'package:veggieseasons/data/veggie.dart';
class LocalVeggieProvider {
static List<Veggie> veggies = [
V... | samples/veggieseasons/lib/data/local_veggie_provider.dart/0 | {
"file_path": "samples/veggieseasons/lib/data/local_veggie_provider.dart",
"repo_id": "samples",
"token_count": 19558
} | 1,241 |
// Copyright 2018 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/cupertino.dart';
import 'package:go_router/go_router.dart';
import 'package:veggieseasons/data/veggie.dart';
... | samples/veggieseasons/lib/widgets/veggie_card.dart/0 | {
"file_path": "samples/veggieseasons/lib/widgets/veggie_card.dart",
"repo_id": "samples",
"token_count": 2042
} | 1,242 |
// Copyright 2018 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/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:shared_preferences/shared_preferences.dart';
import ... | samples/veggieseasons/test/restoration_test.dart/0 | {
"file_path": "samples/veggieseasons/test/restoration_test.dart",
"repo_id": "samples",
"token_count": 2571
} | 1,243 |
// 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 'dart:io';
import 'package:path/path.dart' as p;
import 'common.dart';
import 'fix_base_tags.dart';
const ignoredDirectories = [
'_tool',
'_package... | samples/web/_tool/build_ci.dart/0 | {
"file_path": "samples/web/_tool/build_ci.dart",
"repo_id": "samples",
"token_count": 690
} | 1,244 |
# Flutter samples index generator
This tool is used to generate the visual
[samples index for Flutter samples](https://flutter.github.io/samples/).
## Generating the index
We use [grinder](https://pub.dev/packages/grinder) to run the build tasks:
```bash
$ dart pub get
$ dart run grinder generate
```
This will ge... | samples/web/samples_index/README.md/0 | {
"file_path": "samples/web/samples_index/README.md",
"repo_id": "samples",
"token_count": 216
} | 1,245 |
import 'dart:html';
import 'package:mdc_web/mdc_web.dart';
import 'package:samples_index/src/carousel.dart';
void main() {
querySelectorAll('.mdc-card__primary-action').forEach((el) => MDCRipple(el));
// Initialize carousel
// This carousel will use the div slider-container as the base
// withArrowKeyControl... | samples/web/samples_index/web/description.dart/0 | {
"file_path": "samples/web/samples_index/web/description.dart",
"repo_id": "samples",
"token_count": 137
} | 1,246 |
# ng-flutter
This Angular project is a simple example of how Angular and Flutter
web apps could be integrated, and have them interop.
## Points of Interest
### Angular
This repository is a quite standard Angular app. The following changes were made
to be able to use (and interop) with a Flutter web application:
* ... | samples/web_embedding/ng-flutter/README.md/0 | {
"file_path": "samples/web_embedding/ng-flutter/README.md",
"repo_id": "samples",
"token_count": 1415
} | 1,247 |
html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
/* FX */
.fx-resize {
width: 480px !important;
height: 320px !important;
}
.fx-spin { animation: spin 6400ms ease-in-out infinite; }
.fx-shadow { position: relative; overflow: visible !important; }
.fx-shadow::befor... | samples/web_embedding/ng-flutter/src/styles.css/0 | {
"file_path": "samples/web_embedding/ng-flutter/src/styles.css",
"repo_id": "samples",
"token_count": 536
} | 1,248 |
If you would like to contribute to the Flutter project,
we’re happy to have your help! Anyone can contribute, whether you’re new to
the project or you’ve been around a long time, and whether you self-identify
as a developer, an end user, or someone who just can’t stand seeing typos.
If you aren't familiar with how Gi... | website/CONTRIBUTING.md/0 | {
"file_path": "website/CONTRIBUTING.md",
"repo_id": "website",
"token_count": 912
} | 1,249 |
import 'package:flutter/material.dart';
void main() => runApp(const LogoApp());
// #docregion LogoWidget
class LogoWidget extends StatelessWidget {
const LogoWidget({super.key});
// Leave out the height and width so it fills the animating parent
@override
Widget build(BuildContext context) {
return Conta... | website/examples/animation/animate4/lib/main.dart/0 | {
"file_path": "website/examples/animation/animate4/lib/main.dart",
"repo_id": "website",
"token_count": 684
} | 1,250 |
import 'package:flutter/material.dart';
// ignore_for_file: prefer_final_fields
// ignore_for_file: unused_field
// #docregion Starter
// The StatefulWidget's job is to take data and create a State class.
// In this case, the widget takes a title, and creates a _MyHomePageState.
class MyHomePage extends StatefulWidget... | website/examples/cookbook/animation/opacity_animation/lib/starter.dart/0 | {
"file_path": "website/examples/cookbook/animation/opacity_animation/lib/starter.dart",
"repo_id": "website",
"token_count": 264
} | 1,251 |
name: drawer
description: Sample code for drawer cookbook recipe.
environment:
sdk: ^3.3.0
dependencies:
flutter:
sdk: flutter
dev_dependencies:
example_utils:
path: ../../../example_utils
flutter:
uses-material-design: true
| website/examples/cookbook/design/drawer/pubspec.yaml/0 | {
"file_path": "website/examples/cookbook/design/drawer/pubspec.yaml",
"repo_id": "website",
"token_count": 89
} | 1,252 |
import 'package:flutter/material.dart';
// #docregion VisualStates
enum DownloadStatus {
notDownloaded,
fetchingDownload,
downloading,
downloaded,
}
@immutable
class DownloadButton extends StatelessWidget {
const DownloadButton({
super.key,
required this.status,
this.transitionDuration = const D... | website/examples/cookbook/effects/download_button/lib/visual_states.dart/0 | {
"file_path": "website/examples/cookbook/effects/download_button/lib/visual_states.dart",
"repo_id": "website",
"token_count": 185
} | 1,253 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.