text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
name: macrobenchmarks
description: Performance benchmarks using flutter drive.
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
# To change the version of the gallery assets, edit
# //packages/flutter_tools/lib/... | flutter/dev/benchmarks/macrobenchmarks/pubspec.yaml/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/pubspec.yaml",
"repo_id": "flutter",
"token_count": 5500
} | 512 |
// 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/scheduler.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:macrobenc... | flutter/dev/benchmarks/macrobenchmarks/test_memory/heavy_gridview.dart/0 | {
"file_path": "flutter/dev/benchmarks/macrobenchmarks/test_memory/heavy_gridview.dart",
"repo_id": "flutter",
"token_count": 249
} | 513 |
// 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/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutt... | flutter/dev/benchmarks/microbenchmarks/lib/foundation/all_elements_bench.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/foundation/all_elements_bench.dart",
"repo_id": "flutter",
"token_count": 1116
} | 514 |
// 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 '../common.dart';
const int _kNumIterations = 1000;
const int _kNumWarmUp = 100;
void main() {
assert(false, "Don't run benchmarks in debug mode... | flutter/dev/benchmarks/microbenchmarks/lib/language/sync_star_bench.dart/0 | {
"file_path": "flutter/dev/benchmarks/microbenchmarks/lib/language/sync_star_bench.dart",
"repo_id": "flutter",
"token_count": 858
} | 515 |
// 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 dev.flutter.multipleflutters
import android.os.Bundle
import android.widget.FrameLayout
import android.widget.LinearLayout
import androidx.fragmen... | flutter/dev/benchmarks/multiple_flutters/android/app/src/main/java/dev/flutter/multipleflutters/MainActivity.kt/0 | {
"file_path": "flutter/dev/benchmarks/multiple_flutters/android/app/src/main/java/dev/flutter/multipleflutters/MainActivity.kt",
"repo_id": "flutter",
"token_count": 1230
} | 516 |
# platform_channels_benchmarks
The harness for running performance benchmark tests for Platform Channels.
If you want to run these benchmarks outside of devicelab you need to first run:
`flutter create --platforms="ios,android" --no-overwrite .`
| flutter/dev/benchmarks/platform_channels_benchmarks/README.md/0 | {
"file_path": "flutter/dev/benchmarks/platform_channels_benchmarks/README.md",
"repo_id": "flutter",
"token_count": 64
} | 517 |
<!-- 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/benchmarks/test_apps/stocks/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "flutter/dev/benchmarks/test_apps/stocks/android/app/src/main/AndroidManifest.xml",
"repo_id": "flutter",
"token_count": 565
} | 518 |
{
"title": "Stocks",
"@title": {
"description": "Title for the Stocks application"
},
"market": "MARKET",
"@market": {
"description": "Label for the Market tab"
},
"portfolio": "PORTFOLIO",
"@portfolio": {
"description": "Label for the Portfolio tab"
}
}
| flutter/dev/benchmarks/test_apps/stocks/lib/i18n/stocks_en.arb/0 | {
"file_path": "flutter/dev/benchmarks/test_apps/stocks/lib/i18n/stocks_en.arb",
"repo_id": "flutter",
"token_count": 107
} | 519 |
// 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:analyzer/dart/analysis/results.dart';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/visitor.dart';
import ... | flutter/dev/bots/custom_rules/no_stop_watches.dart/0 | {
"file_path": "flutter/dev/bots/custom_rules/no_stop_watches.dart",
"repo_id": "flutter",
"token_count": 1765
} | 520 |
// 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 used by ../analyze_snippet_code_test.dart, which depends on the
// precise contents (including especially the comments) of this file.
// E... | flutter/dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart/0 | {
"file_path": "flutter/dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart",
"repo_id": "flutter",
"token_count": 151
} | 521 |
// 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.
// ignore_for_file: type=lint
bool isThereMeaningOfLife = true;
void main() {
if (isThereMeaningOfLife) {}
if(isThereMeaningOfLife) {}
//^
switc... | flutter/dev/bots/test/analyze-test-input/root/packages/foo/spaces_after_flow.dart/0 | {
"file_path": "flutter/dev/bots/test/analyze-test-input/root/packages/foo/spaces_after_flow.dart",
"repo_id": "flutter",
"token_count": 265
} | 522 |
# Flutter Conductor
Command-line tool for managing a release of the Flutter SDK. Also see
https://github.com/flutter/flutter/wiki/Release-process for more information on
the release process.
## Requirements
Some basic requirements to conduct a release are:
- a Linux or macOS computer set up for Flutter development.... | flutter/dev/conductor/README.md/0 | {
"file_path": "flutter/dev/conductor/README.md",
"repo_id": "flutter",
"token_count": 1236
} | 523 |
// 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' as io;
import 'package:process/process.dart';
import 'git.dart';
import 'globals.dart';
import 'repository.dart';... | flutter/dev/conductor/core/lib/src/packages_autoroller.dart/0 | {
"file_path": "flutter/dev/conductor/core/lib/src/packages_autoroller.dart",
"repo_id": "flutter",
"token_count": 3030
} | 524 |
// 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:args/command_runner.dart';
import 'package:conductor_core/src/candidates.dart';
import 'package:conductor_core/src/repository.dart';
import... | flutter/dev/conductor/core/test/candidates_test.dart/0 | {
"file_path": "flutter/dev/conductor/core/test/candidates_test.dart",
"repo_id": "flutter",
"token_count": 2226
} | 525 |
// 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:flutter_devicelab/framework/apk_utils.dart';
import 'package:flutter_devicelab/framework/framewor... | flutter/dev/devicelab/bin/tasks/engine_dependency_proxy_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/engine_dependency_proxy_test.dart",
"repo_id": "flutter",
"token_count": 1395
} | 526 |
// 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/gradle_plugin_fat_apk_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/gradle_plugin_fat_apk_test.dart",
"repo_id": "flutter",
"token_count": 2870
} | 527 |
// 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/module_host_with_custom_build_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/module_host_with_custom_build_test.dart",
"repo_id": "flutter",
"token_count": 3838
} | 528 |
// 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/tasks/plugin_tests.dart';
Future<void> main() async {
awa... | flutter/dev/devicelab/bin/tasks/plugin_test_ios.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/plugin_test_ios.dart",
"repo_id": "flutter",
"token_count": 367
} | 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 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter_devicelab/framework/devices.dart';
import 'package:flutter_devicelab... | flutter/dev/devicelab/bin/tasks/service_extensions_test.dart/0 | {
"file_path": "flutter/dev/devicelab/bin/tasks/service_extensions_test.dart",
"repo_id": "flutter",
"token_count": 1957
} | 530 |
// 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 'task_result.dart';
const String kBenchmarkTypeKeyName = 'benchmark_type';
const String kBenchmarkVersionKeyName = 've... | flutter/dev/devicelab/lib/framework/ab.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/framework/ab.dart",
"repo_id": "flutter",
"token_count": 4041
} | 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 '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/android_choreographer_do_frame_test.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/tasks/android_choreographer_do_frame_test.dart",
"repo_id": "flutter",
"token_count": 2665
} | 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 'dart:ffi';
import 'dart:io';
import 'package:path/path.dart' as path;
import '../framework/framework.dart';
import '../framework/ios.dart';
impor... | flutter/dev/devicelab/lib/tasks/plugin_tests.dart/0 | {
"file_path": "flutter/dev/devicelab/lib/tasks/plugin_tests.dart",
"repo_id": "flutter",
"token_count": 8081
} | 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 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter_devicelab/framework/running_processes.dart';
import 'package:process... | flutter/dev/devicelab/test/running_processes_test.dart/0 | {
"file_path": "flutter/dev/devicelab/test/running_processes_test.dart",
"repo_id": "flutter",
"token_count": 1857
} | 534 |
# Forbidden from release tests
This program compiles the Dart portions of a Flutter application to the
AOT format used for release builds, and verifies that debugging related types
are not retained. By default, it uses the `//examples/hello_world` application
in this repository.
This harness is invoked from `dev/bots... | flutter/dev/forbidden_from_release_tests/README.md/0 | {
"file_path": "flutter/dev/forbidden_from_release_tests/README.md",
"repo_id": "flutter",
"token_count": 152
} | 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.
/// Class name constants which correspond to the class names used by the
/// Android accessibility bridge.
class AndroidClassName {
/// The class name us... | flutter/dev/integration_tests/android_semantics_testing/lib/src/constants.dart/0 | {
"file_path": "flutter/dev/integration_tests/android_semantics_testing/lib/src/constants.dart",
"repo_id": "flutter",
"token_count": 1706
} | 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.
// This file is auto generated.
// To update all the build.gradle files in the Flutter repo,
// See dev/tools/bin/generate_gradle_lockfiles.dart.
buildscr... | flutter/dev/integration_tests/deferred_components_test/android/build.gradle/0 | {
"file_path": "flutter/dev/integration_tests/deferred_components_test/android/build.gradle",
"repo_id": "flutter",
"token_count": 530
} | 537 |
# external_textures
Tests external texture rendering between a native[^1] platform and Flutter.
Part of Flutter's API for [plugins](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin) includes passing _external textures_, or textures
created outside of Flutter, to Flutter, typically ... | flutter/dev/integration_tests/external_textures/README.md/0 | {
"file_path": "flutter/dev/integration_tests/external_textures/README.md",
"repo_id": "flutter",
"token_count": 644
} | 538 |
// This xcconfig used for both the paid and free flavor, but the plugins are not different between
// them. Pick one.
#include? "Pods/Target Support Files/Pods-Free App/Pods-Free App.release free.xcconfig"
#include "Generated.xcconfig"
| flutter/dev/integration_tests/flavors/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/flavors/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 74
} | 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.
// Based on https://material.uplabs.com/posts/google-newsstand-navigation-pattern
// See also: https://material-motion.github.io/material-motion/documentat... | flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart",
"repo_id": "flutter",
"token_count": 8784
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../gallery/demo.dart';
const Color _kKeyUmbraOpacity = Color(... | flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_segmented_control_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_segmented_control_demo.dart",
"repo_id": "flutter",
"token_count": 2705
} | 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 'package:flutter/material.dart';
import '../../gallery/demo.dart';
import 'full_screen_dialog_demo.dart';
enum DialogDemoAction {
cancel,
disc... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/dialog_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/dialog_demo.dart",
"repo_id": "flutter",
"token_count": 3489
} | 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/material.dart';
import '../../gallery/demo.dart';
class ProgressIndicatorDemo extends StatefulWidget {
const ProgressIndicatorD... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/progress_indicator_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/progress_indicator_demo.dart",
"repo_id": "flutter",
"token_count": 1749
} | 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/material.dart';
import 'package:scoped_model/scoped_model.dart';
import 'colors.dart';
import 'model/app_state_model.dart';
import... | flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/expanding_bottom_sheet.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/expanding_bottom_sheet.dart",
"repo_id": "flutter",
"token_count": 7519
} | 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:vector_math/vector_math_64.dart' show Vector3;
import 'transformations_demo_inertial_motion.dart';
... | flutter/dev/integration_tests/flutter_gallery/lib/demo/transformations/transformations_demo_gesture_transformable.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/transformations/transformations_demo_gesture_transformable.dart",
"repo_id": "flutter",
"token_count": 7423
} | 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 'package:flutter/material.dart';
import 'package:string_scanner/string_scanner.dart';
class SyntaxHighlighterStyle {
const SyntaxHighlighterStyle... | flutter/dev/integration_tests/flutter_gallery/lib/gallery/syntax_highlighter.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/gallery/syntax_highlighter.dart",
"repo_id": "flutter",
"token_count": 4540
} | 546 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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 'package:flutter/material.dart';
import 'package:flutter_gallery/demo/material/expansion_panels_demo.dart';
import 'package:flutter_test/flutter_tes... | flutter/dev/integration_tests/flutter_gallery/test/demo/material/expansion_panels_demo_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test/demo/material/expansion_panels_demo_test.dart",
"repo_id": "flutter",
"token_count": 688
} | 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.
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
void main() {
group('scrolling perf... | flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart",
"repo_id": "flutter",
"token_count": 539
} | 549 |
# ios_add2app_life_cycle_flutter
A new flutter module project.
## Getting Started
For help getting started with Flutter, view our online
[documentation](https://flutter.dev/).
| flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/README.md/0 | {
"file_path": "flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/README.md",
"repo_id": "flutter",
"token_count": 55
} | 550 |
{
"assets" : [
{
"idiom" : "watch",
"filename" : "Circular.imageset",
"role" : "circular"
},
{
"idiom" : "watch",
"filename" : "Extra Large.imageset",
"role" : "extra-large"
},
{
"idiom" : "watch",
"filename" : "Graphic Bezel.imageset",
"role" ... | flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Contents.json/0 | {
"file_path": "flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Contents.json",
"repo_id": "flutter",
"token_count": 508
} | 551 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="11134" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="3mp-fW-waa">
<depend... | flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Base.lproj/Interface.storyboard/0 | {
"file_path": "flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Base.lproj/Interface.storyboard",
"repo_id": "flutter",
"token_count": 329
} | 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 'package:flutter/material.dart';
import 'package:flutter/animation.dart';
import 'package:flutter/services.dart';
class _MarqueeText extends Animat... | flutter/dev/integration_tests/ios_host_app/flutterapp/lib/marquee/0 | {
"file_path": "flutter/dev/integration_tests/ios_host_app/flutterapp/lib/marquee",
"repo_id": "flutter",
"token_count": 710
} | 553 |
#include "Generated.xcconfig"
| flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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:math';
import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEG... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart",
"repo_id": "flutter",
"token_count": 3017
} | 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 'package:flutter/material.dart';
import '../../data/gallery_options.dart';
import '../../gallery_localizations.dart';
import 'backdrop.dart';
impor... | flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart",
"repo_id": "flutter",
"token_count": 603
} | 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:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import '../../../data/gallery_options.dart';... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart",
"repo_id": "flutter",
"token_count": 4547
} | 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 'dart:math' as math;
import 'package:flutter/material.dart';
/// A rectangle with a smooth circular notch.
///
/// See also:
///
/// * [CircleBor... | flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart",
"repo_id": "flutter",
"token_count": 1400
} | 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/material.dart';
import '../model/product.dart';
import 'desktop_product_columns.dart';
import 'layout_cache.dart';
/// A placehol... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart",
"repo_id": "flutter",
"token_count": 2784
} | 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 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:gallery/themes/material_demo_theme_data.dart';
vo... | flutter/dev/integration_tests/new_gallery/test/theme_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/test/theme_test.dart",
"repo_id": "flutter",
"token_count": 370
} | 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/material.dart';
String? unused; // ignore: unreachable_from_main
void main() {
runApp(const MyApp());
}
class MyApp extends St... | flutter/dev/integration_tests/non_nullable/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/non_nullable/lib/main.dart",
"repo_id": "flutter",
"token_count": 208
} | 561 |
# release_smoke_test
A simple Flutter project used in CI to test that a release app can build and
run on a physical device.
| flutter/dev/integration_tests/release_smoke_test/README.md/0 | {
"file_path": "flutter/dev/integration_tests/release_smoke_test/README.md",
"repo_id": "flutter",
"token_count": 34
} | 562 |
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
android.useAndroidX=true
android.enableJetifier=true
| flutter/dev/integration_tests/release_smoke_test/android/gradle.properties/0 | {
"file_path": "flutter/dev/integration_tests/release_smoke_test/android/gradle.properties",
"repo_id": "flutter",
"token_count": 70
} | 563 |
package com.example.spell_check
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()
| flutter/dev/integration_tests/spell_check/android/app/src/main/kotlin/com/example/sc_int_test/MainActivity.kt/0 | {
"file_path": "flutter/dev/integration_tests/spell_check/android/app/src/main/kotlin/com/example/sc_int_test/MainActivity.kt",
"repo_id": "flutter",
"token_count": 35
} | 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/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';
/// This applicat... | flutter/dev/integration_tests/ui/lib/license_check.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/license_check.dart",
"repo_id": "flutter",
"token_count": 884
} | 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_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
bool _isNumeric(String s) {
return ... | flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart",
"repo_id": "flutter",
"token_count": 419
} | 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 'dart:html' as html;
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:meta/dart2js.dart';
//... | flutter/dev/integration_tests/web/lib/stack_trace.dart/0 | {
"file_path": "flutter/dev/integration_tests/web/lib/stack_trace.dart",
"repo_id": "flutter",
"token_count": 1715
} | 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 'dart:async';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:inte... | flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration.dart/0 | {
"file_path": "flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration.dart",
"repo_id": "flutter",
"token_count": 945
} | 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:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(MaterialApp(
title: 'Hardware Key Demo',
ho... | flutter/dev/manual_tests/lib/hardware_keyboard.dart/0 | {
"file_path": "flutter/dev/manual_tests/lib/hardware_keyboard.dart",
"repo_id": "flutter",
"token_count": 1184
} | 569 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/dev/manual_tests/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "flutter/dev/manual_tests/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 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.
// This script generates `android/build.gradle` for each directory specify in the stdin.
// Then it generate the lockfiles for each Gradle project.
// To r... | flutter/dev/tools/bin/generate_gradle_lockfiles.dart/0 | {
"file_path": "flutter/dev/tools/bin/generate_gradle_lockfiles.dart",
"repo_id": "flutter",
"token_count": 2511
} | 571 |
{
"version": "v0_206",
"md.comp.elevated-card.container.color": "surfaceContainerLow",
"md.comp.elevated-card.container.elevation": "md.sys.elevation.level1",
"md.comp.elevated-card.container.shadow-color": "shadow",
"md.comp.elevated-card.container.shape": "md.sys.shape.corner.medium",
"md.comp.elevated-c... | flutter/dev/tools/gen_defaults/data/card_elevated.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/card_elevated.json",
"repo_id": "flutter",
"token_count": 731
} | 572 |
{
"version": "v0_206",
"md.comp.divider.color": "outlineVariant",
"md.comp.divider.thickness": 1.0
}
| flutter/dev/tools/gen_defaults/data/divider.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/divider.json",
"repo_id": "flutter",
"token_count": 50
} | 573 |
{
"version": "v0_206",
"md.comp.primary-navigation-tab.active.focus.state-layer.color": "primary",
"md.comp.primary-navigation-tab.active.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity",
"md.comp.primary-navigation-tab.active.hover.state-layer.color": "primary",
"md.comp.primary-navigati... | flutter/dev/tools/gen_defaults/data/navigation_tab_primary.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/navigation_tab_primary.json",
"repo_id": "flutter",
"token_count": 1296
} | 574 |
{
"version": "v0_206",
"md.comp.outlined-text-field.caret.color": "primary",
"md.comp.outlined-text-field.container.shape": "md.sys.shape.corner.extra-small",
"md.comp.outlined-text-field.disabled.input-text.color": "onSurface",
"md.comp.outlined-text-field.disabled.input-text.opacity": 0.38,
"md.comp.outl... | flutter/dev/tools/gen_defaults/data/text_field_outlined.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/text_field_outlined.json",
"repo_id": "flutter",
"token_count": 1826
} | 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 'template.dart';
class CheckboxTemplate extends TokenTemplate {
const CheckboxTemplate(super.blockName, super.fileName, super.tokens, {
super... | flutter/dev/tools/gen_defaults/lib/checkbox_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/checkbox_template.dart",
"repo_id": "flutter",
"token_count": 2262
} | 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 'template.dart';
class NavigationBarTemplate extends TokenTemplate {
const NavigationBarTemplate(super.blockName, super.fileName, super.tokens, {... | flutter/dev/tools/gen_defaults/lib/navigation_bar_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/navigation_bar_template.dart",
"repo_id": "flutter",
"token_count": 942
} | 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 'template.dart';
class TimePickerTemplate extends TokenTemplate {
const TimePickerTemplate(super.blockName, super.fileName, super.tokens, {
s... | flutter/dev/tools/gen_defaults/lib/time_picker_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/time_picker_template.dart",
"repo_id": "flutter",
"token_count": 4626
} | 578 |
// 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 "key_mapping.h"
#include <glib.h>
#include <map>
#include "flutter/shell/platform/linux/fl_key_embedder_responder_private.h"
// DO NOT EDIT -- ... | flutter/dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl",
"repo_id": "flutter",
"token_count": 444
} | 579 |
{
"Backquote": "`",
"Backslash": "\\",
"BracketLeft": "[",
"BracketRight": "]",
"Comma": ",",
"Digit0": "0",
"Digit1": "1",
"Digit2": "2",
"Digit3": "3",
"Digit4": "4",
"Digit5": "5",
"Digit6": "6",
"Digit7": "7",
"Digit8": "8",
"Digit9": "9",
"Equal": "=",
"KeyA": "a",
"KeyB": "b",
... | flutter/dev/tools/gen_keycodes/data/printable.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/printable.json",
"repo_id": "flutter",
"token_count": 657
} | 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:io';
import 'package:path/path.dart' as path;
import 'base_code_gen.dart';
import 'data.dart';
import 'logical_key_data.dart';
import 'physi... | flutter/dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart",
"repo_id": "flutter",
"token_count": 5706
} | 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 'localizations_utils.dart';
String generateCupertinoHeader(String regenerateInstructions) {
return '''
// Copyright 2014 The Flutter Authors. All... | flutter/dev/tools/localization/gen_cupertino_localizations.dart/0 | {
"file_path": "flutter/dev/tools/localization/gen_cupertino_localizations.dart",
"repo_id": "flutter",
"token_count": 851
} | 582 |
# Tracing tests
## "Application"
The `lib/test.dart` and `lib/control.dart` files in this directory are
used by `dev/bots/test.dart`'s `runTracingTests` function to check
whether aspects of the tracing logic in the framework get compiled out
in profile and release builds. They're not meant to be run directly.
The st... | flutter/dev/tracing_tests/README.md/0 | {
"file_path": "flutter/dev/tracing_tests/README.md",
"repo_id": "flutter",
"token_count": 169
} | 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';
/// Flutter code sample for [CupertinoContextMenu].
final DecorationTwee... | flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.1.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.1.dart",
"repo_id": "flutter",
"token_count": 1703
} | 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/cupertino.dart';
/// Flutter code sample for [showCupertinoModalPopup].
void main() => runApp(const ModalPopupApp());
class Moda... | flutter/examples/api/lib/cupertino/route/show_cupertino_modal_popup.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/route/show_cupertino_modal_popup.0.dart",
"repo_id": "flutter",
"token_count": 816
} | 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';
/// Flutter code sample for [ActionIconTheme].
void main() {
runApp(const ActionIconThemeExampleApp());
}
clas... | flutter/examples/api/lib/material/action_buttons/action_icon_theme.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/action_buttons/action_icon_theme.0.dart",
"repo_id": "flutter",
"token_count": 1149
} | 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 'dart:async';
import 'package:flutter/material.dart';
/// Flutter code sample for [Autocomplete] that demonstrates fetching the
/// options asynch... | flutter/examples/api/lib/material/autocomplete/autocomplete.3.dart/0 | {
"file_path": "flutter/examples/api/lib/material/autocomplete/autocomplete.3.dart",
"repo_id": "flutter",
"token_count": 1648
} | 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';
/// Flutter code sample for [Checkbox].
void main() => runApp(const CheckboxExampleApp());
class CheckboxExample... | flutter/examples/api/lib/material/checkbox/checkbox.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/checkbox/checkbox.0.dart",
"repo_id": "flutter",
"token_count": 572
} | 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.
// This example demonstrates a custom context menu in non-editable text using
// SelectionArea.
import 'package:flutter/foundation.dart';
import 'package:... | flutter/examples/api/lib/material/context_menu/selectable_region_toolbar_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/context_menu/selectable_region_toolbar_builder.0.dart",
"repo_id": "flutter",
"token_count": 1235
} | 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';
/// Flutter code sample for [FlexibleSpaceBar].
void main() => runApp(const MaterialApp(home: FlexibleSpaceBarExa... | flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart",
"repo_id": "flutter",
"token_count": 1437
} | 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';
/// Flutter code sample for [ListTile].
void main() => runApp(const ListTileApp());
class ListTileApp extends St... | flutter/examples/api/lib/material/list_tile/list_tile.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/list_tile/list_tile.2.dart",
"repo_id": "flutter",
"token_count": 778
} | 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';
/// Flutter code sample for [NavigationBar].
void main() => runApp(const NavigationBarApp());
class NavigationBa... | flutter/examples/api/lib/material/navigation_bar/navigation_bar.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/navigation_bar/navigation_bar.1.dart",
"repo_id": "flutter",
"token_count": 1417
} | 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';
/// Flutter code sample for [ReorderableListView.buildDefaultDragHandles].
void main() => runApp(const Reorderabl... | flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart",
"repo_id": "flutter",
"token_count": 1051
} | 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:flutter/material.dart';
/// Flutter code sample for [ScaffoldState.showBottomSheet].
void main() => runApp(const ShowBottomSheetExampleAp... | flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.0.dart",
"repo_id": "flutter",
"token_count": 863
} | 594 |
// 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 [SwitchListTile].
void main() => runApp(const SwitchListTileApp());
class SwitchList... | flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.1.dart",
"repo_id": "flutter",
"token_count": 1047
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [Tooltip].
void main() => runApp(const TooltipExampleApp());
class TooltipExampleApp... | flutter/examples/api/lib/material/tooltip/tooltip.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/tooltip/tooltip.0.dart",
"repo_id": "flutter",
"token_count": 341
} | 596 |
// 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 [FutureBuilder].
void main() => runApp(const FutureBuilderExampleApp());
class Futur... | flutter/examples/api/lib/widgets/async/future_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/async/future_builder.0.dart",
"repo_id": "flutter",
"token_count": 1240
} | 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';
/// Flutter code sample for [FittedBox].
void main() => runApp(const FittedBoxApp());
class FittedBoxApp extends... | flutter/examples/api/lib/widgets/basic/fitted_box.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/fitted_box.0.dart",
"repo_id": "flutter",
"token_count": 402
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
/// Flutter code sample for [DraggableScrollableSheet].
void main() => ... | flutter/examples/api/lib/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0.dart",
"repo_id": "flutter",
"token_count": 1935
} | 599 |
// 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 'package:flutter/material.dart';
/// Flutter code sample for [ErrorWidget].
void main() {
// Set the E... | flutter/examples/api/lib/widgets/framework/error_widget.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/framework/error_widget.0.dart",
"repo_id": "flutter",
"token_count": 797
} | 600 |
// 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 [SliverAnimatedOpacity].
void main() => runApp(const SliverAnimatedOpacityExampleApp(... | flutter/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart",
"repo_id": "flutter",
"token_count": 787
} | 601 |
// 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 [NavigatorState.restorablePushAndRemoveUntil].
void main() => runApp(const Restorable... | flutter/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart",
"repo_id": "flutter",
"token_count": 535
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
/// Flutter code sample for [PageView].
void main() => runApp(const Pag... | flutter/examples/api/lib/widgets/page_view/page_view.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/page_view/page_view.0.dart",
"repo_id": "flutter",
"token_count": 2204
} | 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 'package:flutter/material.dart';
/// Flutter code sample for a [ListView.custom] using the `findChildIndexCallback` argument.
void main() => runApp... | flutter/examples/api/lib/widgets/scroll_view/list_view.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scroll_view/list_view.1.dart",
"repo_id": "flutter",
"token_count": 1053
} | 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 'package:flutter/material.dart';
void main() => runApp(const SliverDecorationExampleApp());
class SliverDecorationExampleApp extends StatelessWidg... | flutter/examples/api/lib/widgets/sliver/decorated_sliver.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/sliver/decorated_sliver.0.dart",
"repo_id": "flutter",
"token_count": 732
} | 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 'dart:math' as math;
import 'package:flutter/material.dart';
/// Flutter code sample for [AnimatedWidget].
void main() => runApp(const AnimatedWi... | flutter/examples/api/lib/widgets/transitions/animated_widget.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/animated_widget.0.dart",
"repo_id": "flutter",
"token_count": 525
} | 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/material.dart';
/// Flutter code sample for [TweenAnimationBuilder].
void main() => runApp(const TweenAnimationBuilderExampleApp(... | flutter/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart",
"repo_id": "flutter",
"token_count": 598
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/list_section/list_section_inset.0.dart' as example;
import 'package:... | flutter/examples/api/test/cupertino/list_section/list_section_inset.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/list_section/list_section_inset.0_test.dart",
"repo_id": "flutter",
"token_count": 371
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/slider/cupertino_slider.0.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/cupertino/slider/cupertino_slider.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/slider/cupertino_slider.0_test.dart",
"repo_id": "flutter",
"token_count": 389
} | 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';
import 'package:flutter_api_samples/material/app_bar/app_bar.1.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/material/app_bar/app_bar.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/app_bar/app_bar.1_test.dart",
"repo_id": "flutter",
"token_count": 672
} | 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/material.dart';
import 'package:flutter_api_samples/material/card/card.0.dart' as example;
import 'package:flutter_test/flutter_tes... | flutter/examples/api/test/material/card/card.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/card/card.0_test.dart",
"repo_id": "flutter",
"token_count": 306
} | 611 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.