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 "FLTVideoPlayerPlugin.h"
#import <AVFoundation/AVFoundation.h>
#import <GLKit/GLKit.h>
#import "AVAssetTrackUtils.h"
#import "messages.g.h"
#if ... | plugins/packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m",
"repo_id": "plugins",
"token_count": 10062
} | 1,500 |
// 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/widgets.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';... | plugins/packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart/0 | {
"file_path": "plugins/packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart",
"repo_id": "plugins",
"token_count": 3551
} | 1,501 |
# webview_flutter_example
Demonstrates how to use the webview_flutter plugin.
| plugins/packages/webview_flutter/webview_flutter/example/README.md/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/README.md",
"repo_id": "plugins",
"token_count": 25
} | 1,502 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
| plugins/packages/webview_flutter/webview_flutter/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,503 |
name: webview_flutter
description: A Flutter plugin that provides a WebView widget on Android and iOS.
repository: https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
version: 4.0... | plugins/packages/webview_flutter/webview_flutter/pubspec.yaml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/pubspec.yaml",
"repo_id": "plugins",
"token_count": 373
} | 1,504 |
group 'io.flutter.plugins.webviewflutter'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
... | plugins/packages/webview_flutter/webview_flutter_android/android/build.gradle/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/build.gradle",
"repo_id": "plugins",
"token_count": 633
} | 1,505 |
// 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 io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugins.webviewflutter.GeneratedAndroidWebVi... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannelFlutterApiImpl.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannelFlutterApiImpl.java",
"repo_id": "plugins",
"token_count": 463
} | 1,506 |
// 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.assertEquals;
import static or... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FlutterAssetManagerHostApiImplTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FlutterAssetManagerHostApiImplTest.java",
"repo_id": "plugins",
"token_count": 916
} | 1,507 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v4.2.14), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_c... | plugins/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart",
"repo_id": "plugins",
"token_count": 24590
} | 1,508 |
// 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.
export 'auto_media_playback_policy.dart';
export 'creation_params.dart';
export 'javascript_channel.dart';
export 'javascript_message.dart';
export 'javasc... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/types.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/types.dart",
"repo_id": "plugins",
"token_count": 155
} | 1,509 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Object specifying creation parameters for creating a [PlatformWebViewController].
///
/// Platform specific im... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_controller_creation_params.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_controller_creation_params.dart",
"repo_id": "plugins",
"token_count": 445
} | 1,510 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart",
"repo_id": "plugins",
"token_count": 4699
} | 1,511 |
#!/usr/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
if [ $# -eq 0 ]; then
echo "No target specified, running ... | plugins/packages/webview_flutter/webview_flutter_web/example/run_test.sh/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_web/example/run_test.sh",
"repo_id": "plugins",
"token_count": 283
} | 1,512 |
// 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 FWFScriptMessageHandlerHostApiTests : XCTestCase... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFScriptMessageHandlerHostApiTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFScriptMessageHandlerHostApiTests.m",
"repo_id": "plugins",
"token_count": 1233
} | 1,513 |
name: webview_flutter_wkwebview_example
description: Demonstrates how to use the webview_flutter_wkwebview plugin.
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
path_provider: ^2.0.6
webview_flutter_platform_interface: ^2.0.0
webview_flutte... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml",
"repo_id": "plugins",
"token_count": 371
} | 1,514 |
// 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 "FWFGeneratedWebKitApis.h"
#import "FWFInstanceManager.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Flutter api implementation ... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.h/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.h",
"repo_id": "plugins",
"token_count": 574
} | 1,515 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore: implementation_imports
import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_interface_legacy.dart';
import '../found... | plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/wkwebview_cookie_manager.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/wkwebview_cookie_manager.dart",
"repo_id": "plugins",
"token_count": 721
} | 1,516 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5;
import 'dart:math' as _i2;
import 'dart:ui' as _i6;
import '... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart",
"repo_id": "plugins",
"token_count": 17528
} | 1,517 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_wkwebview/test/webkit_webview_widget_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:webvie... | plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart",
"repo_id": "plugins",
"token_count": 2204
} | 1,518 |
include: ../../analysis_options.yaml
linter:
rules:
avoid_print: false # The tool is a CLI, so printing is normal
| plugins/script/tool/analysis_options.yaml/0 | {
"file_path": "plugins/script/tool/analysis_options.yaml",
"repo_id": "plugins",
"token_count": 41
} | 1,519 |
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>
Google Inc.
Abhijeeth Padarthi <rkinabhi@gmail.com>
Filip Hracek <filip@raindead.com>
| samples/AUTHORS/0 | {
"file_path": "samples/AUTHORS",
"repo_id": "samples",
"token_count": 82
} | 1,520 |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.... | samples/add_to_app/android_view/android_view/app/src/main/res/drawable-v24/ic_launcher_foreground.xml/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
"repo_id": "samples",
"token_count": 1061
} | 1,521 |
# flutter_module_using_plugin
An example Flutter module that uses a native plugin, intended for use in the
Flutter add-to-app samples. For more information on how to use it, see the
[README.md](../README.md) parent directory.
## Getting Started
For more information about Flutter, check out
[flutter.dev](https://flut... | samples/add_to_app/android_view/flutter_module_using_plugin/README.md/0 | {
"file_path": "samples/add_to_app/android_view/flutter_module_using_plugin/README.md",
"repo_id": "samples",
"token_count": 144
} | 1,522 |
// 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.
package dev.flutter.example.books
import android.app.Activity
import android.content.Context
import android.content.Intent
import dev.flutter.example.books.B... | samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/FlutterBookActivity.kt/0 | {
"file_path": "samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/FlutterBookActivity.kt",
"repo_id": "samples",
"token_count": 1798
} | 1,523 |
// 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_module_books/api.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessW... | samples/add_to_app/books/flutter_module_books/lib/main.dart/0 | {
"file_path": "samples/add_to_app/books/flutter_module_books/lib/main.dart",
"repo_id": "samples",
"token_count": 3147
} | 1,524 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched... | samples/add_to_app/books/ios_books/IosBooks/Base.lproj/LaunchScreen.storyboard/0 | {
"file_path": "samples/add_to_app/books/ios_books/IosBooks/Base.lproj/LaunchScreen.storyboard",
"repo_id": "samples",
"token_count": 724
} | 1,525 |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Include Cleartext traffic for the espresso package -->
<application android:usesCleartextTraffic="true" />
</manifest>
| samples/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml",
"repo_id": "samples",
"token_count": 81
} | 1,526 |
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and s... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/proguard-rules.pro/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/proguard-rules.pro",
"repo_id": "samples",
"token_count": 198
} | 1,527 |
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unles... | samples/add_to_app/multiple_flutters/multiple_flutters_android/gradlew.bat/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/gradlew.bat",
"repo_id": "samples",
"token_count": 885
} | 1,528 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import Flutter
import UIKit
/// UIViewController associated with the NativeViewCount storyboard scene.
class HostViewController: UIViewController, DataModelO... | samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/HostViewController.swift/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/HostViewController.swift",
"repo_id": "samples",
"token_count": 437
} | 1,529 |
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 33
defaultConfig {
applicationId "dev.flutter.example.androidusingplugin"
minSdkVersion 19
targetSdkVersion 33
versionCode 1
versionName "1.0"
testInstrumentationR... | samples/add_to_app/plugin/android_using_plugin/app/build.gradle/0 | {
"file_path": "samples/add_to_app/plugin/android_using_plugin/app/build.gradle",
"repo_id": "samples",
"token_count": 430
} | 1,530 |
package dev.flutter.example.androidusingprebuiltmodule
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
... | samples/add_to_app/prebuilt_module/android_using_prebuilt_module/app/src/androidTest/java/dev/flutter/example/androidusingprebuiltmodule/ExampleInstrumentedTest.kt/0 | {
"file_path": "samples/add_to_app/prebuilt_module/android_using_prebuilt_module/app/src/androidTest/java/dev/flutter/example/androidusingprebuiltmodule/ExampleInstrumentedTest.kt",
"repo_id": "samples",
"token_count": 234
} | 1,531 |
<?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/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist/0 | {
"file_path": "samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist",
"repo_id": "samples",
"token_count": 579
} | 1,532 |
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Animations rebuild script
steps:
- name: Remove runners
rmdirs:
- android
- ios
- linux
- macos
- web
- windows
- name: Flutter recreate
flutter: create --org dev.flutter ... | samples/animations/codelab_rebuild.yaml/0 | {
"file_path": "samples/animations/codelab_rebuild.yaml",
"repo_id": "samples",
"token_count": 132
} | 1,533 |
// 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 TypewriterTween extends Tween<String> {
TypewriterTween({String begin = '', String end = ''})
: super(b... | samples/animations/lib/src/basics/custom_tween.dart/0 | {
"file_path": "samples/animations/lib/src/basics/custom_tween.dart",
"repo_id": "samples",
"token_count": 1870
} | 1,534 |
// 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/physics.dart';
class PhysicsCardDragDemo extends StatelessWidget {
const PhysicsCardDragDem... | samples/animations/lib/src/misc/physics_card_drag.dart/0 | {
"file_path": "samples/animations/lib/src/misc/physics_card_drag.dart",
"repo_id": "samples",
"token_count": 1161
} | 1,535 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/animations/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/animations/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,536 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:animations/src/misc/hero_animation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
Widget cre... | samples/animations/test/misc/hero_animation_test.dart/0 | {
"file_path": "samples/animations/test/misc/hero_animation_test.dart",
"repo_id": "samples",
"token_count": 1049
} | 1,537 |
# MacOS/Linux-only. Sadly, this is only helpful as documentation for Windows.
# LOCAL / DOCKER
run-server:
# Depends on `make build`
docker-compose up -d
stop-server:
docker-compose stop
# Flutter
flutter-local:
cd client && flutter run -d macos
test:
(cd shared && dart test)
(cd server && dart test)
(cd cli... | samples/code_sharing/Makefile/0 | {
"file_path": "samples/code_sharing/Makefile",
"repo_id": "samples",
"token_count": 149
} | 1,538 |
import 'dart:convert';
import 'dart:io' show Platform;
import 'package:http/http.dart' as http;
import 'package:shared/shared.dart';
import 'package:flutter/material.dart';
final port = Platform.environment['PORT'] ?? '8080';
final host = Platform.environment['SERVER_URL'] ?? '127.0.0.1';
final scheme = Platform.envir... | samples/code_sharing/client/lib/main.dart/0 | {
"file_path": "samples/code_sharing/client/lib/main.dart",
"repo_id": "samples",
"token_count": 1679
} | 1,539 |
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_na... | samples/code_sharing/shared/lib/src/models.freezed.dart/0 | {
"file_path": "samples/code_sharing/shared/lib/src/models.freezed.dart",
"repo_id": "samples",
"token_count": 2808
} | 1,540 |
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'anywhere_page.dart';
import 'cascading_menu_page.dart';
import 'custom_buttons_page.dart';
import 'custom_menu_page.dart';
import 'default_values_page.dart';
import 'email_button_page.dart'... | samples/context_menus/lib/main.dart/0 | {
"file_path": "samples/context_menus/lib/main.dart",
"repo_id": "samples",
"token_count": 2722
} | 1,541 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
| samples/context_menus/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "samples/context_menus/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "samples",
"token_count": 83
} | 1,542 |
import 'package:context_menus/cascading_menu_page.dart';
import 'package:context_menus/main.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Can show and use the c... | samples/context_menus/test/cascading_menu_page_test.dart/0 | {
"file_path": "samples/context_menus/test/cascading_menu_page_test.dart",
"repo_id": "samples",
"token_count": 1686
} | 1,543 |
// 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/model/search.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/model/search.dart",
"repo_id": "samples",
"token_count": 320
} | 1,544 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import '../serializers.dart';
part 'pos... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/position.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/position.dart",
"repo_id": "samples",
"token_count": 290
} | 1,545 |
// Copyright 2022 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file_selector/file_selector.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:provider/provider.dart';
import '../model/photo... | samples/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/widgets/unsplash_search_content.dart",
"repo_id": "samples",
"token_count": 1588
} | 1,546 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/desktop_photo_search/fluent_ui/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,547 |
# Photo Search app
This desktop application enables you to search
[Unsplash](https://unsplash.com/) for photographs that interest you.
To use it, you need to add an **Access Key** from
[Unsplash API](https://unsplash.com/developers) to
`lib/unsplash_access_key.dart`.
This sample works on Windows, macOS and Linux.
... | samples/desktop_photo_search/material/README.md/0 | {
"file_path": "samples/desktop_photo_search/material/README.md",
"repo_id": "samples",
"token_count": 909
} | 1,548 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import '../serializers.dart';
import 'po... | samples/desktop_photo_search/material/lib/src/unsplash/location.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/unsplash/location.dart",
"repo_id": "samples",
"token_count": 317
} | 1,549 |
// 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';
typedef PhotoSearchDialogCallback = void Function(String searchQuery);
class PhotoSearchDialog extends StatefulWidge... | samples/desktop_photo_search/material/lib/src/widgets/photo_search_dialog.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/widgets/photo_search_dialog.dart",
"repo_id": "samples",
"token_count": 828
} | 1,550 |
# federated_plugin_web
A flutter plugin to provide location support for web. The web implementation
of `federated_plugin` is tested using [integration_test](https://pub.dev/packages/integration_test) package.
### Steps to run integration test on browser
- Download and install the ChromeDriver from [here](https://chr... | samples/experimental/federated_plugin/federated_plugin_web/README.md/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_web/README.md",
"repo_id": "samples",
"token_count": 164
} | 1,551 |
#ifndef FLUTTER_PLUGIN_FEDERATED_PLUGIN_WINDOWS_PLUGIN_H_
#define FLUTTER_PLUGIN_FEDERATED_PLUGIN_WINDOWS_PLUGIN_H_
#include <flutter_plugin_registrar.h>
#ifdef FLUTTER_PLUGIN_IMPL
#define FLUTTER_PLUGIN_EXPORT __declspec(dllexport)
#else
#define FLUTTER_PLUGIN_EXPORT __declspec(dllimport)
#endif
#if defined(__cplus... | samples/experimental/federated_plugin/federated_plugin_windows/windows/include/federated_plugin_windows/federated_plugin_windows_plugin.h/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_windows/windows/include/federated_plugin_windows/federated_plugin_windows_plugin.h",
"repo_id": "samples",
"token_count": 250
} | 1,552 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show SystemUiOverlayStyle;
import 'package:linting_tool/layout/adaptive.dart';
... | samples/experimental/linting_tool/lib/pages/default_rules_page.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/pages/default_rules_page.dart",
"repo_id": "samples",
"token_count": 1003
} | 1,553 |
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
#include <window_size/window_size_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr... | samples/experimental/linting_tool/linux/flutter/generated_plugin_registrant.cc/0 | {
"file_path": "samples/experimental/linting_tool/linux/flutter/generated_plugin_registrant.cc",
"repo_id": "samples",
"token_count": 361
} | 1,554 |
## 0.0.1
* TODO: Describe initial release.
| samples/experimental/pedometer/CHANGELOG.md/0 | {
"file_path": "samples/experimental/pedometer/CHANGELOG.md",
"repo_id": "samples",
"token_count": 18
} | 1,555 |
package com.example.jni_demo
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {}
| samples/experimental/pedometer/example/android/app/src/main/kotlin/com/example/jni_demo/MainActivity.kt/0 | {
"file_path": "samples/experimental/pedometer/example/android/app/src/main/kotlin/com/example/jni_demo/MainActivity.kt",
"repo_id": "samples",
"token_count": 38
} | 1,556 |
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
// ignore_for_file: type=lint
import 'dart:ffi' as ffi;
import 'package:ffi/ffi.dart' as pkg_ffi;
/// Bindings for CM pedometers
class PedometerBindings {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.Nati... | samples/experimental/pedometer/lib/pedometer_bindings_generated.dart/0 | {
"file_path": "samples/experimental/pedometer/lib/pedometer_bindings_generated.dart",
"repo_id": "samples",
"token_count": 1100421
} | 1,557 |
# 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: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a"
channel: "stable"
project_type: app
# Tracks m... | samples/experimental/varfont_shader_puzzle/.metadata/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/.metadata",
"repo_id": "samples",
"token_count": 701
} | 1,558 |
// 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_ascender_descender.dart/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/lib/page_content/page_ascender_descender.dart",
"repo_id": "samples",
"token_count": 3423
} | 1,559 |
name: varfont_shader_puzzle
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
google_fonts: ^6.0.0
dev_dependencies:
analysis_defaults:
path: ../../analysis_defaults
flutter_test:
sdk: flutter
flutter:
uses-ma... | samples/experimental/varfont_shader_puzzle/pubspec.yaml/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/pubspec.yaml",
"repo_id": "samples",
"token_count": 440
} | 1,560 |
// 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 'src/app.dart';
void main() {
runApp(DashboardApp.mock... | samples/experimental/web_dashboard/lib/main.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/main.dart",
"repo_id": "samples",
"token_count": 97
} | 1,561 |
// 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 'package:flutter/material.dart';
import '../api/api.dart';
/// Subscribes t... | samples/experimental/web_dashboard/lib/src/widgets/categories_dropdown.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/src/widgets/categories_dropdown.dart",
"repo_id": "samples",
"token_count": 1205
} | 1,562 |
name: flutter_maps_firestore
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
cloud_firestore: ^4.6.0
firebase_core: ^2.11.0
google_maps_flutter: ^2.2.6
google_maps_webservice: ^0.0.20-nullsafety.5
location: ">=4.4.0 <6.0.0"
dev_depen... | samples/flutter_maps_firestore/pubspec.yaml/0 | {
"file_path": "samples/flutter_maps_firestore/pubspec.yaml",
"repo_id": "samples",
"token_count": 201
} | 1,563 |
#import "GeneratedPluginRegistrant.h"
| samples/form_app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/form_app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,564 |
// 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 'package:flutter_test/flutter_test.dart';
import 'package:... | samples/form_app/test/form_app_test.dart/0 | {
"file_path": "samples/form_app/test/form_app_test.dart",
"repo_id": "samples",
"token_count": 546
} | 1,565 |
// 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 'dart:collection';
import 'dart:math';
import 'package:audioplayers/audioplayers.dart';
import 'p... | samples/game_template/lib/src/audio/audio_controller.dart/0 | {
"file_path": "samples/game_template/lib/src/audio/audio_controller.dart",
"repo_id": "samples",
"token_count": 2981
} | 1,566 |
// 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:flutter/services.dart';
import 'package:provider/... | samples/game_template/lib/src/settings/custom_name_dialog.dart/0 | {
"file_path": "samples/game_template/lib/src/settings/custom_name_dialog.dart",
"repo_id": "samples",
"token_count": 865
} | 1,567 |
include: package:analysis_defaults/flutter.yaml
analyzer:
exclude:
- lib/src/*.g.dart
| samples/google_maps/analysis_options.yaml/0 | {
"file_path": "samples/google_maps/analysis_options.yaml",
"repo_id": "samples",
"token_count": 39
} | 1,568 |
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
go... | samples/google_maps/android/build.gradle/0 | {
"file_path": "samples/google_maps/android/build.gradle",
"repo_id": "samples",
"token_count": 260
} | 1,569 |
name: google_maps_in_flutter
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
google_maps_flutter: ^2.4.0
http: ^1.0.0
json_annotation: ^4.7.0
json_serializable: ^6.5.4
dev_dependencies:
a... | samples/google_maps/pubspec.yaml/0 | {
"file_path": "samples/google_maps/pubspec.yaml",
"repo_id": "samples",
"token_count": 222
} | 1,570 |
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Infinite List rebuild script
steps:
- name: Remove runners
rmdirs:
- android
- ios
- macos
- linux
- windows
- web
- name: Recreate runners
flutter: create --org dev.flutt... | samples/infinite_list/codelab_rebuild.yaml/0 | {
"file_path": "samples/infinite_list/codelab_rebuild.yaml",
"repo_id": "samples",
"token_count": 726
} | 1,571 |
// 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.
// 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... | samples/ios_app_clip/test/widget_test.dart/0 | {
"file_path": "samples/ios_app_clip/test/widget_test.dart",
"repo_id": "samples",
"token_count": 253
} | 1,572 |
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <window_size/window_size_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
WindowSizePluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("WindowSizePlugin"));
}
| samples/isolate_example/windows/flutter/generated_plugin_registrant.cc/0 | {
"file_path": "samples/isolate_example/windows/flutter/generated_plugin_registrant.cc",
"repo_id": "samples",
"token_count": 105
} | 1,573 |
// 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
const Widget divider = Sized... | samples/material_3_demo/lib/color_palettes_screen.dart/0 | {
"file_path": "samples/material_3_demo/lib/color_palettes_screen.dart",
"repo_id": "samples",
"token_count": 5941
} | 1,574 |
// 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.
// ignore_for_file: avoid_types_on_closure_parameters
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package... | samples/material_3_demo/test/elevation_screen_test.dart/0 | {
"file_path": "samples/material_3_demo/test/elevation_screen_test.dart",
"repo_id": "samples",
"token_count": 1064
} | 1,575 |
// 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 'author.dart';
class Book {
final int id;
final String title;
final Author author;
final ... | samples/navigation_and_routing/lib/src/data/book.dart/0 | {
"file_path": "samples/navigation_and_routing/lib/src/data/book.dart",
"repo_id": "samples",
"token_count": 128
} | 1,576 |
# Place Tracker
A sample place tracking app that uses the
[google_maps_flutter](https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter)
plugin. Keep track of your favorite places, places you've visited, and places
you want to go. View details about these places, show them on a map, and get
directi... | samples/place_tracker/README.md/0 | {
"file_path": "samples/place_tracker/README.md",
"repo_id": "samples",
"token_count": 902
} | 1,577 |
#import "GeneratedPluginRegistrant.h"
| samples/place_tracker/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/place_tracker/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,578 |
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* ht... | samples/place_tracker/web/index.html/0 | {
"file_path": "samples/place_tracker/web/index.html",
"repo_id": "samples",
"token_count": 724
} | 1,579 |
#include "Generated.xcconfig"
| samples/platform_channels/ios/Flutter/Release.xcconfig/0 | {
"file_path": "samples/platform_channels/ios/Flutter/Release.xcconfig",
"repo_id": "samples",
"token_count": 12
} | 1,580 |
// 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:go_router/go_router.dart';
import 'package:platform_channels/s... | samples/platform_channels/lib/src/pet_list_screen.dart/0 | {
"file_path": "samples/platform_channels/lib/src/pet_list_screen.dart",
"repo_id": "samples",
"token_count": 1317
} | 1,581 |
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
ret... | samples/platform_design/android/settings.gradle/0 | {
"file_path": "samples/platform_design/android/settings.gradle",
"repo_id": "samples",
"token_count": 333
} | 1,582 |
// 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';
/// A simple widget that builds di... | samples/platform_design/lib/widgets.dart/0 | {
"file_path": "samples/platform_design/lib/widgets.dart",
"repo_id": "samples",
"token_count": 5525
} | 1,583 |
#include "Generated.xcconfig"
| samples/platform_view_swift/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "samples/platform_view_swift/ios/Flutter/Debug.xcconfig",
"repo_id": "samples",
"token_count": 12
} | 1,584 |
// Copyright 2018, 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 UIKit
import Foundation
protocol PlatformViewControllerDelegate {
func didUpdateCounter(count... | samples/platform_view_swift/ios/Runner/PlatformViewController.swift/0 | {
"file_path": "samples/platform_view_swift/ios/Runner/PlatformViewController.swift",
"repo_id": "samples",
"token_count": 407
} | 1,585 |
#import "GeneratedPluginRegistrant.h"
| samples/simple_shader/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/simple_shader/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,586 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| samples/simple_shader/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "samples/simple_shader/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,587 |
#include "Generated.xcconfig"
| samples/simplistic_editor/ios/Flutter/Release.xcconfig/0 | {
"file_path": "samples/simplistic_editor/ios/Flutter/Release.xcconfig",
"repo_id": "samples",
"token_count": 12
} | 1,588 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| samples/testing_app/android/gradle.properties/0 | {
"file_path": "samples/testing_app/android/gradle.properties",
"repo_id": "samples",
"token_count": 31
} | 1,589 |
// 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 'package:testing_app/models... | samples/testing_app/lib/main.dart/0 | {
"file_path": "samples/testing_app/lib/main.dart",
"repo_id": "samples",
"token_count": 521
} | 1,590 |
# Veggie Seasons
An iOS app that shows which fruits and vegetables are currently in season. It
showcases Flutter's Cupertino package.
[Available now in the App Store!](https://itunes.apple.com/is/app/veggie-seasons/id1450855435)
**NOTE:** While Flutter supports many platforms, this application is designed
specifical... | samples/veggieseasons/README.md/0 | {
"file_path": "samples/veggieseasons/README.md",
"repo_id": "samples",
"token_count": 351
} | 1,591 |
// 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:go_router/go_router.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({
super... | samples/veggieseasons/lib/screens/home.dart/0 | {
"file_path": "samples/veggieseasons/lib/screens/home.dart",
"repo_id": "samples",
"token_count": 886
} | 1,592 |
// 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 'package:flutter/scheduler.dart';
import 'package:flutter/widgets.dart';
class FrameAnalyzer {
final WidgetsBinding _binding;
... | samples/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart/0 | {
"file_path": "samples/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart",
"repo_id": "samples",
"token_count": 394
} | 1,593 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Index _$IndexFromJson(Map json) => $checkedCreate(
'Index',
... | samples/web/samples_index/lib/src/data.g.dart/0 | {
"file_path": "samples/web/samples_index/lib/src/data.g.dart",
"repo_id": "samples",
"token_count": 1697
} | 1,594 |
// 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
// Flutter brand colors
$flutter-grey-900-color: #202124;
$flutter-grey-800-color: #3C4043;
$flutter-grey-700-color: #5F6368;
$flutter-grey-500-color: #5F6368;... | samples/web/samples_index/web/styles.scss/0 | {
"file_path": "samples/web/samples_index/web/styles.scss",
"repo_id": "samples",
"token_count": 4413
} | 1,595 |
[![Flutter logo]](https://docs.flutter.dev)
[Flutter logo]: https://github.com/dart-lang/site-shared/blob/main/src/_assets/image/flutter/icon/64.png?raw=1
# [Flutter][] website
[![Build Status][]][Repo on GitHub Actions]
[ => runApp(const LogoApp());
// #docregion AnimatedLogo
class AnimatedLogo extends AnimatedWidget {
const AnimatedLogo({super.key, required Animation<double> animation})
: super(listenable: animation);
@override
Widget build(BuildContext context) {
f... | website/examples/animation/animate2/lib/main.dart/0 | {
"file_path": "website/examples/animation/animate2/lib/main.dart",
"repo_id": "website",
"token_count": 448
} | 1,597 |
name: animation
description: >-
Sample app from "Animations tutorial":
https://docs.flutter.dev/ui/animations/tutorial.
version: 1.0.0
environment:
sdk: ^3.3.0
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
dev_dependencies:
example_utils:
path: ../../example_utils
flutter_test:
... | website/examples/animation/animate5/pubspec.yaml/0 | {
"file_path": "website/examples/animation/animate5/pubspec.yaml",
"repo_id": "website",
"token_count": 149
} | 1,598 |
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'main.dart';
// #docregion PreferredOrientations
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
]);
runApp(const MyApp());
}
// #enddocregi... | website/examples/cookbook/design/orientation/lib/orientation.dart/0 | {
"file_path": "website/examples/cookbook/design/orientation/lib/orientation.dart",
"repo_id": "website",
"token_count": 114
} | 1,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.