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 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import '../platform_interface/quick_actions_platform.dart'; import '../t...
plugins/packages/quick_actions/quick_actions_platform_interface/lib/method_channel/method_channel_quick_actions.dart/0
{ "file_path": "plugins/packages/quick_actions/quick_actions_platform_interface/lib/method_channel/method_channel_quick_actions.dart", "repo_id": "plugins", "token_count": 525 }
1,271
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'p...
plugins/packages/shared_preferences/shared_preferences_android/example/integration_test/shared_preferences_test.dart/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_android/example/integration_test/shared_preferences_test.dart", "repo_id": "plugins", "token_count": 2298 }
1,272
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:flutter/services.dart'; import 'shared_preferences_platform_interface.dart'; const MethodChannel _kChannel = Me...
plugins/packages/shared_preferences/shared_preferences_platform_interface/lib/method_channel_shared_preferences.dart/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_platform_interface/lib/method_channel_shared_preferences.dart", "repo_id": "plugins", "token_count": 477 }
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 'dart:async'; import 'dart:convert' show json; import 'dart:html' as html; import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'p...
plugins/packages/shared_preferences/shared_preferences_web/lib/shared_preferences_web.dart/0
{ "file_path": "plugins/packages/shared_preferences/shared_preferences_web/lib/shared_preferences_web.dart", "repo_id": "plugins", "token_count": 902 }
1,274
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.flutter.plugins.urllauncherexample"> <!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reloa...
plugins/packages/url_launcher/url_launcher/example/android/app/src/main/AndroidManifest.xml/0
{ "file_path": "plugins/packages/url_launcher/url_launcher/example/android/app/src/main/AndroidManifest.xml", "repo_id": "plugins", "token_count": 687 }
1,275
name: url_launcher description: Flutter plugin for launching a URL. Supports web, phone, SMS, and email schemes. repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 v...
plugins/packages/url_launcher/url_launcher/pubspec.yaml/0
{ "file_path": "plugins/packages/url_launcher/url_launcher/pubspec.yaml", "repo_id": "plugins", "token_count": 573 }
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.urllauncher; import android.annotation.TargetApi; import android.app.Activity; import android.content.BroadcastReceiver; import...
plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java", "repo_id": "plugins", "token_count": 2389 }
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. @import XCTest; @import os.log; @interface URLLauncherUITests : XCTestCase @property(nonatomic, strong) XCUIApplication *app; @end @implementation URLLau...
plugins/packages/url_launcher/url_launcher_ios/example/ios/RunnerUITests/URLLauncherUITests.m/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_ios/example/ios/RunnerUITests/URLLauncherUITests.m", "repo_id": "plugins", "token_count": 478 }
1,278
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
plugins/packages/url_launcher/url_launcher_macos/example/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "plugins/packages/url_launcher/url_launcher_macos/example/macos/Runner/Configs/Debug.xcconfig", "repo_id": "plugins", "token_count": 32 }
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 (v2.0.1), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_co...
plugins/packages/video_player/video_player_android/test/test_api.g.dart/0
{ "file_path": "plugins/packages/video_player/video_player_android/test/test_api.g.dart", "repo_id": "plugins", "token_count": 5205 }
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. // Autogenerated from Pigeon (v2.0.1), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_co...
plugins/packages/video_player/video_player_avfoundation/lib/src/messages.g.dart/0
{ "file_path": "plugins/packages/video_player/video_player_avfoundation/lib/src/messages.g.dart", "repo_id": "plugins", "token_count": 6581 }
1,281
## NEXT * Updates minimum Flutter version to 3.0. ## 2.0.13 * Adds compatibilty with version 6.0 of the platform interface. * Updates minimum Flutter version to 2.10. ## 2.0.12 * Updates the `README` with: * Information about a common known issue: "Some videos restart when using the seek bar/progress bar/scrub...
plugins/packages/video_player/video_player_web/CHANGELOG.md/0
{ "file_path": "plugins/packages/video_player/video_player_web/CHANGELOG.md", "repo_id": "plugins", "token_count": 1212 }
1,282
name: webview_flutter_example description: Demonstrates how to use the webview_flutter plugin. publish_to: none environment: sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: flutter: sdk: flutter path_provider: ^2.0.6 webview_flutter: # When depending on this package from a real application y...
plugins/packages/webview_flutter/webview_flutter/example/pubspec.yaml/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter/example/pubspec.yaml", "repo_id": "plugins", "token_count": 415 }
1,283
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dar...
plugins/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart", "repo_id": "plugins", "token_count": 3785 }
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. package io.flutter.plugins.webviewflutter; import android.webkit.DownloadListener; import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plug...
plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DownloadListenerFlutterApiImpl.java/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/DownloadListenerFlutterApiImpl.java", "repo_id": "plugins", "token_count": 579 }
1,285
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package io.flutter.plugins.webviewflutter; import android.webkit.WebSettings; import android.webkit.WebView; import io.flutter.plugins.webviewflutter.Gene...
plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebSettingsHostApiImpl.java/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebSettingsHostApiImpl.java", "repo_id": "plugins", "token_count": 1314 }
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. package io.flutter.plugins.webviewflutter; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.fail; import static org.mockit...
plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/PluginBindingFlutterAssetManagerTest.java/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/PluginBindingFlutterAssetManagerTest.java", "repo_id": "plugins", "token_count": 630 }
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. package io.flutter.plugins.webviewflutterexample; import static org.junit.Assert.assertTrue; import androidx.test.core.app.ActivityScenario; import io.fl...
plugins/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/webviewflutterexample/WebViewTest.java/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/webviewflutterexample/WebViewTest.java", "repo_id": "plugins", "token_count": 244 }
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. // TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#104231) // ignore: unnecessary_import import 'dart:as...
plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart", "repo_id": "plugins", "token_count": 11135 }
1,289
// Mocks generated by Mockito 5.3.2 from annotations // in webview_flutter_android/test/android_webview_controller_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i9; import 'dart:typed_data' as _i14; import 'dart:ui' as _i4; import...
plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart", "repo_id": "plugins", "token_count": 32096 }
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 '../types/javascript_channel.dart'; import '../types/javascript_message.dart'; /// Utility class for managing named JavaScript channels and forward...
plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/javascript_channel_registry.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/platform_interface/javascript_channel_registry.dart", "repo_id": "plugins", "token_count": 411 }
1,291
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:typed_data'; /// Defines the supported HTTP methods for loading a page in [WebView]. enum WebViewRequestMethod { /// HTTP GET method. get...
plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/webview_request.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/webview_request.dart", "repo_id": "plugins", "token_count": 491 }
1,292
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart'; /// A cookie that can be set globally for all web views using [WebViewCookieManagerPlatform]. @immutable class W...
plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_cookie.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/webview_cookie.dart", "repo_id": "plugins", "token_count": 482 }
1,293
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // 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_wkwebview/example/integration_test/webview_flutter_test.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/webview_flutter_test.dart", "repo_id": "plugins", "token_count": 16964 }
1,294
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @import Flutter; @import XCTest; @import webview_flutter_wkwebview; #import <OCMock/OCMock.h> @interface FWFWebViewConfigurationHostApiTests : XCTestCase...
plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFWebViewConfigurationHostApiTests.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFWebViewConfigurationHostApiTests.m", "repo_id": "plugins", "token_count": 1929 }
1,295
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "FWFGeneratedWebKitApis.h" #import <WebKit/WebKit.h> NS_ASSUME_NONNULL_BEGIN /** * Converts an FWFNSUrlRequestData to an NSURLRequest. * * @p...
plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFDataConverters.h/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFDataConverters.h", "repo_id": "plugins", "token_count": 1732 }
1,296
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "FWFScriptMessageHandlerHostApi.h" #import "FWFDataConverters.h" @interface FWFScriptMessageHandlerFlutterApiImpl () // InstanceManager must be we...
plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScriptMessageHandlerHostApi.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFScriptMessageHandlerHostApi.m", "repo_id": "plugins", "token_count": 1740 }
1,297
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "FWFWebsiteDataStoreHostApi.h" #import "FWFDataConverters.h" #import "FWFWebViewConfigurationHostApi.h" @interface FWFWebsiteDataStoreHostApiImpl ...
plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebsiteDataStoreHostApi.m/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebsiteDataStoreHostApi.m", "repo_id": "plugins", "token_count": 1357 }
1,298
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'common/instance_manager.dart'; import 'foundation/foundation.dart'; import 'web_kit/web_kit.dart'; // This convenience method was added because Da...
plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_proxy.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_proxy.dart", "repo_id": "plugins", "token_count": 970 }
1,299
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; im...
plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart/0
{ "file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart", "repo_id": "plugins", "token_count": 1546 }
1,300
# Currently missing: https://github.com/flutter/flutter/issues/82208 - ios_platform_images # Can't use Flutter integration tests due to native modal UI. - file_selector_ios - file_selector
plugins/script/configs/exclude_integration_ios.yaml/0
{ "file_path": "plugins/script/configs/exclude_integration_ios.yaml", "repo_id": "plugins", "token_count": 58 }
1,301
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io' as io; import 'dart:math'; import 'package:args/command_runner.dart'; import 'package:file/file.dart'; import 'package:git/git.dart'; imp...
plugins/script/tool/lib/src/common/package_command.dart/0
{ "file_path": "plugins/script/tool/lib/src/common/package_command.dart", "repo_id": "plugins", "token_count": 8533 }
1,302
# Add-to-App Samples This directory contains Android and iOS projects that import and use a Flutter module. They're designed to show recommended approaches for [adding Flutter to existing Android and iOS apps](https://docs.flutter.dev/add-to-app). ## Samples Listing * [`fullscreen`](./fullscreen) — Embeds a full scr...
samples/add_to_app/README.md/0
{ "file_path": "samples/add_to_app/README.md", "repo_id": "samples", "token_count": 746 }
1,303
<?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" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent"> ...
samples/add_to_app/android_view/android_view/app/src/main/res/layout/activity_main.xml/0
{ "file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/layout/activity_main.xml", "repo_id": "samples", "token_count": 216 }
1,304
<resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> </resources>
samples/add_to_app/android_view/android_view/app/src/main/res/values/dimens.xml/0
{ "file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/values/dimens.xml", "repo_id": "samples", "token_count": 67 }
1,305
// This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility that Flutter provides. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the value...
samples/add_to_app/android_view/flutter_module_using_plugin/test/widget_test.dart/0
{ "file_path": "samples/add_to_app/android_view/flutter_module_using_plugin/test/widget_test.dart", "repo_id": "samples", "token_count": 499 }
1,306
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" > <com.google.android.material.card.MaterialCardView an...
samples/add_to_app/books/android_books/app/src/main/res/layout/book_card.xml/0
{ "file_path": "samples/add_to_app/books/android_books/app/src/main/res/layout/book_card.xml", "repo_id": "samples", "token_count": 1270 }
1,307
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = "1.6.0" repositories { google() mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:4.1.2" classpath "org.jetbrains...
samples/add_to_app/books/android_books/build.gradle/0
{ "file_path": "samples/add_to_app/books/android_books/build.gradle", "repo_id": "samples", "token_count": 256 }
1,308
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="col...
samples/add_to_app/fullscreen/android_fullscreen/app/src/main/res/values/styles.xml/0
{ "file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/main/res/values/styles.xml", "repo_id": "samples", "token_count": 139 }
1,309
// 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_driver/driver_extension.dart'; import 'package:flutter_module/main.dart' as app; // This alternate entrypoint is used for espresso te...
samples/add_to_app/fullscreen/flutter_module/test_driver/example.dart/0
{ "file_path": "samples/add_to_app/fullscreen/flutter_module/test_driver/example.dart", "repo_id": "samples", "token_count": 129 }
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. import XCTest @testable import IOSFullScreen class IOSFullScreenTests: XCTestCase { override func setUp() { // Put setup code here. This method ...
samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift/0
{ "file_path": "samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift", "repo_id": "samples", "token_count": 304 }
1,311
package dev.flutter.multipleflutters import android.app.Activity import io.flutter.FlutterInjector import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.dart.DartExecutor import io.flutter.plugin.common.MethodChannel /** * This interface represents the notifications an EngineBindings ma...
samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/EngineBindings.kt/0
{ "file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/EngineBindings.kt", "repo_id": "samples", "token_count": 1079 }
1,312
# multiple_flutters_ios This is an add-to-app sample that uses the Flutter Engine Group API to host multiple instances of Flutter in an iOS app. ## Getting Started ```sh cd ../multiple_flutters_module flutter pub get cd - pod install open MultipleFluttersIos.xcworkspace # (build and run) ``` For more information se...
samples/add_to_app/multiple_flutters/multiple_flutters_ios/README.md/0
{ "file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/README.md", "repo_id": "samples", "token_count": 116 }
1,313
<resources> <string name="app_name">AndroidUsingPlugin</string> </resources>
samples/add_to_app/plugin/android_using_plugin/app/src/main/res/values/strings.xml/0
{ "file_path": "samples/add_to_app/plugin/android_using_plugin/app/src/main/res/values/strings.xml", "repo_id": "samples", "token_count": 26 }
1,314
name: analysis_defaults description: Analysis defaults for flutter/samples publish_to: none environment: sdk: ^3.2.0 # NOTE: Code is not allowed in this package. Do not add more dependencies. # The `flutter_lints` dependency is required for `lib/flutter.yaml`. dependencies: flutter_lints: ^3.0.0
samples/analysis_defaults/pubspec.yaml/0
{ "file_path": "samples/analysis_defaults/pubspec.yaml", "repo_id": "samples", "token_count": 100 }
1,315
// 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'; class AnimatedListDemo extends StatefulWidget { const AnimatedListDemo({super.key}); static String routeName = 'm...
samples/animations/lib/src/misc/animated_list.dart/0
{ "file_path": "samples/animations/lib/src/misc/animated_list.dart", "repo_id": "samples", "token_count": 1315 }
1,316
A server app built using [Shelf](https://pub.dev/packages/shelf), configured to enable running with [Docker](https://www.docker.com/). This sample code handles HTTP GET requests to `/` and `/echo/<message>` # Running the sample ## Running with the Dart SDK You can run the example with the [Dart SDK](https://dart.de...
samples/code_sharing/server/README.md/0
{ "file_path": "samples/code_sharing/server/README.md", "repo_id": "samples", "token_count": 442 }
1,317
const String kCodeUrl = 'https://github.com/flutter/samples/blob/experimental/context_menus/lib';
samples/context_menus/lib/constants.dart/0
{ "file_path": "samples/context_menus/lib/constants.dart", "repo_id": "samples", "token_count": 37 }
1,318
import 'package:context_menus/field_types_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 main()...
samples/context_menus/test/field_types_page_test.dart/0
{ "file_path": "samples/context_menus/test/field_types_page_test.dart", "repo_id": "samples", "token_count": 2733 }
1,319
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
samples/deeplink_store_example/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "samples/deeplink_store_example/macos/Runner/Configs/Debug.xcconfig", "repo_id": "samples", "token_count": 32 }
1,320
// 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 'api_error.dart'; // ************************************************************************** // BuiltVa...
samples/desktop_photo_search/fluent_ui/lib/src/unsplash/api_error.g.dart/0
{ "file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/api_error.g.dart", "repo_id": "samples", "token_count": 1523 }
1,321
// 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 'tags.dart'; // ************************************************************************** // BuiltValueGe...
samples/desktop_photo_search/fluent_ui/lib/src/unsplash/tags.g.dart/0
{ "file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/tags.g.dart", "repo_id": "samples", "token_count": 1208 }
1,322
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <file_selector_linux/file_selector_plugin.h> #include <menubar/menubar_plugin.h> #include <url_launcher_linux/url_launcher_plugin.h> #include <window_size/window_size_plugin.h> void fl_register_plugins(FlPlu...
samples/desktop_photo_search/fluent_ui/linux/flutter/generated_plugin_registrant.cc/0
{ "file_path": "samples/desktop_photo_search/fluent_ui/linux/flutter/generated_plugin_registrant.cc", "repo_id": "samples", "token_count": 455 }
1,323
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
samples/desktop_photo_search/material/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "samples/desktop_photo_search/material/macos/Runner/Configs/Release.xcconfig", "repo_id": "samples", "token_count": 32 }
1,324
# federated_plugin A Flutter plugin sample that shows how to implement a federated plugin to retrieve current battery level on different platforms. This sample is currently being built. Not all platforms and functionality are in place. ## Goals for this sample * Show how to develop a federated plugin which supports...
samples/experimental/federated_plugin/README.md/0
{ "file_path": "samples/experimental/federated_plugin/README.md", "repo_id": "samples", "token_count": 231 }
1,325
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
samples/experimental/federated_plugin/federated_plugin/example/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "samples/experimental/federated_plugin/federated_plugin/example/macos/Runner/Configs/Release.xcconfig", "repo_id": "samples", "token_count": 32 }
1,326
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint federated_plugin_macos.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = 'federated_plugin_macos' s.version = '0.0.1' s.summary = 'A new flutter plugin pro...
samples/experimental/federated_plugin/federated_plugin_macos/macos/federated_plugin_macos.podspec/0
{ "file_path": "samples/experimental/federated_plugin/federated_plugin_macos/macos/federated_plugin_macos.podspec", "repo_id": "samples", "token_count": 378 }
1,327
// 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:http/http.dart' as http; import 'package:linting_tool/model/profiles_store.dart'; import 'package:lint...
samples/experimental/linting_tool/lib/app.dart/0
{ "file_path": "samples/experimental/linting_tool/lib/app.dart", "repo_id": "samples", "token_count": 706 }
1,328
// 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:hive/hive.dart'; class HiveService { static Future<bool> addBox<T>(T item, String boxName) async { final openBox = await Hive.openLazyB...
samples/experimental/linting_tool/lib/repository/hive_service.dart/0
{ "file_path": "samples/experimental/linting_tool/lib/repository/hive_service.dart", "repo_id": "samples", "token_count": 716 }
1,329
// The Android Gradle Plugin builds the native code with the Android NDK. group 'dev.flutter.pedometer' version '1.0' buildscript { repositories { google() mavenCentral() } dependencies { // The Android Gradle Plugin knows how to build native code with the NDK. classpath '...
samples/experimental/pedometer/android/build.gradle/0
{ "file_path": "samples/experimental/pedometer/android/build.gradle", "repo_id": "samples", "token_count": 638 }
1,330
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CADisableMinimumFrameDurationOnPhone</key> <true/> <key>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBun...
samples/experimental/pedometer/example/ios/Runner/Info.plist/0
{ "file_path": "samples/experimental/pedometer/example/ios/Runner/Info.plist", "repo_id": "samples", "token_count": 693 }
1,331
/* * Copyright (c) 2013, the Dart 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. */ #ifndef RUNTIME_INCLUDE_DART_NATIVE_API_H_ #define RUNTIME_INCLUDE_DART_NATIVE_API_H_ #include ...
samples/experimental/pedometer/src/dart-sdk/include/dart_native_api.h/0
{ "file_path": "samples/experimental/pedometer/src/dart-sdk/include/dart_native_api.h", "repo_id": "samples", "token_count": 2081 }
1,332
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleDisplayName</key> <string>Varfont Shader Puzzle</strin...
samples/experimental/varfont_shader_puzzle/ios/Runner/Info.plist/0
{ "file_path": "samples/experimental/varfont_shader_puzzle/ios/Runner/Info.plist", "repo_id": "samples", "token_count": 655 }
1,333
// Copyright 2023 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math'; import 'package:flutter/material.dart'; import '../components/components.dart'; import '../page_content/pages_flow.dart'; import '../sty...
samples/experimental/varfont_shader_puzzle/lib/page_content/page_width.dart/0
{ "file_path": "samples/experimental/varfont_shader_puzzle/lib/page_content/page_width.dart", "repo_id": "samples", "token_count": 3341 }
1,334
// 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. #define PI 3.1415926538 uniform float uTime; uniform vec2 uSize; uniform float uDampener; out vec4 fragColor; uniform sampler2D uTexture; void main() { ...
samples/experimental/varfont_shader_puzzle/shaders/wavy.frag/0
{ "file_path": "samples/experimental/varfont_shader_puzzle/shaders/wavy.frag", "repo_id": "samples", "token_count": 293 }
1,335
// 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 'dart:async'; import 'dart:math'; import 'package:collection/collection.dart'; import 'package:uu...
samples/experimental/web_dashboard/lib/src/api/mock.dart/0
{ "file_path": "samples/experimental/web_dashboard/lib/src/api/mock.dart", "repo_id": "samples", "token_count": 1448 }
1,336
// 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'; bool _isLargeScreen(BuildContext context) { return MediaQuery....
samples/experimental/web_dashboard/lib/src/widgets/third_party/adaptive_scaffold.dart/0
{ "file_path": "samples/experimental/web_dashboard/lib/src/widgets/third_party/adaptive_scaffold.dart", "repo_id": "samples", "token_count": 2122 }
1,337
include: package:analysis_defaults/flutter.yaml
samples/form_app/analysis_options.yaml/0
{ "file_path": "samples/form_app/analysis_options.yaml", "repo_id": "samples", "token_count": 15 }
1,338
import 'dart:convert'; import 'package:http/http.dart' as http; import 'package:http/testing.dart'; // Set up a mock HTTP client. final http.Client mockClient = MockClient(_mockHandler); Future<http.Response> _mockHandler(http.Request request) async { var decodedJson = Map<String, dynamic>.from( json.decode(...
samples/form_app/lib/src/http/mock_client.dart/0
{ "file_path": "samples/form_app/lib/src/http/mock_client.dart", "repo_id": "samples", "token_count": 176 }
1,339
// 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/foundation.dart'; /// Encapsulates a score and the arithmetic to compute it. @im...
samples/game_template/lib/src/games_services/score.dart/0
{ "file_path": "samples/game_template/lib/src/games_services/score.dart", "repo_id": "samples", "token_count": 473 }
1,340
// 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/settings/settings_screen.dart/0
{ "file_path": "samples/game_template/lib/src/settings/settings_screen.dart", "repo_id": "samples", "token_count": 2916 }
1,341
name: infinitelist description: > A sample implementation of an infinite list. publish_to: none version: 1.0.0+1 environment: sdk: ^3.2.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 meta: ^1.3.0 provider: ^6.0.2 window_size: git: url: https://github.com/google/flutter-desk...
samples/infinite_list/pubspec.yaml/0
{ "file_path": "samples/infinite_list/pubspec.yaml", "repo_id": "samples", "token_count": 211 }
1,342
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
samples/isolate_example/android/gradle.properties/0
{ "file_path": "samples/isolate_example/android/gradle.properties", "repo_id": "samples", "token_count": 30 }
1,343
// 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:convert'; import 'package:flutter/material.dart'; import 'package:web_startup_analyzer/web_startup_analyzer.dart'; import 'constants.dart'; imp...
samples/material_3_demo/lib/main.dart/0
{ "file_path": "samples/material_3_demo/lib/main.dart", "repo_id": "samples", "token_count": 1430 }
1,344
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
samples/material_3_demo/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "samples/material_3_demo/macos/Runner/Configs/Debug.xcconfig", "repo_id": "samples", "token_count": 32 }
1,345
// 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'; class BooksScreen extends StatefulWidget { final Widget child;...
samples/navigation_and_routing/lib/src/screens/books.dart/0
{ "file_path": "samples/navigation_and_routing/lib/src/screens/books.dart", "repo_id": "samples", "token_count": 700 }
1,346
// 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:provider/provider.dart'; import 'place.dart'; import 'plac...
samples/place_tracker/lib/place_list.dart/0
{ "file_path": "samples/place_tracker/lib/place_list.dart", "repo_id": "samples", "token_count": 2285 }
1,347
include: package:analysis_defaults/flutter.yaml
samples/platform_channels/analysis_options.yaml/0
{ "file_path": "samples/platform_channels/analysis_options.yaml", "repo_id": "samples", "token_count": 15 }
1,348
// 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:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:platform_chan...
samples/platform_channels/test/src/event_channel_demo_test.dart/0
{ "file_path": "samples/platform_channels/test/src/event_channel_demo_test.dart", "repo_id": "samples", "token_count": 1010 }
1,349
#include "Generated.xcconfig"
samples/platform_design/ios/Flutter/Release.xcconfig/0
{ "file_path": "samples/platform_design/ios/Flutter/Release.xcconfig", "repo_id": "samples", "token_count": 12 }
1,350
// Copyright 2019 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:io' show Platform; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/material.dart'; import 'package:provider/pr...
samples/provider_counter/lib/main.dart/0
{ "file_path": "samples/provider_counter/lib/main.dart", "repo_id": "samples", "token_count": 1586 }
1,351
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
samples/provider_counter/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "samples/provider_counter/macos/Runner/Configs/Release.xcconfig", "repo_id": "samples", "token_count": 32 }
1,352
import 'package:flutter/widgets.dart'; import 'app_state.dart'; class AppStateManager extends InheritedWidget { const AppStateManager({ super.key, required super.child, required AppState state, }) : _appState = state; static AppStateManager of(BuildContext context) { final AppStateManager? resu...
samples/simplistic_editor/lib/app_state_manager.dart/0
{ "file_path": "samples/simplistic_editor/lib/app_state_manager.dart", "repo_id": "samples", "token_count": 219 }
1,353
// 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:developer'; import 'package:integration_test/integration_test_driver.dart'; Future<void> main() { return integrationDriver( responseDataC...
samples/testing_app/integration_test/perf_driver.dart/0
{ "file_path": "samples/testing_app/integration_test/perf_driver.dart", "repo_id": "samples", "token_count": 290 }
1,354
// 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:veggieseasons/styles.dart'; /// Partially overlays and then blurs its child...
samples/veggieseasons/lib/widgets/close_button.dart/0
{ "file_path": "samples/veggieseasons/lib/widgets/close_button.dart", "repo_id": "samples", "token_count": 1279 }
1,355
# 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 and should not be manually edited. version: revision: "f5fb61b953a631f47191124a31169701911ee1f4" channel: "main" project_type: app # Tracks met...
samples/web/_packages/web_startup_analyzer/example/.metadata/0
{ "file_path": "samples/web/_packages/web_startup_analyzer/example/.metadata", "repo_id": "samples", "token_count": 738 }
1,356
# Configuration for https://pub.dartlang.org/packages/peanut directories: - animations/web - provider_shopper/web - charts/web - filipino_cuisine/web - github_dataviz/web - particle_background/web - slide_puzzle/web - form_app/web - web_dashboard/web - place_tracker/web post-build-dart-script: _tool/peanut_post_build...
samples/web/peanut.yaml/0
{ "file_path": "samples/web/peanut.yaml", "repo_id": "samples", "token_count": 122 }
1,357
name: samples_index description: A visual index of Flutter samples. homepage: https://github.com/flutter/samples/tree/main/web/samples_index version: 0.0.1 publish_to: none environment: sdk: ^3.2.0 dependencies: checked_yaml: ^2.0.3 json_annotation: ^4.8.1 mdc_web: ^0.6.0 path: ^1.8.3 sass_builder: ^2.2.1...
samples/web/samples_index/pubspec.yaml/0
{ "file_path": "samples/web/samples_index/pubspec.yaml", "repo_id": "samples", "token_count": 392 }
1,358
# element_embedding_demo This package contains the application used to demonstrate the upcoming Flutter web feature: "Element Embedding". This was first shown on the Flutter Forward event in Nairobi (Kenya), by Tim Sneath. [See the replay here](https://www.youtube.com/watch?v=zKQYGKAe5W8&t=5799s). ## Running the dem...
samples/web_embedding/element_embedding_demo/README.md/0
{ "file_path": "samples/web_embedding/element_embedding_demo/README.md", "repo_id": "samples", "token_count": 257 }
1,359
<!DOCTYPE html> <html> <head> <base href="/" /> <meta charset="UTF-8" /> <meta content="IE=Edge" http-equiv="X-UA-Compatible" /> <meta name="description" content="A Flutter Web Element embedding demo." /> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes" ...
samples/web_embedding/element_embedding_demo/web/index.html/0
{ "file_path": "samples/web_embedding/element_embedding_demo/web/index.html", "repo_id": "samples", "token_count": 1595 }
1,360
import 'package:flutter/material.dart'; class TextFieldDemo extends StatefulWidget { const TextFieldDemo({super.key, required this.text}); final ValueNotifier<String> text; @override State<TextFieldDemo> createState() => _TextFieldDemoState(); } class _TextFieldDemoState extends State<TextFieldDemo> { late...
samples/web_embedding/ng-flutter/flutter/lib/pages/text.dart/0
{ "file_path": "samples/web_embedding/ng-flutter/flutter/lib/pages/text.dart", "repo_id": "samples", "token_count": 697 }
1,361
import { Component, AfterViewInit, SimpleChanges, ViewChild, ElementRef, Input, EventEmitter, Output } from '@angular/core'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; // The global _flutter namespace declare var _flutter: any; declare var window: { _debug: any }; @Component({ ...
samples/web_embedding/ng-flutter/src/app/ng-flutter/ng-flutter.component.ts/0
{ "file_path": "samples/web_embedding/ng-flutter/src/app/ng-flutter/ng-flutter.component.ts", "repo_id": "samples", "token_count": 641 }
1,362
#!/bin/bash set -e deploy_to_firebase_staging_channel () { echo "Deploying website to a staging channel on firebase..." # Deploy to firebase, but save the output to a variable so we can grep the # url from the output and save it to FIREBASE_STAGING_URL for future use. FIREBASE_DEPLOY_RESPONSE=$(fireba...
website/cloud_build/scripts/stage_site_and_comment_on_github.sh/0
{ "file_path": "website/cloud_build/scripts/stage_site_and_comment_on_github.sh", "repo_id": "website", "token_count": 517 }
1,363
The samples in this folder used to be under `src/_includes/code`. Despite that, the sources were not being included anywhere. It is likely that the sources appear in some pages none-the-less. What needs to be done is the following: - Each app/sample needs to be fully reviewed (and potentially simplified). - If the sou...
website/examples/_animation/README.md/0
{ "file_path": "website/examples/_animation/README.md", "repo_id": "website", "token_count": 207 }
1,364
// Copyright 2017 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. // Tap on the source route's photo to push a new route, // containing the same photo at a different location and scale. // Return to the previous route by...
website/examples/_animation/hero_animation/lib/main.dart/0
{ "file_path": "website/examples/_animation/hero_animation/lib/main.dart", "repo_id": "website", "token_count": 1241 }
1,365
import 'package:flutter/material.dart'; void main() => runApp(const LogoApp()); class AnimatedLogo extends AnimatedWidget { const AnimatedLogo({super.key, required Animation<double> animation}) : super(listenable: animation); @override Widget build(BuildContext context) { final animation = listenable...
website/examples/animation/animate3/lib/main.dart/0
{ "file_path": "website/examples/animation/animate3/lib/main.dart", "repo_id": "website", "token_count": 605 }
1,366
import 'dart:math'; import 'package:flutter/material.dart'; void main() => runApp(const AnimatedContainerApp()); class AnimatedContainerApp extends StatefulWidget { const AnimatedContainerApp({super.key}); @override State<AnimatedContainerApp> createState() => _AnimatedContainerAppState(); } class _AnimatedC...
website/examples/cookbook/animation/animated_container/lib/main.dart/0
{ "file_path": "website/examples/cookbook/animation/animated_container/lib/main.dart", "repo_id": "website", "token_count": 1084 }
1,367
import 'package:flutter/material.dart'; void main() { runApp(const MaterialApp(home: PhysicsCardDragDemo())); } class PhysicsCardDragDemo extends StatelessWidget { const PhysicsCardDragDemo({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(), body: c...
website/examples/cookbook/animation/physics_simulation/lib/step3.dart/0
{ "file_path": "website/examples/cookbook/animation/physics_simulation/lib/step3.dart", "repo_id": "website", "token_count": 944 }
1,368
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; // #docregion DisplayText @immutable class ButtonShapeWidget extends StatelessWidget { const ButtonShapeWidget({ super.key, required this.isDownloading, required this.isDownloaded, required this.isFetching, required ...
website/examples/cookbook/effects/download_button/lib/display_text.dart/0
{ "file_path": "website/examples/cookbook/effects/download_button/lib/display_text.dart", "repo_id": "website", "token_count": 655 }
1,369
// ignore_for_file: unused_element import 'package:flutter/material.dart'; @immutable class ExampleInstagramFilterSelection extends StatefulWidget { const ExampleInstagramFilterSelection({super.key}); @override State<ExampleInstagramFilterSelection> createState() => _ExampleInstagramFilterSelectionState(...
website/examples/cookbook/effects/photo_filter_carousel/lib/original_example.dart/0
{ "file_path": "website/examples/cookbook/effects/photo_filter_carousel/lib/original_example.dart", "repo_id": "website", "token_count": 3522 }
1,370