text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
/*
* Copyright 2017 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.testing;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import... | flutter-intellij/flutter-idea/testSrc/unit/io/flutter/testing/Testing.java/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/unit/io/flutter/testing/Testing.java",
"repo_id": "flutter-intellij",
"token_count": 1368
} | 520 |
/*
* Copyright (c) 2017, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/RemoteServiceRunner.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/RemoteServiceRunner.java",
"repo_id": "flutter-intellij",
"token_count": 286
} | 521 |
/*
* Copyright (c) 2015, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/ContextElement.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/ContextElement.java",
"repo_id": "flutter-intellij",
"token_count": 422
} | 522 |
/*
* Copyright (c) 2015, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/Flag.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/Flag.java",
"repo_id": "flutter-intellij",
"token_count": 491
} | 523 |
/*
* Copyright (c) 2015, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/IsolateRef.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/IsolateRef.java",
"repo_id": "flutter-intellij",
"token_count": 557
} | 524 |
/*
* Copyright (c) 2015, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/SourceReport.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/SourceReport.java",
"repo_id": "flutter-intellij",
"token_count": 648
} | 525 |
/*
* Copyright (c) 2015, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or... | flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/VM.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/VM.java",
"repo_id": "flutter-intellij",
"token_count": 1222
} | 526 |
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file:/... | flutter-intellij/flutter-studio/flutter-studio.iml/0 | {
"file_path": "flutter-intellij/flutter-studio/flutter-studio.iml",
"repo_id": "flutter-intellij",
"token_count": 1230
} | 527 |
/*
* Copyright 2018 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.
*/
package io.flutter.editor;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.... | flutter-intellij/flutter-studio/src/io/flutter/editor/FlutterStudioProjectOpenProcessor.java/0 | {
"file_path": "flutter-intellij/flutter-studio/src/io/flutter/editor/FlutterStudioProjectOpenProcessor.java",
"repo_id": "flutter-intellij",
"token_count": 689
} | 528 |
/*
* Copyright 2017 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package com.android.tools.idea.tests.gui.framework.fixture.newProjectWizard;
import static com.google.common.truth.Truth.assertThat;
import static ... | flutter-intellij/flutter-studio/testSrc/com/android/tools/idea/tests/gui/framework/fixture/newProjectWizard/FlutterProjectStepFixture.java/0 | {
"file_path": "flutter-intellij/flutter-studio/testSrc/com/android/tools/idea/tests/gui/framework/fixture/newProjectWizard/FlutterProjectStepFixture.java",
"repo_id": "flutter-intellij",
"token_count": 1510
} | 529 |
# Location of the bash script.
build_file: "flutter-intellij-kokoro/kokoro/macos_external/kokoro_test.sh"
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 74840
keyname: "flutter-intellij-plugin-jxbrowser-license-key"
}
}
}
| flutter-intellij/kokoro/macos_external/presubmit.cfg/0 | {
"file_path": "flutter-intellij/kokoro/macos_external/presubmit.cfg",
"repo_id": "flutter-intellij",
"token_count": 114
} | 530 |
{
"aliceBlue": "fff0f8ff",
"antiqueWhite": "fffaebd7",
"aqua": "ff00ffff",
"aquamarine": "ff7fffd4",
"azure": "fff0ffff",
"beige": "fff5f5dc",
"bisque": "ffffe4c4",
"black": "ff000000",
"blanchedAlmond": "ffffebcd",
"blue": "ff0000ff",
"blueViolet": "ff8a2be2",
"brown": "ffa52a2a",
"burlyWood": "ffdeb887",... | flutter-intellij/resources/flutter/colors/css.json/0 | {
"file_path": "flutter-intellij/resources/flutter/colors/css.json",
"repo_id": "flutter-intellij",
"token_count": 1931
} | 531 |
#!/bin/bash
# Initialize everything required by the plugin tool.
setup() {
# Fail on any error.
set -e
# Display commands being run. Only do this while debugging and be careful
# that no confidential information is displayed.
# set -x
export JAVA_HOME_OLD=$JAVA_HOME
curl https://download.oracle.com/jav... | flutter-intellij/tool/kokoro/setup.sh/0 | {
"file_path": "flutter-intellij/tool/kokoro/setup.sh",
"repo_id": "flutter-intellij",
"token_count": 507
} | 532 |
name: plugin_tool
description: Flutter plugin tool.
version: 0.1.1
environment:
sdk: '>=3.0.0-0.0.dev <4.0.0'
dependencies:
args: ^2.0.0
cli_util: ^0.4.1
git: ^2.0.0
markdown: ^7.1.1
path: ^1.8.0
dev_dependencies:
lints: ^3.0.0
test: ^1.22.0
| flutter-intellij/tool/plugin/pubspec.yaml/0 | {
"file_path": "flutter-intellij/tool/plugin/pubspec.yaml",
"repo_id": "flutter-intellij",
"token_count": 139
} | 533 |
20a2f8dbddcf1a96ad4c720b9afd1d0876d17ffc
| flutter/bin/internal/libplist.version/0 | {
"file_path": "flutter/bin/internal/libplist.version",
"repo_id": "flutter",
"token_count": 28
} | 534 |
// Copyright 2014 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 'use_cases.dart';
class MaterialBannerUseCase extends UseCase {
@override
String get name => 'Materia... | flutter/dev/a11y_assessments/lib/use_cases/material_banner.dart/0 | {
"file_path": "flutter/dev/a11y_assessments/lib/use_cases/material_banner.dart",
"repo_id": "flutter",
"token_count": 865
} | 535 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/dev/a11y_assessments/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/dev/a11y_assessments/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 536 |
// Copyright 2014 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:a11y_assessments/use_cases/material_banner.dart';
import 'package:flutter_test/flutter_test.dart';
import 'test_utils.dart';
void main() ... | flutter/dev/a11y_assessments/test/material_banner_test.dart/0 | {
"file_path": "flutter/dev/a11y_assessments/test/material_banner_test.dart",
"repo_id": "flutter",
"token_count": 277
} | 537 |
The files in this directory are used as part of the tests in the
`flutter_tools` package. Some are here because here these tests need a
`pubspec.yaml` that references the flutter framework (which is
intentionally not true of the `flutter_tools` package). Others are
here mostly out of peer pressure. | flutter/dev/automated_tests/flutter_test/README.md/0 | {
"file_path": "flutter/dev/automated_tests/flutter_test/README.md",
"repo_id": "flutter",
"token_count": 74
} | 538 |
# complex_layout
## Scrolling benchmark
To run the scrolling benchmark on a device:
```
flutter drive --profile test_driver/scroll_perf.dart
```
Results should be in the file `build/complex_layout_scroll_perf.timeline_summary.json`.
More detailed logs should be in `build/complex_layout_scroll_perf.timeline.json`.
... | flutter/dev/benchmarks/complex_layout/README.md/0 | {
"file_path": "flutter/dev/benchmarks/complex_layout/README.md",
"repo_id": "flutter",
"token_count": 161
} | 539 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
class ColorFilterCachePage extends StatefulWidget {
const ColorFilterCachePage({super.key})... | flutter/dev/benchmarks/macrobenchmarks/lib/src/color_filter_cache.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/color_filter_cache.dart",
"repo_id": "flutter",
"token_count": 1100
} | 540 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:ui';
import 'recorder.dart';
/// Draws many pictures in a grid with only the middle picture visible on the
/// s... | flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_clipped_out_pictures.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_clipped_out_pictures.dart",
"repo_id": "flutter",
"token_count": 1321
} | 541 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/widgets.dart';
import 'recorder.dart';
import 'test_data.dart';
/// Creates several list views containing t... | flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_simple_lazy_text_scroll.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_simple_lazy_text_scroll.dart",
"repo_id": "flutter",
"token_count": 1144
} | 542 |
// Copyright 2014 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_driver/flutter_driver.dart';
import 'package:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTest(
... | flutter/dev/benchmarks/macrobenchmarks/test_driver/path_tessellation_dynamic_perf_test.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/test_driver/path_tessellation_dynamic_perf_test.dart",
"repo_id": "flutter",
"token_count": 246
} | 543 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import '../common.dart';
const int _kNumIterations = 100000;
void main() {
assert(false,
"Don't run benc... | flutter/dev/benchmarks/microbenchmarks/lib/foundation/standard_message_codec_bench.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/foundation/standard_message_codec_bench.dart",
"repo_id": "flutter",
"token_count": 1035
} | 544 |
// Copyright 2014 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 '../common.dart';
import 'build_bench.dart';
Future<void>... | flutter/dev/benchmarks/microbenchmarks/lib/stocks/build_bench_profiled.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/stocks/build_bench_profiled.dart",
"repo_id": "flutter",
"token_count": 218
} | 545 |
// Copyright 2014 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 <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
NSString * appDelegateClassName;
@autoreleasepool {
// Setup... | flutter/dev/benchmarks/platform_channels_benchmarks/ios/Runner/main.m/0 | {
"file_path": "flutter/dev/benchmarks/platform_channels_benchmarks/ios/Runner/main.m",
"repo_id": "flutter",
"token_count": 170
} | 546 |
#include "Generated.xcconfig"
| flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 547 |
// Copyright 2014 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 "DummyPlatformView.h"
@implementation DummyPlatformViewFactory {
NSObject<FlutterBinaryMessenger>* _messenger;
}
- (instancetype)initWithMessen... | flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner/DummyPlatformView.m/0 | {
"file_path": "flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner/DummyPlatformView.m",
"repo_id": "flutter",
"token_count": 731
} | 548 |
// Copyright 2014 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.
// Snapshot from http://www.nasdaq.com/screening/company-list.aspx
// Fetched 2/23/2014.
// "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","indu... | flutter/dev/benchmarks/test_apps/stocks/lib/stock_data.dart/0 | {
"file_path": "flutter/dev/benchmarks/test_apps/stocks/lib/stock_data.dart",
"repo_id": "flutter",
"token_count": 975
} | 549 |
#!/usr/bin/env bash
# Copyright 2014 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.
set -e
# This script is only meant to be run by the Cirrus CI system, not locally.
# It must be run from the root of the Flutter repo.
f... | flutter/dev/bots/accept_android_sdk_licenses.sh/0 | {
"file_path": "flutter/dev/bots/accept_android_sdk_licenses.sh",
"repo_id": "flutter",
"token_count": 185
} | 550 |
// Copyright 2014 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:convert';
import 'package:convert/convert.dart';
import 'package:crypto/crypto.dart';
import 'package:file/file.dart';
import 'package:path/p... | flutter/dev/bots/prepare_package/archive_publisher.dart/0 | {
"file_path": "flutter/dev/bots/prepare_package/archive_publisher.dart",
"repo_id": "flutter",
"token_count": 2970
} | 551 |
// Copyright 2014 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.
@TestOn('mac-os')
library;
import '../../../packages/flutter_tools/test/src/fake_process_manager.dart';
import '../test.dart';
import './common.dart';
vo... | flutter/dev/bots/test/codesign_test.dart/0 | {
"file_path": "flutter/dev/bots/test/codesign_test.dart",
"repo_id": "flutter",
"token_count": 5665
} | 552 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' as io;
import 'package:args/args.dart';
import 'package:conductor_core/conductor_core.dart';
import 'package:conductor_core/packages_auto... | flutter/dev/conductor/core/bin/packages_autoroller.dart/0 | {
"file_path": "flutter/dev/conductor/core/bin/packages_autoroller.dart",
"repo_id": "flutter",
"token_count": 1434
} | 553 |
// Copyright 2014 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.
//
// Generated code. Do not modify.
// source: conductor_state.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types
// ign... | flutter/dev/conductor/core/lib/src/proto/conductor_state.pbjson.dart/0 | {
"file_path": "flutter/dev/conductor/core/lib/src/proto/conductor_state.pbjson.dart",
"repo_id": "flutter",
"token_count": 3925
} | 554 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io' as io;
import 'package:conductor_core/conductor_core.dart';
import 'package:conductor_core/pa... | flutter/dev/conductor/core/test/packages_autoroller_test.dart/0 | {
"file_path": "flutter/dev/conductor/core/test/packages_autoroller_test.dart",
"repo_id": "flutter",
"token_count": 7038
} | 555 |
// Copyright 2014 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:convert';
import 'dart:io';
import 'package:args/args.dart';
import 'package:flutter_devicelab/framework/ab.dart';
import 'package:flutter_d... | flutter/dev/devicelab/bin/summarize.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/summarize.dart",
"repo_id": "flutter",
"token_count": 860
} | 556 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter_devicelab/framework/apk_utils.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'packag... | flutter/dev/devicelab/bin/tasks/build_aar_module_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/build_aar_module_test.dart",
"repo_id": "flutter",
"token_count": 3313
} | 557 |
// Copyright 2014 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_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/f... | flutter/dev/devicelab/bin/tasks/fast_scroll_heavy_gridview__memory.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/fast_scroll_heavy_gridview__memory.dart",
"repo_id": "flutter",
"token_count": 507
} | 558 |
// Copyright 2014 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_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/t... | flutter/dev/devicelab/bin/tasks/ios_defines_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/ios_defines_test.dart",
"repo_id": "flutter",
"token_count": 153
} | 559 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:... | flutter/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart",
"repo_id": "flutter",
"token_count": 467
} | 560 |
// Copyright 2014 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_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/f... | flutter/dev/devicelab/bin/tasks/smoke_test_device.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/smoke_test_device.dart",
"repo_id": "flutter",
"token_count": 327
} | 561 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:developer';
import 'dart:io';
import 'dart:isolate';
import 'package:logging/logging.dart';
impor... | flutter/dev/devicelab/lib/framework/framework.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/framework/framework.dart",
"repo_id": "flutter",
"token_count": 3931
} | 562 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import '../framework/framework.dart';
import '../f... | flutter/dev/devicelab/lib/tasks/dart_plugin_registry_tests.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/tasks/dart_plugin_registry_tests.dart",
"repo_id": "flutter",
"token_count": 2963
} | 563 |
// Copyright 2014 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_devicelab/framework/ab.dart';
import 'package:flutter_devicelab/framework/task_result.dart';
import 'common.dart';
void main() {
... | flutter/dev/devicelab/test/ab_test.dart/0 | {
"file_path": "flutter/dev/devicelab/test/ab_test.dart",
"repo_id": "flutter",
"token_count": 877
} | 564 |
// Copyright 2014 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.
apply plugin: 'com.android.application'
android {
compileSdk 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targ... | flutter/dev/integration_tests/android_custom_host_app/SampleApp/build.gradle/0 | {
"file_path": "flutter/dev/integration_tests/android_custom_host_app/SampleApp/build.gradle",
"repo_id": "flutter",
"token_count": 242
} | 565 |
// Copyright 2014 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 'headings_constants.dart';
export 'headings_constants.dart';
/// A test page with an app bar and some body... | flutter/dev/integration_tests/android_semantics_testing/lib/src/tests/headings_page.dart/0 | {
"file_path": "flutter/dev/integration_tests/android_semantics_testing/lib/src/tests/headings_page.dart",
"repo_id": "flutter",
"token_count": 313
} | 566 |
// Copyright 2014 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.integration.android_verified_input;
import android.content.Context;
import android.hardware.input.InputManager;
import android.os.Build... | flutter/dev/integration_tests/android_verified_input/android/app/src/main/java/io/flutter/integration/android_verified_input/VerifiedInputView.java/0 | {
"file_path": "flutter/dev/integration_tests/android_verified_input/android/app/src/main/java/io/flutter/integration/android_verified_input/VerifiedInputView.java",
"repo_id": "flutter",
"token_count": 1162
} | 567 |
name: android_verified_input
description: "An integration test for verified MotionEvents."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=3.2.0-0 <4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically u... | flutter/dev/integration_tests/android_verified_input/pubspec.yaml/0 | {
"file_path": "flutter/dev/integration_tests/android_verified_input/pubspec.yaml",
"repo_id": "flutter",
"token_count": 2229
} | 568 |
// Copyright 2014 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:channels/main.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
final Finder statusField = fi... | flutter/dev/integration_tests/channels/integration_test/main_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/channels/integration_test/main_test.dart",
"repo_id": "flutter",
"token_count": 509
} | 569 |
# Deferred components integration test app
## Setup
This integration test app requires manually downloading additional assets to build. Run
`./download_assets.sh`
before running any of the tests.
## Tests
This app contains two sets of tests:
* `flutter drive` tests that run a debug mode app to validate framewor... | flutter/dev/integration_tests/deferred_components_test/README.md/0 | {
"file_path": "flutter/dev/integration_tests/deferred_components_test/README.md",
"repo_id": "flutter",
"token_count": 133
} | 570 |
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
| flutter/dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties/0 | {
"file_path": "flutter/dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties",
"repo_id": "flutter",
"token_count": 71
} | 571 |
<!-- Copyright 2014 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. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
... | flutter/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml",
"repo_id": "flutter",
"token_count": 793
} | 572 |
// Copyright 2014 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.
/// A token that composes an expression. There are several kinds of tokens
/// that represent arithmetic operation symbols, numbers and pieces of numbers.
... | flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart",
"repo_id": "flutter",
"token_count": 3678
} | 573 |
// Copyright 2014 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';
class FortnightlyDemo extends StatelessWidget {
const FortnightlyDemo({super.key});
static const String route... | flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/fortnightly.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/fortnightly.dart",
"repo_id": "flutter",
"token_count": 4117
} | 574 |
// Copyright 2014 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/services.dart';
import 'package:intl/intl.dart';
// This demo is based on
// https://mater... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart",
"repo_id": "flutter",
"token_count": 5077
} | 575 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import '../../gallery/demo.dart';
class SliderDemo extends StatefulWidget {
const ... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/slider_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/slider_demo.dart",
"repo_id": "flutter",
"token_count": 6857
} | 576 |
// Copyright 2014 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 'product.dart';
List<Product> loadProducts(Category category) {
const List<Product> allProducts = <Product>[
Product(
category: Categor... | flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/model/products_repository.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/model/products_repository.dart",
"repo_id": "flutter",
"token_count": 2745
} | 577 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show defaultTargetPlatform;
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import... | flutter/dev/integration_tests/flutter_gallery/lib/gallery/about.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/gallery/about.dart",
"repo_id": "flutter",
"token_count": 1277
} | 578 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_gallery/gallery/example_code_parser.dart';
import 'package:flutter_test/flutter_test.dart';... | flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart",
"repo_id": "flutter",
"token_count": 571
} | 579 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is NOT auto generated.
// DO NOT update it by running dev/tools/bin/generate_gradle_lockfiles.dart.
buildscript {
ext.kotlin_version = '1... | flutter/dev/integration_tests/gradle_deprecated_settings/android/build.gradle/0 | {
"file_path": "flutter/dev/integration_tests/gradle_deprecated_settings/android/build.gradle",
"repo_id": "flutter",
"token_count": 486
} | 580 |
// Copyright 2014 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.integration.platformviews;
import android.app.AlertDialog;
import android.content.Context;
import android.graphics.PixelFormat;
import ... | flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java",
"repo_id": "flutter",
"token_count": 1263
} | 581 |
// Copyright 2014 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:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:path_provider/path_... | flutter/dev/integration_tests/hybrid_android_views/lib/motion_events_page.dart/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/lib/motion_events_page.dart",
"repo_id": "flutter",
"token_count": 3858
} | 582 |
// Copyright 2014 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 "ButtonFactory.h"
@interface PlatformButton: NSObject<FlutterPlatformView>
@property (strong, nonatomic) UIButton *button;
@property (assign, non... | flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.m/0 | {
"file_path": "flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.m",
"repo_id": "flutter",
"token_count": 376
} | 583 |
// Copyright 2014 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/cupertino.dart';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEGIN cupertinoContextMenuD... | flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart",
"repo_id": "flutter",
"token_count": 1132
} | 584 |
// Copyright 2014 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 '../../gallery_localizations.dart';
import 'material_demo_types.dart';
class SelectionControlsDemo extends ... | flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart",
"repo_id": "flutter",
"token_count": 3365
} | 585 |
// Copyright 2014 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 '../../themes/gallery_theme_data.dart';
import 'transformations_demo_board.dart';
import 'transformations_de... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart",
"repo_id": "flutter",
"token_count": 534
} | 586 |
// Copyright 2014 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import '../gallery_locali... | flutter/dev/integration_tests/new_gallery/lib/pages/about.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/pages/about.dart",
"repo_id": "flutter",
"token_count": 2197
} | 587 |
// Copyright 2014 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 '../../gallery_localizations.dart';
import 'backlayer.dart';
import 'header_form.dart';
class EatForm exte... | flutter/dev/integration_tests/new_gallery/lib/studies/crane/eat_form.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/crane/eat_form.dart",
"repo_id": "flutter",
"token_count": 858
} | 588 |
// Copyright 2014 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';
class VerticalFractionBar extends StatelessWidget {
const VerticalFractionBar({
super.key,
this.color,
... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart",
"repo_id": "flutter",
"token_count": 442
} | 589 |
// Copyright 2014 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 'colors.dart';
class BottomDrawer extends StatelessWidget {
const BottomDrawer({
super.key,
this.... | flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart",
"repo_id": "flutter",
"token_count": 914
} | 590 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:scoped_model/scoped_model.dart';
import '../../gallery_localizations.dart';
i... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart",
"repo_id": "flutter",
"token_count": 9928
} | 591 |
// Copyright 2014 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 '../model/product.dart';
import 'product_card.dart';
class TwoProductCardColumn extends StatelessWidget {
... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart",
"repo_id": "flutter",
"token_count": 893
} | 592 |
// Copyright 2014 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_driver/driver_extension.dart';
/// This sample application creates a hard to render frame,... | flutter/dev/integration_tests/ui/lib/screenshot.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/screenshot.dart",
"repo_id": "flutter",
"token_count": 969
} | 593 |
// Copyright 2014 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:web_integration/a.dart'
if (dart.library.io) 'package:web_integration/b.dart' as message1;
import 'package:web_integration/c.dart'
if (... | flutter/dev/integration_tests/web/test/test.dart/0 | {
"file_path": "flutter/dev/integration_tests/web/test/test.dart",
"repo_id": "flutter",
"token_count": 194
} | 594 |
# Flutter Web integration tests
To run the tests in this package [download][1] the chromedriver matching the
version of Chrome. To find out the version of your Chrome installation visit
chrome://version.
Start `chromedriver` using the following command:
```
chromedriver --port=4444
```
An integration test is run us... | flutter/dev/integration_tests/web_e2e_tests/README.md/0 | {
"file_path": "flutter/dev/integration_tests/web_e2e_tests/README.md",
"repo_id": "flutter",
"token_count": 444
} | 595 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:typed_data';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'pac... | flutter/dev/integration_tests/wide_gamut_test/integration_test/app_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/wide_gamut_test/integration_test/app_test.dart",
"repo_id": "flutter",
"token_count": 2539
} | 596 |
#include "Generated.xcconfig"
| flutter/dev/manual_tests/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/dev/manual_tests/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 597 |
// Copyright 2014 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';
class CardModel {
CardModel(this.value, this.height, this.color);
int value;
double height;
Color color;
... | flutter/dev/manual_tests/lib/overlay_geometry.dart/0 | {
"file_path": "flutter/dev/manual_tests/lib/overlay_geometry.dart",
"repo_id": "flutter",
"token_count": 2505
} | 598 |
analyzer:
exclude:
- '**'
| flutter/dev/missing_dependency_tests/analysis_options.yaml/0 | {
"file_path": "flutter/dev/missing_dependency_tests/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 16
} | 599 |
## Token Defaults Generator
Script that generates component theme data defaults based on token data.
## Usage
Run this program from the root of the git repository:
```
dart dev/tools/gen_defaults/bin/gen_defaults.dart [-v]
```
This updates `generated/used_tokens.csv` and the various component theme files.
## Templa... | flutter/dev/tools/gen_defaults/README.md/0 | {
"file_path": "flutter/dev/tools/gen_defaults/README.md",
"repo_id": "flutter",
"token_count": 324
} | 600 |
{
"version": "v0_206",
"md.comp.assist-chip.container.height": 32.0,
"md.comp.assist-chip.container.shape": "md.sys.shape.corner.small",
"md.comp.assist-chip.disabled.label-text.color": "onSurface",
"md.comp.assist-chip.disabled.label-text.opacity": 0.38,
"md.comp.assist-chip.dragged.container.elevation": ... | flutter/dev/tools/gen_defaults/data/chip_assist.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/chip_assist.json",
"repo_id": "flutter",
"token_count": 1282
} | 601 |
{
"version": "v0_206",
"md.comp.fab.primary.small.container.color": "primaryContainer",
"md.comp.fab.primary.small.container.elevation": "md.sys.elevation.level3",
"md.comp.fab.primary.small.container.height": 40.0,
"md.comp.fab.primary.small.container.shadow-color": "shadow",
"md.comp.fab.primary.small.co... | flutter/dev/tools/gen_defaults/data/fab_small_primary.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/fab_small_primary.json",
"repo_id": "flutter",
"token_count": 808
} | 602 |
{
"version": "v0_206",
"md.comp.radio-button.disabled.selected.icon.color": "onSurface",
"md.comp.radio-button.disabled.selected.icon.opacity": 0.38,
"md.comp.radio-button.disabled.unselected.icon.color": "onSurface",
"md.comp.radio-button.disabled.unselected.icon.opacity": 0.38,
"md.comp.radio-button.icon... | flutter/dev/tools/gen_defaults/data/radio_button.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/radio_button.json",
"repo_id": "flutter",
"token_count": 723
} | 603 |
{
"version": "v0_206",
"md.comp.top-app-bar.small.container.color": "surface",
"md.comp.top-app-bar.small.container.elevation": "md.sys.elevation.level0",
"md.comp.top-app-bar.small.container.height": 64.0,
"md.comp.top-app-bar.small.container.shape": "md.sys.shape.corner.none",
"md.comp.top-app-bar.small.... | flutter/dev/tools/gen_defaults/data/top_app_bar_small.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/top_app_bar_small.json",
"repo_id": "flutter",
"token_count": 344
} | 604 |
// Copyright 2014 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 'template.dart';
class RadioTemplate extends TokenTemplate {
const RadioTemplate(super.blockName, super.fileName, super.tokens, {
super.color... | flutter/dev/tools/gen_defaults/lib/radio_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/radio_template.dart",
"repo_id": "flutter",
"token_count": 1278
} | 605 |
// Copyright 2014 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(davidmartos96): Remove this tag once this test's state leaks/test
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/142... | flutter/dev/tools/gen_defaults/test/gen_defaults_test.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/test/gen_defaults_test.dart",
"repo_id": "flutter",
"token_count": 5560
} | 606 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <map>
#include <set>
#include "flutter/shell/platform/darwin/ios/framework/Source/KeyCodeMap_Internal.h"
// DO NOT EDIT -- DO NOT EDIT -- DO NOT ... | flutter/dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl",
"repo_id": "flutter",
"token_count": 619
} | 607 |
{
"0": ["Digit0", null, null, "Numpad0"],
"1": ["Digit1", null, null, "Numpad1"],
"2": ["Digit2", null, null, "Numpad2"],
"3": ["Digit3", null, null, "Numpad3"],
"4": ["Digit4", null, null, "Numpad4"],
"5": ["Digit5", null, null, "Numpad5"],
"6": ["Digit6", null, null, "Numpad6"],
"7": ["Digit7", null, ... | flutter/dev/tools/gen_keycodes/data/web_logical_location_mapping.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/web_logical_location_mapping.json",
"repo_id": "flutter",
"token_count": 707
} | 608 |
// Copyright 2014 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:path/path.dart' as path;
import 'base_code_gen.dart';
import 'logical_key_data.dart';
import 'physical_key_data.dart';
import 'utils.dart'... | flutter/dev/tools/gen_keycodes/lib/testing_key_codes_java_gen.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/testing_key_codes_java_gen.dart",
"repo_id": "flutter",
"token_count": 840
} | 609 |
// Copyright 2014 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:convert' show json;
import 'dart:io';
import 'localizations_utils.dart';
// The first suffix in kPluralSuffixes must be "Other". "Other" is ... | flutter/dev/tools/localization/localizations_validator.dart/0 | {
"file_path": "flutter/dev/tools/localization/localizations_validator.dart",
"repo_id": "flutter",
"token_count": 2740
} | 610 |
<svg id="svg_build_00" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" >
<g if="group_2" transform="translate(0,15.0)">
<path id="path_1" d="M 0,19.0 L 48.0, 19.0 L 48.0, 29.0 L 0, 29.0 Z " fill="#000000" />
</g>
</svg>
| flutter/dev/tools/vitool/test_assets/bar_group_translate.svg/0 | {
"file_path": "flutter/dev/tools/vitool/test_assets/bar_group_translate.svg",
"repo_id": "flutter",
"token_count": 122
} | 611 |
package com.example.tracing_tests
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()
| flutter/dev/tracing_tests/android/app/src/main/kotlin/com/example/tracing_tests/MainActivity.kt/0 | {
"file_path": "flutter/dev/tracing_tests/android/app/src/main/kotlin/com/example/tracing_tests/MainActivity.kt",
"repo_id": "flutter",
"token_count": 36
} | 612 |
// Copyright 2014 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:developer';
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class ... | flutter/dev/tracing_tests/lib/test.dart/0 | {
"file_path": "flutter/dev/tracing_tests/lib/test.dart",
"repo_id": "flutter",
"token_count": 657
} | 613 |
// Copyright 2014 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/cupertino.dart';
/// Flutter code sample for [CupertinoFormRow].
void main() => runApp(const CupertinoFormRowApp());
class Cuper... | flutter/examples/api/lib/cupertino/form_row/cupertino_form_row.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/form_row/cupertino_form_row.0.dart",
"repo_id": "flutter",
"token_count": 2069
} | 614 |
// Copyright 2014 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/cupertino.dart';
/// Flutter code sample for [CupertinoSegmentedControl].
enum Sky { midnight, viridian, cerulean }
Map<Sky, Col... | flutter/examples/api/lib/cupertino/segmented_control/cupertino_segmented_control.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/segmented_control/cupertino_segmented_control.0.dart",
"repo_id": "flutter",
"token_count": 1065
} | 615 |
// Copyright 2014 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';
/// Flutter code sample for [AppBar].
void main() => runApp(const AppBarApp());
class AppBarApp extends Stateles... | flutter/examples/api/lib/material/app_bar/app_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/app_bar/app_bar.0.dart",
"repo_id": "flutter",
"token_count": 949
} | 616 |
// Copyright 2014 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/rendering.dart';
/// Flutter code sample for [BottomAppBar] with Material 3.
void main() ... | flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.2.dart",
"repo_id": "flutter",
"token_count": 2284
} | 617 |
// Copyright 2014 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';
/// Flutter code sample for custom labeled checkbox.
void main() => runApp(const LabeledCheckboxApp());
class La... | flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart",
"repo_id": "flutter",
"token_count": 879
} | 618 |
// Copyright 2014 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';
/// Flutter code sample for [showDateRangePicker].
void main() => runApp(const DatePickerApp());
class DatePicke... | flutter/examples/api/lib/material/date_picker/show_date_range_picker.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/date_picker/show_date_range_picker.0.dart",
"repo_id": "flutter",
"token_count": 1271
} | 619 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.