text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
/*
* Copyright 2016 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.sdk;
import com.intellij.execution.ExecutionException;
import com.jetbrains.lang.dart.sdk.DartSdk;
import io.flutter.dart.DartPl... | flutter-intellij/flutter-idea/testSrc/integration/io/flutter/sdk/FlutterSdkUtilTest.java/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/integration/io/flutter/sdk/FlutterSdkUtilTest.java",
"repo_id": "flutter-intellij",
"token_count": 585
} | 512 |
/*
* Copyright 2021 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.coverage;
import com.intellij.rt.coverage.data.ProjectData;
import io.flutter.run.coverage.LcovInfo;
import org.junit.Test;
imp... | flutter-intellij/flutter-idea/testSrc/unit/io/flutter/coverage/LcovInfoTest.java/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/unit/io/flutter/coverage/LcovInfoTest.java",
"repo_id": "flutter-intellij",
"token_count": 302
} | 513 |
{
"type": "Event",
"kind": "Logging",
"isolate": {
"type": "@Isolate",
"id": "isolates/170696135467167",
"name": "main",
"number": "170696135467167"
},
"timestamp": 1562619110758,
"logRecord": {
"type": "LogRecord",
"sequenceNumber": 5,
"time": 1562619110758,
"level": 0,
... | flutter-intellij/flutter-idea/testSrc/unit/io/flutter/logging/console_log_3.json/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/unit/io/flutter/logging/console_log_3.json",
"repo_id": "flutter-intellij",
"token_count": 1022
} | 514 |
/*
* Copyright 2019 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.run.common;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import com.intellij.psi.impl.source... | flutter-intellij/flutter-idea/testSrc/unit/io/flutter/run/common/CommonTestConfigUtilsTest.java/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/unit/io/flutter/run/common/CommonTestConfigUtilsTest.java",
"repo_id": "flutter-intellij",
"token_count": 2719
} | 515 |
/*
* 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.utils;
import com.google.common.collect.ImmutableList;
import com.intellij.openapi.CompositeDisposable;
import com.intellij.open... | flutter-intellij/flutter-idea/testSrc/unit/io/flutter/utils/AsyncRateLimiterTest.java/0 | {
"file_path": "flutter-intellij/flutter-idea/testSrc/unit/io/flutter/utils/AsyncRateLimiterTest.java",
"repo_id": "flutter-intellij",
"token_count": 2524
} | 516 |
/*
* 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/VmService.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/VmService.java",
"repo_id": "flutter-intellij",
"token_count": 18919
} | 517 |
/*
* 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/Library.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/Library.java",
"repo_id": "flutter-intellij",
"token_count": 1086
} | 518 |
/*
* 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/ProfileFunction.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/ProfileFunction.java",
"repo_id": "flutter-intellij",
"token_count": 687
} | 519 |
/*
* 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/SourceReportCoverage.java/0 | {
"file_path": "flutter-intellij/flutter-idea/third_party/vmServiceDrivers/org/dartlang/vm/service/element/SourceReportCoverage.java",
"repo_id": "flutter-intellij",
"token_count": 452
} | 520 |
package io.flutter.project;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ide.util.projectWizard.SettingsStep;
import com.intellij.ide.util.projectWizard.WizardContext;
import com.intellij.openapi.Disposable;
import io.flutter.FlutterBundle;
import io.flutter.module.FlutterModuleBuil... | flutter-intellij/flutter-studio/src/io/flutter/project/FlutterModuleGroup.java/0 | {
"file_path": "flutter-intellij/flutter-studio/src/io/flutter/project/FlutterModuleGroup.java",
"repo_id": "flutter-intellij",
"token_count": 1274
} | 521 |
/*
* 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 com.android.tools.idea.tests.gui.framework.fixture.wizard.Abstr... | flutter-intellij/flutter-studio/testSrc/com/android/tools/idea/tests/gui/framework/fixture/newProjectWizard/FlutterSettingsStepFixture.java/0 | {
"file_path": "flutter-intellij/flutter-studio/testSrc/com/android/tools/idea/tests/gui/framework/fixture/newProjectWizard/FlutterSettingsStepFixture.java",
"repo_id": "flutter-intellij",
"token_count": 862
} | 522 |
# Location of the bash script.
build_file: "flutter-intellij-kokoro/kokoro/macos_external/kokoro_release.sh"
action {
define_artifacts {
regex: "github/flutter-intellij-kokoro/releases/release_dev/**"
strip_prefix: "github/flutter-intellij-kokoro/releases"
}
}
before_action {
fetch_keystore {
keysto... | flutter-intellij/kokoro/macos_external/release.cfg/0 | {
"file_path": "flutter-intellij/kokoro/macos_external/release.cfg",
"repo_id": "flutter-intellij",
"token_count": 233
} | 523 |
# Generated file - do not edit.
# suppress inspection "UnusedProperty" for whole file
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
cade... | flutter-intellij/resources/flutter/colors/css.properties/0 | {
"file_path": "flutter-intellij/resources/flutter/colors/css.properties",
"repo_id": "flutter-intellij",
"token_count": 1359
} | 524 |
/*
* Copyright 2020 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
pluginManagement {
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots/")
gradlePluginPortal()
}
}
val ide: ... | flutter-intellij/settings.gradle.kts/0 | {
"file_path": "flutter-intellij/settings.gradle.kts",
"repo_id": "flutter-intellij",
"token_count": 141
} | 525 |
rem @echo off
set DART_VERSION=2.7.1
set ANT_VERSION=1.10.7
echo "install dart"
md ..\dart
cd ..\dart
curl https://storage.googleapis.com/dart-archive/channels/stable/release/%DART_VERSION%/sdk/dartsdk-windows-ia32-release.zip > dart.zip
unzip -q dart.zip
REM "%~dp0" is the directory of this file including trailing b... | flutter-intellij/tool/kokoro/test.bat/0 | {
"file_path": "flutter-intellij/tool/kokoro/test.bat",
"repo_id": "flutter-intellij",
"token_count": 433
} | 526 |
// 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.
import 'dart:async';
import 'dart:io';
import 'package:plugin_tool/plugin.dart';
import 'package:plugin_tool/runner.dart';
import 'package:plugin_tool/util.... | flutter-intellij/tool/plugin/test/plugin_test.dart/0 | {
"file_path": "flutter-intellij/tool/plugin/test/plugin_test.dart",
"repo_id": "flutter-intellij",
"token_count": 3410
} | 527 |
#!/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.
# ---------------------------------- NOTE ---------------------------------- #
#
# Please keep the logic in this file consistent with the ... | flutter/bin/dart/0 | {
"file_path": "flutter/bin/dart",
"repo_id": "flutter",
"token_count": 652
} | 528 |
8fb14f99a8854d4e2b16559c0eb48e7c297065ce
| flutter/bin/internal/libzip.version/0 | {
"file_path": "flutter/bin/internal/libzip.version",
"repo_id": "flutter",
"token_count": 27
} | 529 |
// 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 NavigationBarUseCase extends UseCase {
@override
String get name => 'Navigati... | flutter/dev/a11y_assessments/lib/use_cases/navigation_bar.dart/0 | {
"file_path": "flutter/dev/a11y_assessments/lib/use_cases/navigation_bar.dart",
"repo_id": "flutter",
"token_count": 863
} | 530 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/a11y_assessments/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/dev/a11y_assessments/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 531 |
// 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/navigation_bar.dart';
import 'package:flutter_test/flutter_test.dart';
import 'test_utils.dart';
void main() {... | flutter/dev/a11y_assessments/test/navigation_bar_test.dart/0 | {
"file_path": "flutter/dev/a11y_assessments/test/navigation_bar_test.dart",
"repo_id": "flutter",
"token_count": 259
} | 532 |
// 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 ColorFilterWithUnstableChildPage extends StatefulWidget {
const ColorFilterWithUnstableChildPage({super.ke... | flutter/dev/benchmarks/macrobenchmarks/lib/src/color_filter_with_unstable_child.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/color_filter_with_unstable_child.dart",
"repo_id": "flutter",
"token_count": 664
} | 533 |
// 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 PictureCachePage extends StatelessWidget {
const PictureCachePage({super.key});
static const List<Strin... | flutter/dev/benchmarks/macrobenchmarks/lib/src/picture_cache.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/picture_cache.dart",
"repo_id": "flutter",
"token_count": 3478
} | 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/foundation.dart';
import 'recorder.dart';
/// Benchmarks the performance of the [defaultTargetPlatform] getter.
///
/// The gette... | flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_default_target_platform.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_default_target_platform.dart",
"repo_id": "flutter",
"token_count": 270
} | 535 |
// 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 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'recorder.dart';
const String chars = '1234567890'
'abcde... | flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_text_layout.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_text_layout.dart",
"repo_id": "flutter",
"token_count": 5125
} | 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:flutter_driver/flutter_driver.dart';
import 'package:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTest(
... | flutter/dev/benchmarks/macrobenchmarks/test_driver/path_tessellation_static_perf_test.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/test_driver/path_tessellation_static_perf_test.dart",
"repo_id": "flutter",
"token_count": 373
} | 537 |
<!-- 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">
<uses-permission android:name="android.permission.INTERNET"/>
<application ... | flutter/dev/benchmarks/microbenchmarks/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/android/app/src/main/AndroidManifest.xml",
"repo_id": "flutter",
"token_count": 573
} | 538 |
// 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_method_codec_bench.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/foundation/standard_method_codec_bench.dart",
"repo_id": "flutter",
"token_count": 960
} | 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 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:stocks/ma... | flutter/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart",
"repo_id": "flutter",
"token_count": 752
} | 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. -->
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.MultipleFlutters" parent="Theme.Mate... | flutter/dev/benchmarks/multiple_flutters/android/app/src/main/res/values/themes.xml/0 | {
"file_path": "flutter/dev/benchmarks/multiple_flutters/android/app/src/main/res/values/themes.xml",
"repo_id": "flutter",
"token_count": 358
} | 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 'dart:math' as math;
import 'package:flutter/foundation.dart' show kDebugMode;
import 'package:flutter/material.dart';
import ... | flutter/dev/benchmarks/platform_channels_benchmarks/lib/main.dart/0 | {
"file_path": "flutter/dev/benchmarks/platform_channels_benchmarks/lib/main.dart",
"repo_id": "flutter",
"token_count": 2915
} | 542 |
#include "Generated.xcconfig"
| flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 543 |
<?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>
... | flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner/Info.plist/0 | {
"file_path": "flutter/dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner/Info.plist",
"repo_id": "flutter",
"token_count": 654
} | 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/gestures.dart' show DragStartBehavior;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart' show debugDu... | flutter/dev/benchmarks/test_apps/stocks/lib/stock_home.dart/0 | {
"file_path": "flutter/dev/benchmarks/test_apps/stocks/lib/stock_home.dart",
"repo_id": "flutter",
"token_count": 4798
} | 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.
/// The SDK package allowlist for the flutter, flutter_test, flutter_driver, flutter_localizations,
/// and integration_test packages.
///
/// The goal of ... | flutter/dev/bots/allowlist.dart/0 | {
"file_path": "flutter/dev/bots/allowlist.dart",
"repo_id": "flutter",
"token_count": 509
} | 546 |
// 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' hide Platform;
const String gobMirror = 'https://flutter.googlesource.com/mirrors/flutter';
const String githubRepo = 'https://github.com... | flutter/dev/bots/prepare_package/common.dart/0 | {
"file_path": "flutter/dev/bots/prepare_package/common.dart",
"repo_id": "flutter",
"token_count": 500
} | 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 'dart:io';
import 'package:test/test.dart';
export 'package:test/test.dart' hide isInstanceOf;
/// A matcher that compares the type of the actual... | flutter/dev/bots/test/common.dart/0 | {
"file_path": "flutter/dev/bots/test/common.dart",
"repo_id": "flutter",
"token_count": 324
} | 548 |
# codesign_integration_test takes longer than the default timeout which is 30s
# since it has to clone both the engine and framework repos, and that test is running
# asynchronously. The async function is being awaited more than 30s which counts as inactivity
# The default timeout needs to be extended to accommodate co... | flutter/dev/conductor/core/dart_test.yaml/0 | {
"file_path": "flutter/dev/conductor/core/dart_test.yaml",
"repo_id": "flutter",
"token_count": 84
} | 549 |
// 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:conductor_core/src/repository.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:platform/platform.... | flutter/dev/conductor/core/test/repository_test.dart/0 | {
"file_path": "flutter/dev/conductor/core/test/repository_test.dart",
"repo_id": "flutter",
"token_count": 6057
} | 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:io';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/ios.dart';
import 'package:flut... | flutter/dev/devicelab/bin/tasks/build_ios_framework_module_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/build_ios_framework_module_test.dart",
"repo_id": "flutter",
"token_count": 10340
} | 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.
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_large_images__memory.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/fast_scroll_large_images__memory.dart",
"repo_id": "flutter",
"token_count": 408
} | 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';
import 'package:flutter_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:... | flutter/dev/devicelab/bin/tasks/route_test_ios.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/route_test_ios.dart",
"repo_id": "flutter",
"token_count": 435
} | 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.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/task_result.dart';
/// Smoke test of a task that ... | flutter/dev/devicelab/bin/tasks/smoke_test_failure.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/smoke_test_failure.dart",
"repo_id": "flutter",
"token_count": 136
} | 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 'package:file/file.dart';
import 'package:file/local.dart';
import 'package:meta/meta.dart';
import 'package:platform/platform.dart';
/// The curre... | flutter/dev/devicelab/lib/framework/host_agent.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/framework/host_agent.dart",
"repo_id": "flutter",
"token_count": 407
} | 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:async';
import 'dart:convert';
import 'dart:io' show Directory, File, Process, ProcessSignal;
import '../framework/devices.dart';
import '../... | flutter/dev/devicelab/lib/tasks/entrypoint_dart_registrant.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/tasks/entrypoint_dart_registrant.dart",
"repo_id": "flutter",
"token_count": 1203
} | 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 'package:collection/collection.dart' show ListEquality, MapEquality;
import 'package:flutter_devicelab/framework/devices.dart';
import 'package:met... | flutter/dev/devicelab/test/adb_test.dart/0 | {
"file_path": "flutter/dev/devicelab/test/adb_test.dart",
"repo_id": "flutter",
"token_count": 2864
} | 557 |
# Welcome to the Flutter API reference documentation!
Flutter is Google's SDK for crafting beautiful, fast user experiences for
mobile, web, and desktop from a single codebase. Flutter works with existing
code, is used by developers and organizations around the world, and is free
and open source.
This API reference c... | flutter/dev/docs/README.md/0 | {
"file_path": "flutter/dev/docs/README.md",
"repo_id": "flutter",
"token_count": 995
} | 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.
/// The name of the route containing the test suite.
const String popupControlsRoute = 'popups';
/// The string supplied to the [ValueKey] for the popup m... | flutter/dev/integration_tests/android_semantics_testing/lib/src/tests/popup_constants.dart/0 | {
"file_path": "flutter/dev/integration_tests/android_semantics_testing/lib/src/tests/popup_constants.dart",
"repo_id": "flutter",
"token_count": 314
} | 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.
package io.flutter.integration.android_verified_input;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Null... | flutter/dev/integration_tests/android_verified_input/android/app/src/main/java/io/flutter/integration/android_verified_input/VerifiedInputViewFactory.java/0 | {
"file_path": "flutter/dev/integration_tests/android_verified_input/android/app/src/main/java/io/flutter/integration/android_verified_input/VerifiedInputViewFactory.java",
"repo_id": "flutter",
"token_count": 260
} | 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 'dart:async';
import 'dart:io';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';
Future<void> main() async {
... | flutter/dev/integration_tests/android_verified_input/test_driver/main_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/android_verified_input/test_driver/main_test.dart",
"repo_id": "flutter",
"token_count": 493
} | 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 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_driver/driver_extension.dart';
void main() {
ena... | flutter/dev/integration_tests/flavors/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/flavors/lib/main.dart",
"repo_id": "flutter",
"token_count": 393
} | 562 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/integration_tests/flavors/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/flavors/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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.
package io.flutter.demo.gallery;
import android.os.ConditionVariable;
import androidx.annotation.NonNull;
import io.flutter.plugin.common.BinaryMessenger... | flutter/dev/integration_tests/flutter_gallery/android/app/src/main/java/io/flutter/demo/gallery/FlutterGalleryInstrumentation.java/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/android/app/src/main/java/io/flutter/demo/gallery/FlutterGalleryInstrumentation.java",
"repo_id": "flutter",
"token_count": 386
} | 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.
import 'package:flutter/material.dart';
import '../gallery/demo.dart';
class ImagesDemo extends StatelessWidget {
const ImagesDemo({super.key});
sta... | flutter/dev/integration_tests/flutter_gallery/lib/demo/images_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/images_demo.dart",
"repo_id": "flutter",
"token_count": 595
} | 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 '../../gallery/demo.dart';
enum GridDemoTileStyle {
imageOnly,
oneLine,
twoLine
}
typedef BannerTap... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/grid_list_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/grid_list_demo.dart",
"repo_id": "flutter",
"token_count": 4930
} | 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.
import 'package:flutter/material.dart';
import '../../gallery/demo.dart';
const String _text1 =
'Snackbars provide lightweight feedback about an operat... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/snack_bar_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/snack_bar_demo.dart",
"repo_id": "flutter",
"token_count": 1273
} | 567 |
// 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:intl/intl.dart';
import 'package:scoped_model/scoped_model.dart';
import 'colors.dart';
import 'ex... | flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/shopping_cart.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/shopping_cart.dart",
"repo_id": "flutter",
"token_count": 5068
} | 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 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart' show defaultTargetPlatform;
import 'package:flutter... | flutter/dev/integration_tests/flutter_gallery/lib/gallery/app.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/gallery/app.dart",
"repo_id": "flutter",
"token_count": 2292
} | 569 |
// 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/rendering.dart';
import 'package:flutter_goldens/flutter_goldens.dart' as flutter_goldens show testExecutable... | flutter/dev/integration_tests/flutter_gallery/test/flutter_test_config.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test/flutter_test_config.dart",
"repo_id": "flutter",
"token_count": 238
} | 570 |
// 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.content.Context;
import io.flutter.embedding.engine.dart.DartExecutor;
import io.flutter.plu... | flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimpleViewFactory.java/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimpleViewFactory.java",
"repo_id": "flutter",
"token_count": 280
} | 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.
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'android_platform_view.dart';
import 'future_dat... | flutter/dev/integration_tests/hybrid_android_views/lib/nested_view_event_page.dart/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/lib/nested_view_event_page.dart",
"repo_id": "flutter",
"token_count": 3236
} | 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.
#import <Flutter/Flutter.h>
#import "AppDelegate.h"
#import "HybridViewController.h"
@interface HybridViewController ()
@end
static NSString *_kChannel... | flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.m/0 | {
"file_path": "flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.m",
"repo_id": "flutter",
"token_count": 1056
} | 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.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
... | flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle/0 | {
"file_path": "flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle",
"repo_id": "flutter",
"token_count": 184
} | 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.
export 'package:gallery/demos/cupertino/cupertino_activity_indicator_demo.dart';
export 'package:gallery/demos/cupertino/cupertino_alert_demo.dart';
export... | flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_demos.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_demos.dart",
"repo_id": "flutter",
"token_count": 403
} | 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 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
import 'material_demo_types.dart';
class ButtonDemo extends StatelessWi... | flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart",
"repo_id": "flutter",
"token_count": 3866
} | 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 'dart:math' as math;
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
import 'material_demo_types.dart';
class S... | flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart",
"repo_id": "flutter",
"token_count": 8708
} | 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 'dart:ui';
import 'package:dual_screen/dual_screen.dart';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEG... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/two_pane_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/two_pane_demo.dart",
"repo_id": "flutter",
"token_count": 2887
} | 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/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import '../constants.dart';
impor... | flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart",
"repo_id": "flutter",
"token_count": 4381
} | 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.
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
import 'backlayer.dart';
import 'header_form.dart';
class FlyForm exte... | flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart",
"repo_id": "flutter",
"token_count": 868
} | 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.
import 'dart:ui';
/// Most color assignments in Rally are not like the typical color
/// assignments that are common in other apps. Instead of primarily m... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/colors.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/colors.dart",
"repo_id": "flutter",
"token_count": 682
} | 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 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
import 'package:scoped_model/scoped_model.dart';
import '../../data/galle... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart",
"repo_id": "flutter",
"token_count": 872
} | 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 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:google_fonts/google_fonts.dart';
import '../../layout/lett... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart",
"repo_id": "flutter",
"token_count": 1359
} | 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/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@ov... | flutter/dev/integration_tests/spell_check/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/spell_check/lib/main.dart",
"repo_id": "flutter",
"token_count": 534
} | 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/widgets.dart' as widgets show Container, Size, runApp;
import 'package:flutter_test/flutter_test.dart';
import 'package:integration... | flutter/dev/integration_tests/ui/integration_test/resize_integration_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/integration_test/resize_integration_test.dart",
"repo_id": "flutter",
"token_count": 741
} | 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 'dart:developer';
import 'package:flutter/widgets.dart';
void main() {
final Set<Widget> widgets = <Widget>{};
widgets.add(const Text('same'));... | flutter/dev/integration_tests/ui/lib/track_widget_creation.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/track_widget_creation.dart",
"repo_id": "flutter",
"token_count": 194
} | 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 Cocoa
import FlutterMacOS
extension NSWindow {
var titlebarHeight: CGFloat {
frame.height - contentRect(forFrameRect: frame).height
}
}
cl... | flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift/0 | {
"file_path": "flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift",
"repo_id": "flutter",
"token_count": 697
} | 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 'dart:html';
import 'package:flutter_test/flutter_test.dart';
/// Whether the current browser is Firefox.
bool get isFirefox => window.navigator.u... | flutter/dev/integration_tests/web_e2e_tests/lib/common.dart/0 | {
"file_path": "flutter/dev/integration_tests/web_e2e_tests/lib/common.dart",
"repo_id": "flutter",
"token_count": 331
} | 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 'dart:html' as html;
import 'dart:ui_web' as ui_web;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'packag... | flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration.dart/0 | {
"file_path": "flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration.dart",
"repo_id": "flutter",
"token_count": 706
} | 589 |
#include "Generated.xcconfig"
| flutter/dev/manual_tests/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/dev/manual_tests/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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 'package:flutter/material.dart';
class CardModel {
CardModel(this.value, this.size, this.color);
int value;
Size size;
Color color;
Strin... | flutter/dev/manual_tests/lib/page_view.dart/0 | {
"file_path": "flutter/dev/manual_tests/lib/page_view.dart",
"repo_id": "flutter",
"token_count": 1643
} | 591 |
name: missing_dependency_tests
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
| flutter/dev/missing_dependency_tests/pubspec.yaml/0 | {
"file_path": "flutter/dev/missing_dependency_tests/pubspec.yaml",
"repo_id": "flutter",
"token_count": 54
} | 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.
// ## Usage
//
// Run this program from the root of the git repository.
//
// ```
// dart dev/tools/gen_defaults/bin/gen_defaults.dart [-v]
// ```
import ... | flutter/dev/tools/gen_defaults/bin/gen_defaults.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/bin/gen_defaults.dart",
"repo_id": "flutter",
"token_count": 3103
} | 593 |
{
"version": "v0_206",
"md.comp.filter-chip.container.height": 32.0,
"md.comp.filter-chip.container.shape": "md.sys.shape.corner.small",
"md.comp.filter-chip.disabled.label-text.color": "onSurface",
"md.comp.filter-chip.disabled.label-text.opacity": 0.38,
"md.comp.filter-chip.dragged.container.elevation": ... | flutter/dev/tools/gen_defaults/data/chip_filter.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/chip_filter.json",
"repo_id": "flutter",
"token_count": 2677
} | 594 |
{
"version": "v0_206",
"md.comp.icon-button.disabled.icon.color": "onSurface",
"md.comp.icon-button.disabled.icon.opacity": 0.38,
"md.comp.icon-button.focus.indicator.color": "secondary",
"md.comp.icon-button.focus.indicator.outline.offset": "md.sys.state.focus-indicator.outer-offset",
"md.comp.icon-button... | flutter/dev/tools/gen_defaults/data/icon_button.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/icon_button.json",
"repo_id": "flutter",
"token_count": 825
} | 595 |
{
"version": "v0_206",
"md.comp.search-bar.avatar.shape": "md.sys.shape.corner.full",
"md.comp.search-bar.avatar.size": 30.0,
"md.comp.search-bar.container.color": "surfaceContainerHigh",
"md.comp.search-bar.container.elevation": "md.sys.elevation.level3",
"md.comp.search-bar.container.height": 56.0,
"md... | flutter/dev/tools/gen_defaults/data/search_bar.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/search_bar.json",
"repo_id": "flutter",
"token_count": 567
} | 596 |
{
"version": "v0_206",
"md.ref.typeface.brand": "Roboto",
"md.ref.typeface.plain": "Roboto",
"md.ref.typeface.weight-bold": 700,
"md.ref.typeface.weight-medium": 500,
"md.ref.typeface.weight-regular": 400
}
| flutter/dev/tools/gen_defaults/data/typeface.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/typeface.json",
"repo_id": "flutter",
"token_count": 94
} | 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 'template.dart';
class DrawerTemplate extends TokenTemplate {
const DrawerTemplate(super.blockName, super.fileName, super.tokens);
@override
... | flutter/dev/tools/gen_defaults/lib/drawer_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/drawer_template.dart",
"repo_id": "flutter",
"token_count": 504
} | 598 |
// 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 SearchBarTemplate extends TokenTemplate {
const SearchBarTemplate(super.blockName, super.fileName, super.tokens, {
sup... | flutter/dev/tools/gen_defaults/lib/search_bar_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/search_bar_template.dart",
"repo_id": "flutter",
"token_count": 1002
} | 599 |
## Keycode Generator
This directory contains a keycode generator that can generate Dart code for
the `LogicalKeyboardKey` and `PhysicalKeyboardKey` classes.
It generates multiple files across Flutter. For framework, it generates
* [`keyboard_key.g.dart`](../../../packages/flutter/lib/src/services/keyboard_key.g.dart... | flutter/dev/tools/gen_keycodes/README.md/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/README.md",
"repo_id": "flutter",
"token_count": 1717
} | 600 |
{
"Backspace": ["Backspace"],
"Tab": ["Tab"],
"Enter": ["Enter"],
"Escape": ["Escape"],
"CapsLock": ["CapsLock"],
"NumLock": ["NumLock"],
"ArrowDown": ["ArrowDown"],
"ArrowLeft": ["ArrowLeft"],
"ArrowRight": ["ArrowRight"],
"ArrowUp": ["ArrowUp"],
"End": ["End"],
"Home": ["Home"],
"PageDown":... | flutter/dev/tools/gen_keycodes/data/ios_logical_to_physical.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/ios_logical_to_physical.json",
"repo_id": "flutter",
"token_count": 845
} | 601 |
// 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 "flutter/shell/platform/windows/keyboard_key_embedder_handler.h"
#include <map>
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
// This file is gen... | flutter/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl",
"repo_id": "flutter",
"token_count": 386
} | 602 |
// 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:meta/meta.dart';
import 'package:path/path.dart' as path;
import 'constants.dart';
/// The loca... | flutter/dev/tools/gen_keycodes/lib/utils.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/utils.dart",
"repo_id": "flutter",
"token_count": 3180
} | 603 |
// 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:args/args.dart';
import 'package:path/path.dart' as path;
/// If no `copies` param is passed in, we scale the generated... | flutter/dev/tools/mega_gallery.dart/0 | {
"file_path": "flutter/dev/tools/mega_gallery.dart",
"repo_id": "flutter",
"token_count": 2217
} | 604 |
<svg id="svg_build_00" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" >
<g if="group_1">
<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" />
<path id="path_2" d="M 0,34.0 L 48.0, 34.0 L 48.0, 44.0 L 0, 44.0 Z " fill="#000000" />
</g>
</svg>
| flutter/dev/tools/vitool/test_assets/bars_group.svg/0 | {
"file_path": "flutter/dev/tools/vitool/test_assets/bars_group.svg",
"repo_id": "flutter",
"token_count": 159
} | 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.
import 'package:flutter/cupertino.dart';
/// Flutter code sample for base [CupertinoListSection] and [CupertinoListTile].
void main() => runApp(const Cup... | flutter/examples/api/lib/cupertino/list_section/list_section_base.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/list_section/list_section_base.0.dart",
"repo_id": "flutter",
"token_count": 1223
} | 606 |
// 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 [CupertinoSlidingSegmentedControl].
enum Sky { midnight, viridian, cerulean }
Map<S... | flutter/examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.0.dart",
"repo_id": "flutter",
"token_count": 1277
} | 607 |
// 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].
final List<int> _items = List<int>.generate(51, (int index) => index);
voi... | flutter/examples/api/lib/material/app_bar/app_bar.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/app_bar/app_bar.1.dart",
"repo_id": "flutter",
"token_count": 1933
} | 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:flutter/material.dart';
/// Flutter code sample for [BottomNavigationBar].
void main() => runApp(const BottomNavigationBarExampleApp());
... | flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.0.dart",
"repo_id": "flutter",
"token_count": 839
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [ChipAttributes.avatarBoxConstraints].
void main() => runApp(const AvatarBoxConstrain... | flutter/examples/api/lib/material/chip/chip_attributes.avatar_box_constraints.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/chip/chip_attributes.avatar_box_constraints.0.dart",
"repo_id": "flutter",
"token_count": 961
} | 610 |
// 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';
/// Flutter code sample for [AlertDialog].
void main() => runApp(const A... | flutter/examples/api/lib/material/dialog/adaptive_alert_dialog.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/dialog/adaptive_alert_dialog.0.dart",
"repo_id": "flutter",
"token_count": 887
} | 611 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.