text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
name: url_launcher_example
description: Demonstrates how to use the url_launcher plugin.
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
url_launcher_linux:
# When depending on this package from a real application you should use:
# url_... | plugins/packages/url_launcher/url_launcher_linux/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 290
} | 1,322 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:url_launcher_platform_interface/ur... | plugins/packages/url_launcher/url_launcher_macos/example/lib/main.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 1101
} | 1,323 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'url_launcher_macos'
s.version = '0.0.1'
s.summary = 'Flutter macos plugin for launching a URL.'
s.description = <<-DESC
A macOS implementation of the url_la... | plugins/packages/url_launcher/url_launcher_macos/macos/url_launcher_macos.podspec/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_macos/macos/url_launcher_macos.podspec",
"repo_id": "plugins",
"token_count": 427
} | 1,324 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html' as html;
// Fake interface for the logic that this package needs from (web-only) dart:ui.
// This is conditionally exported so the anal... | plugins/packages/url_launcher/url_launcher_web/lib/src/shims/dart_ui_fake.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/lib/src/shims/dart_ui_fake.dart",
"repo_id": "plugins",
"token_count": 425
} | 1,325 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
| plugins/packages/video_player/video_player/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/video_player/video_player/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,326 |
// 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:pigeon/pigeon.dart';
@ConfigurePigeon(PigeonOptions(
dartOut: 'lib/src/messages.g.dart',
dartTestOut: 'test/test_api.g.dart',
javaOu... | plugins/packages/video_player/video_player_android/pigeons/messages.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_android/pigeons/messages.dart",
"repo_id": "plugins",
"token_count": 587
} | 1,327 |
// 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
#import "messages.g.h"
#import <Flutter/Flutter.h>... | plugins/packages/video_player/video_player_avfoundation/ios/Classes/messages.g.m/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/ios/Classes/messages.g.m",
"repo_id": "plugins",
"token_count": 8496
} | 1,328 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player_platform_interface/video_player_platform_interface.dart';
void main() {
te... | plugins/packages/video_player/video_player_platform_interface/test/video_player_options_test.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_platform_interface/test/video_player_options_test.dart",
"repo_id": "plugins",
"token_count": 224
} | 1,329 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The "length" of a video which doesn't have finite duration.
// See: https://github.com/flutter/flutter/issues/107882
const Duration jsCompatibleTimeUns... | plugins/packages/video_player/video_player_web/lib/src/duration_utils.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_web/lib/src/duration_utils.dart",
"repo_id": "plugins",
"token_count": 421
} | 1,330 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter/test/legacy/webview_flutter_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9;
import 'package:flutter/foundation.dart' as _i3;
import 'package:flutter/gest... | plugins/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart",
"repo_id": "plugins",
"token_count": 4963
} | 1,331 |
<manifest package="io.flutter.plugins.webviewflutter">
</manifest>
| plugins/packages/webview_flutter/webview_flutter_android/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 23
} | 1,332 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import android.os.Handler;
import android.os.IBinder;
import android.view.View;
import android.view.inputmethod... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ThreadedInputConnectionProxyAdapterView.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ThreadedInputConnectionProxyAdapterView.java",
"repo_id": "plugins",
"token_count": 1014
} | 1,333 |
// 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.junit.Assert.assertFalse;
import static org.juni... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/InstanceManagerTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/InstanceManagerTest.java",
"repo_id": "plugins",
"token_count": 1025
} | 1,334 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/webview_flutter/webview_flutter_android/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 30
} | 1,335 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(bparrishMines): Replace unused callback methods in constructors with
// variables once automatic garbage collection is fully implemented. See
// ht... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.dart",
"repo_id": "plugins",
"token_count": 11597
} | 1,336 |
name: webview_flutter_android
description: A Flutter plugin that provides a WebView widget on Android.
repository: https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
vers... | plugins/packages/webview_flutter/webview_flutter_android/pubspec.yaml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/pubspec.yaml",
"repo_id": "plugins",
"token_count": 352
} | 1,337 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.0.1
* Improves error message when a platform interface class is used before `WebViewPlatform.instance` has been set.
## 2.0.0
* **Breaking Change**: Releases new interface. See [documentation](https://pub.dev/documentation/webview_flutter_platform_interface/2.... | plugins/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 858
} | 1,338 |
// 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.
/// Possible error type categorizations used by [WebResourceError].
enum WebResourceErrorType {
/// User authentication failed on server.
authenticatio... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_resource_error_type.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_resource_error_type.dart",
"repo_id": "plugins",
"token_count": 370
} | 1,339 |
// 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/gestures.dart';
import 'package:flutter/painting.dart';
import '../platform_webview_cont... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_widget_creation_params.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_widget_creation_params.dart",
"repo_id": "plugins",
"token_count": 889
} | 1,340 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:plugin_platf... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart",
"repo_id": "plugins",
"token_count": 1103
} | 1,341 |
name: webview_flutter_web
description: A Flutter plugin that provides a WebView widget on web.
repository: https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
version: 0.2.2
... | plugins/packages/webview_flutter/webview_flutter_web/pubspec.yaml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_web/pubspec.yaml",
"repo_id": "plugins",
"token_count": 343
} | 1,342 |
// 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 FWFUIDelegateHostApiTests : XCTestCase
@end
@im... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIDelegateHostApiTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFUIDelegateHostApiTests.m",
"repo_id": "plugins",
"token_count": 1640
} | 1,343 |
// 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 <WebKit/WebKit.h>
#import "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
/**
* H... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.h/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.h",
"repo_id": "plugins",
"token_count": 203
} | 1,344 |
// 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:math';
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutter/flutter#106316)
// ... | plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit_api_impls.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit_api_impls.dart",
"repo_id": "plugins",
"token_count": 1209
} | 1,345 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v4.2.13), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_c... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/common/test_web_kit.g.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/src/common/test_web_kit.g.dart",
"repo_id": "plugins",
"token_count": 27552
} | 1,346 |
# Plugins that deliberately use their own analysis_options.yaml.
#
# This only exists to allow incrementally adopting new analysis options in
# cases where a new option can't be applied to the entire repository at
# once. Do not add anything to this file without an issue reference and
# a concrete plan for removing it ... | plugins/script/configs/custom_analysis.yaml/0 | {
"file_path": "plugins/script/configs/custom_analysis.yaml",
"repo_id": "plugins",
"token_count": 159
} | 1,347 |
// 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:file/file.dart';
import 'package:platform/platform.dart';
import 'package:yaml/yaml.dart';
import 'common/core.dart'... | plugins/script/tool/lib/src/analyze_command.dart/0 | {
"file_path": "plugins/script/tool/lib/src/analyze_command.dart",
"repo_id": "plugins",
"token_count": 1872
} | 1,348 |
<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="#FF000000"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>
| samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_home_black_24dp.xml/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_home_black_24dp.xml",
"repo_id": "samples",
"token_count": 146
} | 1,349 |
// 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:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:sensors/sensors.dart';
// This is on alt... | samples/add_to_app/android_view/flutter_module_using_plugin/lib/cell.dart/0 | {
"file_path": "samples/add_to_app/android_view/flutter_module_using_plugin/lib/cell.dart",
"repo_id": "samples",
"token_count": 2266
} | 1,350 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#6200EE</color>
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorAccent">#03DAC5</color>
</resources> | samples/add_to_app/books/android_books/app/src/main/res/values/colors.xml/0 | {
"file_path": "samples/add_to_app/books/android_books/app/src/main/res/values/colors.xml",
"repo_id": "samples",
"token_count": 81
} | 1,351 |
name: flutter_module_books
description: A Flutter module using the Pigeon package to demonstrate
integrating Flutter in a realistic scenario where the existing platform app
already has business logic and middleware constraints.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter... | samples/add_to_app/books/flutter_module_books/pubspec.yaml/0 | {
"file_path": "samples/add_to_app/books/flutter_module_books/pubspec.yaml",
"repo_id": "samples",
"token_count": 322
} | 1,352 |
import UIKit
class BookCell: UITableViewCell {
@IBOutlet weak var title: UILabel!
@IBOutlet weak var subtitle: UILabel!
@IBOutlet weak var byLine: UILabel!
@IBOutlet weak var editButton: UIButton!
}
| samples/add_to_app/books/ios_books/IosBooks/BookCell.swift/0 | {
"file_path": "samples/add_to_app/books/ios_books/IosBooks/BookCell.swift",
"repo_id": "samples",
"token_count": 75
} | 1,353 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package dev.flutter.example.androidfullscreen
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.... | samples/add_to_app/fullscreen/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MainActivity.kt/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MainActivity.kt",
"repo_id": "samples",
"token_count": 415
} | 1,354 |
// 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/services.dart';
import 'package:provider/provider.dart';
/// The entrypoint for the flutter m... | samples/add_to_app/fullscreen/flutter_module/lib/main.dart/0 | {
"file_path": "samples/add_to_app/fullscreen/flutter_module/lib/main.dart",
"repo_id": "samples",
"token_count": 2111
} | 1,355 |
<?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>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
... | samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist/0 | {
"file_path": "samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist",
"repo_id": "samples",
"token_count": 663
} | 1,356 |
package dev.flutter.multipleflutters
import android.app.Application
import io.flutter.embedding.engine.FlutterEngineGroup
/**
* Application class for this app.
*
* This holds onto our engine group.
*/
class App : Application() {
lateinit var engines: FlutterEngineGroup
override fun onCreate() {
s... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/App.kt/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/java/dev/flutter/multipleflutters/App.kt",
"repo_id": "samples",
"token_count": 125
} | 1,357 |
// 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 UIKit
/// The UIWindowSceneDelegate for the app.
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(
... | samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift",
"repo_id": "samples",
"token_count": 254
} | 1,358 |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.flutter.example.androidusingplugin">
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@... | samples/add_to_app/plugin/android_using_plugin/app/src/main/AndroidManifest.xml/0 | {
"file_path": "samples/add_to_app/plugin/android_using_plugin/app/src/main/AndroidManifest.xml",
"repo_id": "samples",
"token_count": 531
} | 1,359 |
include: package:analysis_defaults/flutter.yaml
| samples/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml/0 | {
"file_path": "samples/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,360 |
# ios_using_prebuilt_module
An example iOS application used in the Flutter add-to-app samples. For more
information on how to use it, see the [README](../README.md) file located in the
[/add_to_app](/add_to_app) directory of this repo.
## Getting Started
For more information about Flutter, check out
[flutter.dev](ht... | samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/README.md/0 | {
"file_path": "samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/README.md",
"repo_id": "samples",
"token_count": 185
} | 1,361 |
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless requ... | samples/android_splash_screen/android/app/src/main/res/layout/main_activity.xml/0 | {
"file_path": "samples/android_splash_screen/android/app/src/main/res/layout/main_activity.xml",
"repo_id": "samples",
"token_count": 917
} | 1,362 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class PageRouteBuilderDemo extends StatelessWidget {
const PageRouteBuilderDemo({super.key});
static const String... | samples/animations/lib/src/basics/page_route_builder.dart/0 | {
"file_path": "samples/animations/lib/src/basics/page_route_builder.dart",
"repo_id": "samples",
"token_count": 614
} | 1,363 |
.dockerignore
Dockerfile
docker-compose.yml
Makefile
README.md
*/build/
*/.dart_tool/
.git/
.github/
.gitignore
*/.idea/
*/.packages
| samples/code_sharing/server/.dockerignore/0 | {
"file_path": "samples/code_sharing/server/.dockerignore",
"repo_id": "samples",
"token_count": 58
} | 1,364 |
name: shared
description: Common data models required by our client and server
version: 1.0.0
environment:
sdk: ^3.2.0
dependencies:
freezed_annotation: ^2.1.0
json_annotation: ^4.7.0
dev_dependencies:
build_runner: ^2.2.1
freezed: ^2.1.1
json_serializable: ^6.4.0
lints: ">=2.0.0 <4.0.0"
test: ^1.16.... | samples/code_sharing/shared/pubspec.yaml/0 | {
"file_path": "samples/code_sharing/shared/pubspec.yaml",
"repo_id": "samples",
"token_count": 144
} | 1,365 |
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
typedef PlatformCallback = void Function(TargetPlatform platform);
class PlatformSelector extends StatefulWidget {
const PlatformSelector({
super.key,
required this.onChangedPlatform,
});
final PlatformCallback onChangedP... | samples/context_menus/lib/platform_selector.dart/0 | {
"file_path": "samples/context_menus/lib/platform_selector.dart",
"repo_id": "samples",
"token_count": 698
} | 1,366 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/context_menus/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/context_menus/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,367 |
import 'package:context_menus/custom_menu_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/custom_menu_page_test.dart/0 | {
"file_path": "samples/context_menus/test/custom_menu_page_test.dart",
"repo_id": "samples",
"token_count": 743
} | 1,368 |
// Copyright 2018-present the Flutter authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | samples/deeplink_store_example/lib/model/products_repository.dart/0 | {
"file_path": "samples/deeplink_store_example/lib/model/products_repository.dart",
"repo_id": "samples",
"token_count": 2739
} | 1,369 |
#include "ephemeral/Flutter-Generated.xcconfig"
| samples/deeplink_store_example/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "samples/deeplink_store_example/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "samples",
"token_count": 19
} | 1,370 |
// 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:built_collection/built_collection.dart';
import 'package:built_value/serializer.dart';
import 'package:built_value/standard_json_plugin.dart';... | samples/desktop_photo_search/fluent_ui/lib/src/serializers.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/serializers.dart",
"repo_id": "samples",
"token_count": 322
} | 1,371 |
// 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_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/se... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/search_photos_response.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/search_photos_response.dart",
"repo_id": "samples",
"token_count": 402
} | 1,372 |
// 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';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:l... | samples/desktop_photo_search/material/lib/main.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/main.dart",
"repo_id": "samples",
"token_count": 1637
} | 1,373 |
// 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_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/se... | samples/desktop_photo_search/material/lib/src/unsplash/photo.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/unsplash/photo.dart",
"repo_id": "samples",
"token_count": 707
} | 1,374 |
// 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:math';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
/// A widget that takes two children, lays them out ... | samples/desktop_photo_search/material/lib/src/widgets/split.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/widgets/split.dart",
"repo_id": "samples",
"token_count": 2391
} | 1,375 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import file_selector_macos
import menubar
import url_launcher_macos
import window_size
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))... | samples/desktop_photo_search/material/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "samples/desktop_photo_search/material/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "samples",
"token_count": 178
} | 1,376 |
# Master channel samples
In this directory, you'll find samples that target Flutter's master channel.
They may take advantage of new SDK features that haven't landed in the
stable channel, and they may crash, lock up your machine, or otherwise fail to
run correctly. In other words, consider everything in this director... | samples/experimental/README.md/0 | {
"file_path": "samples/experimental/README.md",
"repo_id": "samples",
"token_count": 218
} | 1,377 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin/example/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/example/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,378 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import federated_plugin_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FederatedPluginMacosPlugin.register(with: registry.registrar(forPlugin: "FederatedPluginMacosPlugin"))
}
| samples/experimental/federated_plugin/federated_plugin/example/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/example/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "samples",
"token_count": 87
} | 1,379 |
# federated_plugin_macos_example
To view the usage of plugin, head over to [federated_plugin/example](../../federated_plugin/example).
| samples/experimental/federated_plugin/federated_plugin_macos/example/README.md/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_macos/example/README.md",
"repo_id": "samples",
"token_count": 42
} | 1,380 |
// 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:html' as html;
import 'package:federated_plugin_platform_interface/federated_plugin_platform_interface.dart';
import 'package:flutter/services.d... | samples/experimental/federated_plugin/federated_plugin_web/lib/federated_plugin_web.dart/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_web/lib/federated_plugin_web.dart",
"repo_id": "samples",
"token_count": 489
} | 1,381 |
// 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:context_menus/context_menus.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show SystemUiOverlayStyle;
i... | samples/experimental/linting_tool/lib/pages/rules_page.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/pages/rules_page.dart",
"repo_id": "samples",
"token_count": 4483
} | 1,382 |
#
# Generated file, do not edit.
#
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
url_launcher_linux
window_size
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plu... | samples/experimental/linting_tool/linux/flutter/generated_plugins.cmake/0 | {
"file_path": "samples/experimental/linting_tool/linux/flutter/generated_plugins.cmake",
"repo_id": "samples",
"token_count": 333
} | 1,383 |
name: linting_tool
description: A new Flutter project.
version: 1.0.0+1
publish_to: "none"
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
adaptive_breakpoints: ^0.1.1
cupertino_icons: ^1.0.2
equatable: ^2.0.3
file_selector: ^1.0.0
flutter_markdown: ^0.6.2
google_fonts: ^6.0.0
hiv... | samples/experimental/linting_tool/pubspec.yaml/0 | {
"file_path": "samples/experimental/linting_tool/pubspec.yaml",
"repo_id": "samples",
"token_count": 399
} | 1,384 |
# FFIgen + JNIgen pedometer
This is a demo for some of our tooling around
calling platform APIs directly from dart code.
This repository represents a demo of a plugin that leverages FFIgen & JNIgen.
There is also an example pedometer app that
uses the bindings generated from these tools.
- [FFIgen](https://pub.de... | samples/experimental/pedometer/README.md/0 | {
"file_path": "samples/experimental/pedometer/README.md",
"repo_id": "samples",
"token_count": 927
} | 1,385 |
/*
* Copyright (c) 2012, 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_API_H_
#define RUNTIME_INCLUDE_DART_API_H_
/** \mainpage Dart Embe... | samples/experimental/pedometer/src/dart-sdk/include/dart_api.h/0 | {
"file_path": "samples/experimental/pedometer/src/dart-sdk/include/dart_api.h",
"repo_id": "samples",
"token_count": 44738
} | 1,386 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/varfont_shader_puzzle/analysis_options.yaml/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,387 |
// 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 '../components/components.dart';
import '../page_content/pages_flow.dart';
import '../styles.dart';
class Page... | samples/experimental/varfont_shader_puzzle/lib/page_content/page_narrative_pre.dart/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/lib/page_content/page_narrative_pre.dart",
"repo_id": "samples",
"token_count": 2575
} | 1,388 |
// 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/color_split.frag/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/shaders/color_split.frag",
"repo_id": "samples",
"token_count": 361
} | 1,389 |
// 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:cloud_firestore/cloud_firestore.dart';
import 'package:json_annotation/json_annotation.da... | samples/experimental/web_dashboard/lib/src/api/api.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/src/api/api.dart",
"repo_id": "samples",
"token_count": 853
} | 1,390 |
// 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 'package:web_dash... | samples/experimental/web_dashboard/lib/src/widgets/category_forms.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/src/widgets/category_forms.dart",
"repo_id": "samples",
"token_count": 1441
} | 1,391 |
include: package:analysis_defaults/flutter.yaml
| samples/flutter_maps_firestore/analysis_options.yaml/0 | {
"file_path": "samples/flutter_maps_firestore/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,392 |
// 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:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:fl... | samples/form_app/lib/main.dart/0 | {
"file_path": "samples/form_app/lib/main.dart",
"repo_id": "samples",
"token_count": 1223
} | 1,393 |
package com.example.game_template
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/game_template/android/app/src/main/kotlin/com/example/game_template/MainActivity.kt/0 | {
"file_path": "samples/game_template/android/app/src/main/kotlin/com/example/game_template/MainActivity.kt",
"repo_id": "samples",
"token_count": 38
} | 1,394 |
// 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.
List<String> soundTypeToFilename(SfxType type) {
switch (type) {
case SfxType.huhsh:
return c... | samples/game_template/lib/src/audio/sounds.dart/0 | {
"file_path": "samples/game_template/lib/src/audio/sounds.dart",
"repo_id": "samples",
"token_count": 773
} | 1,395 |
// 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 'settings_persistence.dart';
/// An in-memory implementation of [SettingsPersistence].
/// Useful... | samples/game_template/lib/src/settings/persistence/memory_settings_persistence.dart/0 | {
"file_path": "samples/game_template/lib/src/settings/persistence/memory_settings_persistence.dart",
"repo_id": "samples",
"token_count": 313
} | 1,396 |
name: game_template
description: A mobile game built in Flutter.
# Prevent accidental publishing to pub.dev.
publish_to: 'none'
version: 0.0.1+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
audioplayers: ^6.0.0
cupertino_icons: ^1.0.2
go_router: ^13.0.0
logging: ^1.1.0
provider: ^... | samples/game_template/pubspec.yaml/0 | {
"file_path": "samples/game_template/pubspec.yaml",
"repo_id": "samples",
"token_count": 516
} | 1,397 |
import UIKit
import Flutter
import GoogleMaps
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with... | samples/google_maps/ios/Runner/AppDelegate.swift/0 | {
"file_path": "samples/google_maps/ios/Runner/AppDelegate.swift",
"repo_id": "samples",
"token_count": 164
} | 1,398 |
# ios_app_clip
A sample project demonstrating integration with iOS App Clip.
The App Clip target is rendered by Flutter and uses a plugin.
## Intent
1. Demonstrate it's possible to produce iOS App Clip targets rendered in Flutter.
2. Serve as a canonical example to test the App Clip scenario.
3. Let users validate ... | samples/ios_app_clip/README.md/0 | {
"file_path": "samples/ios_app_clip/README.md",
"repo_id": "samples",
"token_count": 368
} | 1,399 |
// Copyright 2019-present the Flutter authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | samples/isolate_example/lib/infinite_process_page.dart/0 | {
"file_path": "samples/isolate_example/lib/infinite_process_page.dart",
"repo_id": "samples",
"token_count": 3272
} | 1,400 |
# Material 3 Demo
This sample Flutter app showcases Material 3 features in the Flutter Material library. These features include updated components, typography, color system and elevation support. The app supports light and dark themes, different color palettes, as well as the ability to switch between Material 2 and M... | samples/material_3_demo/README.md/0 | {
"file_path": "samples/material_3_demo/README.md",
"repo_id": "samples",
"token_count": 829
} | 1,401 |
// 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';
// NavigationRail shows if the screen width is greater or equal to
// narrowScreenWidthThreshold; otherwise, Navigati... | samples/material_3_demo/lib/constants.dart/0 | {
"file_path": "samples/material_3_demo/lib/constants.dart",
"repo_id": "samples",
"token_count": 708
} | 1,402 |
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Navigation and Routing rebuild script
steps:
- name: Remove runners
rmdirs:
- android
- ios
- linux
- macos
- web
- windows
- name: Flutter recreate
flutter: create --org ... | samples/navigation_and_routing/codelab_rebuild.yaml/0 | {
"file_path": "samples/navigation_and_routing/codelab_rebuild.yaml",
"repo_id": "samples",
"token_count": 655
} | 1,403 |
// 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';
import '../widgets/book_list.dart';
clas... | samples/navigation_and_routing/lib/src/screens/author_details.dart/0 | {
"file_path": "samples/navigation_and_routing/lib/src/screens/author_details.dart",
"repo_id": "samples",
"token_count": 468
} | 1,404 |
name: bookstore
description: Navigation and routing sample app
publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
adaptive_navigation: ^0.0.3
collection: ^1.17.0
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
go_router: ^13.0.... | samples/navigation_and_routing/pubspec.yaml/0 | {
"file_path": "samples/navigation_and_routing/pubspec.yaml",
"repo_id": "samples",
"token_count": 297
} | 1,405 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| samples/place_tracker/android/gradle.properties/0 | {
"file_path": "samples/place_tracker/android/gradle.properties",
"repo_id": "samples",
"token_count": 30
} | 1,406 |
name: platform_channels
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.3
go_router: ">=10.1.0 <14.0.0"
dev_dependencies:
analysis_defaults:
path: ../analysis_defaults
flutter_test:
sdk: flutter
flutter... | samples/platform_channels/pubspec.yaml/0 | {
"file_path": "samples/platform_channels/pubspec.yaml",
"repo_id": "samples",
"token_count": 164
} | 1,407 |
package dev.flutter.platform_design
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/platform_design/android/app/src/main/kotlin/dev/flutter/platform_design/MainActivity.kt/0 | {
"file_path": "samples/platform_design/android/app/src/main/kotlin/dev/flutter/platform_design/MainActivity.kt",
"repo_id": "samples",
"token_count": 39
} | 1,408 |
// 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_test/flutte... | samples/platform_design/test/widget_test.dart/0 | {
"file_path": "samples/platform_design/test/widget_test.dart",
"repo_id": "samples",
"token_count": 534
} | 1,409 |
#import "GeneratedPluginRegistrant.h"
| samples/platform_view_swift/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/platform_view_swift/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,410 |
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter_shaders/flutter_shaders.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'S... | samples/simple_shader/lib/main.dart/0 | {
"file_path": "samples/simple_shader/lib/main.dart",
"repo_id": "samples",
"token_count": 631
} | 1,411 |
#import "GeneratedPluginRegistrant.h"
| samples/simplistic_calculator/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/simplistic_calculator/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,412 |
#import "GeneratedPluginRegistrant.h"
| samples/simplistic_editor/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/simplistic_editor/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,413 |
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. 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... | samples/simplistic_editor/test/main_screen_test.dart/0 | {
"file_path": "samples/simplistic_editor/test/main_screen_test.dart",
"repo_id": "samples",
"token_count": 898
} | 1,414 |
// 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:provider/provider.dart';
import 'package:testing_app/models/favorites.dart';
class FavoritesPage exte... | samples/testing_app/lib/screens/favorites.dart/0 | {
"file_path": "samples/testing_app/lib/screens/favorites.dart",
"repo_id": "samples",
"token_count": 911
} | 1,415 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/testing_app/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/testing_app/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,416 |
// 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/services.dart';
import 'package:provider/provider.dart';
import 'package:veggieseasons/data/a... | samples/veggieseasons/lib/screens/search.dart/0 | {
"file_path": "samples/veggieseasons/lib/screens/search.dart",
"repo_id": "samples",
"token_count": 1521
} | 1,417 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/veggieseasons/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/veggieseasons/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,418 |
// 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:async';
import 'dart:js_interop';
import 'dart:js_interop_unsafe';
import 'package:flutter/widgets.dart';
import 'package:web_startup_analyzer/s... | samples/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer.dart/0 | {
"file_path": "samples/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer.dart",
"repo_id": "samples",
"token_count": 1269
} | 1,419 |
// 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
bool matchesQuery(String query, String sampleAttributes) {
if (query.isEmpty) {
return true;
}
var queryWords = query.toLowerCase().split(' ')
.... | samples/web/samples_index/lib/src/search.dart/0 | {
"file_path": "samples/web/samples_index/lib/src/search.dart",
"repo_id": "samples",
"token_count": 824
} | 1,420 |
// ignore_for_file: avoid_web_libraries_in_flutter
import 'package:flutter/material.dart';
import 'pages/counter.dart';
import 'pages/dash.dart';
import 'pages/text.dart';
import 'src/js_interop.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@ove... | samples/web_embedding/ng-flutter/flutter/lib/main.dart/0 | {
"file_path": "samples/web_embedding/ng-flutter/flutter/lib/main.dart",
"repo_id": "samples",
"token_count": 662
} | 1,421 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.