text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// 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:test/test.dart' hide isInstanceOf;
import 'common.dart';
import 'constants.dart';
/// Matches an [AndroidSemanticsNode].
///
/// Any prop... | flutter/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart/0 | {
"file_path": "flutter/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart",
"repo_id": "flutter",
"token_count": 2884
} | 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 Cocoa
import FlutterMacOS
let DATE: UInt8 = 128
let PAIR: UInt8 = 129
class Pair {
let first: Any?
let second: Any?
init(first: Any?, second... | flutter/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift/0 | {
"file_path": "flutter/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift",
"repo_id": "flutter",
"token_count": 1717
} | 513 |
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
androidx.databinding:databinding-common:7.2.0=classpath
androidx.databinding:databinding-compiler-common:7.2.0=classpath
com.android.databinding:baseLib... | flutter/dev/integration_tests/deferred_components_test/android/buildscript-gradle.lockfile/0 | {
"file_path": "flutter/dev/integration_tests/deferred_components_test/android/buildscript-gradle.lockfile",
"repo_id": "flutter",
"token_count": 3740
} | 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.
plugins {
id "com.android.application"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = r... | flutter/dev/integration_tests/external_textures/android/app/build.gradle/0 | {
"file_path": "flutter/dev/integration_tests/external_textures/android/app/build.gradle",
"repo_id": "flutter",
"token_count": 386
} | 515 |
# Flutter gallery
An older copy of the Flutter gallery demo application used for integration testing.
For the current Flutter Gallery app sample, see this repo:
https://github.com/flutter/gallery
## Icon
Android launcher icons were generated using Android Asset Studio:
https://romannurik.github.io/AndroidAssetStudi... | flutter/dev/integration_tests/flutter_gallery/README.md/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/README.md",
"repo_id": "flutter",
"token_count": 150
} | 516 |
// 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.
// Raw data for the animation demo.
import 'package:flutter/material.dart';
const Color _mariner = Color(0xFF3B5F8F);
const Color _mediumPurple = Color(0... | flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/sections.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/sections.dart",
"repo_id": "flutter",
"token_count": 1589
} | 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.
import 'package:flutter/cupertino.dart';
import '../../gallery/demo.dart';
class CupertinoSliderDemo extends StatefulWidget {
const CupertinoSliderDemo... | flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_slider_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_slider_demo.dart",
"repo_id": "flutter",
"token_count": 1361
} | 518 |
// 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 '../../gallery/demo.dart';
const String _kA... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/drawer_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/drawer_demo.dart",
"repo_id": "flutter",
"token_count": 5022
} | 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:flutter/material.dart';
import '../../gallery/demo.dart';
enum _ReorderableListType {
/// A list tile that contains a [CircleAvatar].
... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/reorderable_list_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/reorderable_list_demo.dart",
"repo_id": "flutter",
"token_count": 3147
} | 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.
import 'package:flutter/material.dart';
import 'package:scoped_model/scoped_model.dart';
import 'backdrop.dart';
import 'expanding_bottom_sheet.dart';
imp... | flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/home.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/home.dart",
"repo_id": "flutter",
"token_count": 433
} | 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.
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:vector_math/vector_math.dart' show Vector2;
// Provides calculations for an ob... | flutter/dev/integration_tests/flutter_gallery/lib/demo/transformations/transformations_demo_inertial_motion.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/transformations/transformations_demo_inertial_motion.dart",
"repo_id": "flutter",
"token_count": 842
} | 522 |
// 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';
final ThemeData kLightGalleryTheme = _buildLightTheme();
final ThemeData kDarkGalleryTheme = _buildDarkTheme();
T... | flutter/dev/integration_tests/flutter_gallery/lib/gallery/themes.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/gallery/themes.dart",
"repo_id": "flutter",
"token_count": 720
} | 523 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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:flutter/material.dart';
import 'package:flutter_gallery/demo/material/menu_demo.dart';
import 'package:flutter_gallery/gallery/themes.dart'... | flutter/dev/integration_tests/flutter_gallery/test/demo/material/menu_demo_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test/demo/material/menu_demo_test.dart",
"repo_id": "flutter",
"token_count": 597
} | 525 |
# Deprecated settings.gradle
This project is meant to test that apps using the deprecated
`android/settings.gradle` (_PluginEach_ used until Flutter v1.22.0) can still be built.
This project can be removed once apps have been migrated to this new file.
Issue: https://github.com/flutter/flutter/issues/54566
| flutter/dev/integration_tests/gradle_deprecated_settings/README.md/0 | {
"file_path": "flutter/dev/integration_tests/gradle_deprecated_settings/README.md",
"repo_id": "flutter",
"token_count": 86
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering... | flutter/dev/integration_tests/hybrid_android_views/lib/android_platform_view.dart/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/lib/android_platform_view.dart",
"repo_id": "flutter",
"token_count": 897
} | 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 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/serv... | flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart",
"repo_id": "flutter",
"token_count": 1206
} | 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 "MainViewController.h"
#import "AppDelegate.h"
#import "FullScreenViewController.h"
@interface MainViewController ()
@property(nonatomic, strong... | flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.m/0 | {
"file_path": "flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.m",
"repo_id": "flutter",
"token_count": 814
} | 529 |
<?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>CFBundleDisplayName</key>
<string>Flutter Extension Test</stri... | flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Info.plist/0 | {
"file_path": "flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Info.plist",
"repo_id": "flutter",
"token_count": 426
} | 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 <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DualFlutterViewController : UIViewController
@property (readonly, strong, nonatomic) FlutterV... | flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.h/0 | {
"file_path": "flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.h",
"repo_id": "flutter",
"token_count": 144
} | 531 |
#include "Generated.xcconfig"
| flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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';
import '../../gallery_localizations.dart';
// BEGIN appbarDemo
class AppBarDemo extends StatelessWidget {
const... | flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart",
"repo_id": "flutter",
"token_count": 1042
} | 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:animations/animations.dart';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEGIN sharedZAxisTransi... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart",
"repo_id": "flutter",
"token_count": 3339
} | 534 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:intl/intl.dart';
import '../../data/gallery_optio... | flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart",
"repo_id": "flutter",
"token_count": 8219
} | 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 'package:flutter/material.dart';
import '../../../layout/adaptive.dart';
import '../colors.dart';
import '../data.dart';
import '../routes.dart' as ... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart",
"repo_id": "flutter",
"token_count": 730
} | 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/material.dart';
import 'package:scoped_model/scoped_model.dart';
import '../../data/gallery_options.dart';
import '../../gallery_l... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart",
"repo_id": "flutter",
"token_count": 2518
} | 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.
import 'dart:ui' show lerpDouble;
import 'package:flutter/material.dart';
class CutCornersBorder extends OutlineInputBorder {
const CutCornersBorder({
... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/cut_corners_border.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/cut_corners_border.dart",
"repo_id": "flutter",
"token_count": 1573
} | 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.
// Replace Windows line endings with Unix line endings
String standardizeLineEndings(String str) => str.replaceAll('\r\n', '\n');
| flutter/dev/integration_tests/new_gallery/test/utils.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/test/utils.dart",
"repo_id": "flutter",
"token_count": 78
} | 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_driver/driver_extension.dart';
void main() {
enableFlutterDriverExtension();
runApp(M... | flutter/dev/integration_tests/ui/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/main.dart",
"repo_id": "flutter",
"token_count": 647
} | 540 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/integration_tests/ui/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/ui/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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_driver/flutter_driver.dart';
import 'package:integration_ui/keys.dart' as keys;
import 'package:test/test.dart' hide TypeMatcher, i... | flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart",
"repo_id": "flutter",
"token_count": 839
} | 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 'dart:html' as html;
Future<void> main() async {
final StringBuffer output = StringBuffer();
const String combined = String.fromEnvironment('te... | flutter/dev/integration_tests/web/lib/web_define_loading.dart/0 | {
"file_path": "flutter/dev/integration_tests/web/lib/web_define_loading.dart",
"repo_id": "flutter",
"token_count": 227
} | 543 |
{
"name": "web_integration_test",
"short_name": "web_integration_test",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false... | flutter/dev/integration_tests/web/web/manifest.json/0 | {
"file_path": "flutter/dev/integration_tests/web/web/manifest.json",
"repo_id": "flutter",
"token_count": 140
} | 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';
void main() {
runApp(const MaterialApp(
title: 'Hover Demo',
home: HoverDemo(),
));
}
class HoverDemo... | flutter/dev/manual_tests/lib/hover.dart/0 | {
"file_path": "flutter/dev/manual_tests/lib/hover.dart",
"repo_id": "flutter",
"token_count": 1461
} | 545 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/dev/manual_tests/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/dev/manual_tests/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 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:convert';
import 'dart:io';
import 'dart:math' as math;
import 'package:archive/archive_io.dart';
import 'package:args/args.dart';
import 'pa... | flutter/dev/tools/create_api_docs.dart/0 | {
"file_path": "flutter/dev/tools/create_api_docs.dart",
"repo_id": "flutter",
"token_count": 16237
} | 547 |
{
"version": "v0_206",
"md.comp.filled-card.container.color": "surfaceContainerHighest",
"md.comp.filled-card.container.elevation": "md.sys.elevation.level0",
"md.comp.filled-card.container.shadow-color": "shadow",
"md.comp.filled-card.container.shape": "md.sys.shape.corner.medium",
"md.comp.filled-card.di... | flutter/dev/tools/gen_defaults/data/card_filled.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/card_filled.json",
"repo_id": "flutter",
"token_count": 686
} | 548 |
{
"version": "v0_206",
"md.sys.elevation.level0": 0.0,
"md.sys.elevation.level1": 1.0,
"md.sys.elevation.level2": 3.0,
"md.sys.elevation.level3": 6.0,
"md.sys.elevation.level4": 8.0,
"md.sys.elevation.level5": 12.0
}
| flutter/dev/tools/gen_defaults/data/elevation.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/elevation.json",
"repo_id": "flutter",
"token_count": 122
} | 549 |
{
"version": "v0_206",
"md.comp.secondary-navigation-tab.active-indicator.color": "primary",
"md.comp.secondary-navigation-tab.active-indicator.height": 2.0,
"md.comp.secondary-navigation-tab.active.label-text.color": "onSurface",
"md.comp.secondary-navigation-tab.container.color": "surface",
"md.comp.seco... | flutter/dev/tools/gen_defaults/data/navigation_tab_secondary.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/navigation_tab_secondary.json",
"repo_id": "flutter",
"token_count": 831
} | 550 |
{
"version": "v0_206",
"md.sys.typescale.body-large.font": "md.ref.typeface.plain",
"md.sys.typescale.body-large.line-height": 24.0,
"md.sys.typescale.body-large.size": 16.0,
"md.sys.typescale.body-large.tracking": 0.5,
"md.sys.typescale.body-large.weight": "md.ref.typeface.weight-regular",
"md.sys.types... | flutter/dev/tools/gen_defaults/data/text_style.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/text_style.json",
"repo_id": "flutter",
"token_count": 1910
} | 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 'template.dart';
class ChipTemplate extends TokenTemplate {
const ChipTemplate(super.blockName, super.fileName, super.tokens, {
super.colorSc... | flutter/dev/tools/gen_defaults/lib/chip_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/chip_template.dart",
"repo_id": "flutter",
"token_count": 1078
} | 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 'template.dart';
class NavigationDrawerTemplate extends TokenTemplate {
const NavigationDrawerTemplate(super.blockName, super.fileName, super.tok... | flutter/dev/tools/gen_defaults/lib/navigation_drawer_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/navigation_drawer_template.dart",
"repo_id": "flutter",
"token_count": 1007
} | 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 'dart:collection';
import 'dart:io';
final TokenLogger tokenLogger = TokenLogger();
/// Class to keep track of used tokens and versions.
class Tok... | flutter/dev/tools/gen_defaults/lib/token_logger.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/token_logger.dart",
"repo_id": "flutter",
"token_count": 1046
} | 554 |
{
"LOCK": ["CapsLock", "CapsLock"],
"MOD2": ["NumLock", "NumLock"]
}
| flutter/dev/tools/gen_keycodes/data/gtk_lock_bit_mapping.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/gtk_lock_bit_mapping.json",
"repo_id": "flutter",
"token_count": 33
} | 555 |
// These are supplemental code data to be added to those that Chromium
// defines.
// ============================================================
// Game controller buttons
// ============================================================
// Since the web doesn't have game controller buttons defined in the... | flutter/dev/tools/gen_keycodes/data/supplemental_hid_codes.inc/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/supplemental_hid_codes.inc",
"repo_id": "flutter",
"token_count": 1750
} | 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:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import 'constants.dart';
import 'physical_key_data.dart';
import 'utils... | flutter/dev/tools/gen_keycodes/lib/logical_key_data.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/logical_key_data.dart",
"repo_id": "flutter",
"token_count": 9665
} | 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 'localizations_utils.dart';
String generateMaterialHeader(String regenerateInstructions) {
return '''
// Copyright 2014 The Flutter Authors. All ... | flutter/dev/tools/localization/gen_material_localizations.dart/0 | {
"file_path": "flutter/dev/tools/localization/gen_material_localizations.dart",
"repo_id": "flutter",
"token_count": 825
} | 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 'dart:math';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart'... | flutter/dev/tools/vitool/test/vitool_test.dart/0 | {
"file_path": "flutter/dev/tools/vitool/test/vitool_test.dart",
"repo_id": "flutter",
"token_count": 11946
} | 559 |
# API Example Code
This directory contains the API sample code that is referenced from the API
documentation in the framework.
The examples can be run individually by just specifying the path to the example
on the command line (or in the run configuration of an IDE).
For example (no pun intended!), to run the first ... | flutter/examples/api/README.md/0 | {
"file_path": "flutter/examples/api/README.md",
"repo_id": "flutter",
"token_count": 1993
} | 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/cupertino.dart';
/// Flutter code sample for [CupertinoDatePicker].
void main() => runApp(const DatePickerApp());
class DatePick... | flutter/examples/api/lib/cupertino/date_picker/cupertino_date_picker.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/date_picker/cupertino_date_picker.0.dart",
"repo_id": "flutter",
"token_count": 3610
} | 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.
// Flutter code sample [ActionChip].
import 'package:flutter/material.dart';
void main() => runApp(const ChipApp());
class ChipApp extends StatelessWidg... | flutter/examples/api/lib/material/action_chip/action_chip.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/action_chip/action_chip.0.dart",
"repo_id": "flutter",
"token_count": 482
} | 562 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
/// Flutter code sample for [Autocomplete] that demonstrates fetching the
/// options asynch... | flutter/examples/api/lib/material/autocomplete/autocomplete.4.dart/0 | {
"file_path": "flutter/examples/api/lib/material/autocomplete/autocomplete.4.dart",
"repo_id": "flutter",
"token_count": 2527
} | 563 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for M3 [Checkbox] with error state.
void main() => runApp(const CheckboxExampleApp());
c... | flutter/examples/api/lib/material/checkbox/checkbox.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/checkbox/checkbox.1.dart",
"repo_id": "flutter",
"token_count": 778
} | 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';
/// Flutter code sample for [DataTable].
void main() => runApp(const DataTableExampleApp());
class DataTableExam... | flutter/examples/api/lib/material/data_table/data_table.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/data_table/data_table.0.dart",
"repo_id": "flutter",
"token_count": 978
} | 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';
/// Flutter code sample for [Drawer].
void main() => runApp(const DrawerApp());
class DrawerApp extends Stateles... | flutter/examples/api/lib/material/drawer/drawer.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/drawer/drawer.0.dart",
"repo_id": "flutter",
"token_count": 1165
} | 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';
/// Flutter code sample for [FloatingActionButton].
void main() {
runApp(const FloatingActionButtonExampleApp()... | flutter/examples/api/lib/material/floating_action_button/floating_action_button.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/floating_action_button/floating_action_button.0.dart",
"repo_id": "flutter",
"token_count": 648
} | 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';
/// Flutter code sample for [ListTile].
void main() => runApp(const ListTileApp());
class ListTileApp extends St... | flutter/examples/api/lib/material/list_tile/list_tile.3.dart/0 | {
"file_path": "flutter/examples/api/lib/material/list_tile/list_tile.3.dart",
"repo_id": "flutter",
"token_count": 1139
} | 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';
/// Flutter code sample for [NavigationBar] with nested [Navigator] destinations.
void main() {
runApp(const Ma... | flutter/examples/api/lib/material/navigation_bar/navigation_bar.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/navigation_bar/navigation_bar.2.dart",
"repo_id": "flutter",
"token_count": 5496
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [Scrollbar].
void main() => runApp(const ScrollbarExampleApp());
class ScrollbarExam... | flutter/examples/api/lib/material/scrollbar/scrollbar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scrollbar/scrollbar.0.dart",
"repo_id": "flutter",
"token_count": 404
} | 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.
import 'package:flutter/material.dart';
/// Flutter code sample for [Slider].
void main() => runApp(const SliderApp());
class SliderApp extends Stateles... | flutter/examples/api/lib/material/slider/slider.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/slider/slider.2.dart",
"repo_id": "flutter",
"token_count": 712
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [TabController].
void main() => runApp(const TabControllerExampleApp());
class TabCo... | flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart",
"repo_id": "flutter",
"token_count": 736
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [Tooltip].
void main() => runApp(const TooltipExampleApp());
class TooltipExampleApp... | flutter/examples/api/lib/material/tooltip/tooltip.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/tooltip/tooltip.1.dart",
"repo_id": "flutter",
"token_count": 517
} | 573 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
/// Flutter code sample for [StreamBuilder].
void main() => runApp(const StreamBuilderExamp... | flutter/examples/api/lib/widgets/async/stream_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/async/stream_builder.0.dart",
"repo_id": "flutter",
"token_count": 2306
} | 574 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Flow].
void main() => runApp(const FlowApp());
class FlowApp extends StatelessWidge... | flutter/examples/api/lib/widgets/basic/flow.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/flow.0.dart",
"repo_id": "flutter",
"token_count": 1141
} | 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';
/// Flutter code sample for [EditableText.onChanged].
void main() => runApp(const OnChangedExampleApp());
class ... | flutter/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart",
"repo_id": "flutter",
"token_count": 955
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [GestureDetector].
void main() => runApp(const GestureDetectorExampleApp());
class G... | flutter/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart",
"repo_id": "flutter",
"token_count": 867
} | 577 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [InheritedModel].
enum LogoAspect { backgroundColor, large }
void main() => runApp(c... | flutter/examples/api/lib/widgets/inherited_model/inherited_model.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/inherited_model/inherited_model.0.dart",
"repo_id": "flutter",
"token_count": 2020
} | 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';
/// Flutter code sample for a [PageView] using the `findChildIndexCallback` argument.
void main() => runApp(const ... | flutter/examples/api/lib/widgets/page_view/page_view.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/page_view/page_view.1.dart",
"repo_id": "flutter",
"token_count": 1055
} | 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';
/// Flutter code sample for [RawScrollbar].
void main() => runApp(const RawScrollbarExampleApp());
class RawScro... | flutter/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart",
"repo_id": "flutter",
"token_count": 1464
} | 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 'package:flutter/material.dart';
void main() => runApp(const SliverConstrainedCrossAxisExampleApp());
class SliverConstrainedCrossAxisExampleApp e... | flutter/examples/api/lib/widgets/sliver/sliver_constrained_cross_axis.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/sliver/sliver_constrained_cross_axis.0.dart",
"repo_id": "flutter",
"token_count": 654
} | 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';
/// Flutter code sample for [DecoratedBoxTransition].
void main() => runApp(const DecoratedBoxTransitionExampleAp... | flutter/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart",
"repo_id": "flutter",
"token_count": 880
} | 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';
/// Flutter code sample for [UndoHistoryController].
void main() {
runApp(const UndoHistoryControllerExampleApp... | flutter/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart",
"repo_id": "flutter",
"token_count": 1074
} | 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_api_samples/cupertino/switch/cupertino_switch.0.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/cupertino/switch/cupertino_switch.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/switch/cupertino_switch.0_test.dart",
"repo_id": "flutter",
"token_count": 305
} | 584 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/app_bar/app_bar.2.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/material/app_bar/app_bar.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/app_bar/app_bar.2_test.dart",
"repo_id": "flutter",
"token_count": 230
} | 585 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/card/card.1.dart' as example;
import 'package:flutter_test/flutter_tes... | flutter/examples/api/test/material/card/card.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/card/card.1_test.dart",
"repo_id": "flutter",
"token_count": 189
} | 586 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.... | flutter/examples/api/test/material/context_menu/selectable_region_toolbar_builder.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/context_menu/selectable_region_toolbar_builder.0_test.dart",
"repo_id": "flutter",
"token_count": 607
} | 587 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/divider/vertical_divider.1.dart' as example;
import 'package:flutter_t... | flutter/examples/api/test/material/divider/vertical_divider.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/divider/vertical_divider.1_test.dart",
"repo_id": "flutter",
"token_count": 350
} | 588 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/floating_action_button/floating_action_button.2.dart'
as example;
... | flutter/examples/api/test/material/floating_action_button/floating_action_button.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/floating_action_button/floating_action_button.2_test.dart",
"repo_id": "flutter",
"token_count": 480
} | 589 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/list_tile/list_tile.0.dart' as example;
import 'package:flutter_test/f... | flutter/examples/api/test/material/list_tile/list_tile.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/list_tile/list_tile.0_test.dart",
"repo_id": "flutter",
"token_count": 394
} | 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';
import 'package:flutter_api_samples/material/radio_list_tile/custom_labeled_radio.1.dart' as example;
import 'packa... | flutter/examples/api/test/material/radio_list_tile/custom_labeled_radio.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/radio_list_tile/custom_labeled_radio.1_test.dart",
"repo_id": "flutter",
"token_count": 470
} | 591 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/search_anchor/search_bar.0.dart' as example;
import 'package:flutter_t... | flutter/examples/api/test/material/search_anchor/search_bar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/search_anchor/search_bar.0_test.dart",
"repo_id": "flutter",
"token_count": 485
} | 592 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/switch_list_tile/switch_list_tile.1.dart' as example;
import 'package:... | flutter/examples/api/test/material/switch_list_tile/switch_list_tile.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/switch_list_tile/switch_list_tile.1_test.dart",
"repo_id": "flutter",
"token_count": 1090
} | 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';
import 'package:flutter_api_samples/painting/borders/border_side.stroke_align.0.dart'
as example;
import 'packa... | flutter/examples/api/test/painting/border_side.stroke_align.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/painting/border_side.stroke_align.0_test.dart",
"repo_id": "flutter",
"token_count": 248
} | 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';
import 'package:flutter/services.dart';
import 'package:flutter_api_samples/services/text_input/text_input_control.... | flutter/examples/api/test/services/text_input/text_input_control.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/services/text_input/text_input_control.0_test.dart",
"repo_id": "flutter",
"token_count": 522
} | 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_api_samples/widgets/app_lifecycle_listener/app_lifecycle_listener.0.dart' as example;
import 'package:flutter_test/flutter_test.dar... | flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart",
"repo_id": "flutter",
"token_count": 207
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/basic/listener.0.dart' as exam... | flutter/examples/api/test/widgets/basic/listener.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/listener.0_test.dart",
"repo_id": "flutter",
"token_count": 434
} | 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';
import 'package:flutter_api_samples/widgets/heroes/hero.1.dart' as example;
import 'package:flutter_test/flutter_te... | flutter/examples/api/test/widgets/heroes/hero.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/heroes/hero.1_test.dart",
"repo_id": "flutter",
"token_count": 2048
} | 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/material.dart';
import 'package:flutter_api_samples/widgets/routes/show_general_dialog.0.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart",
"repo_id": "flutter",
"token_count": 337
} | 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/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_api_samples/widgets/text_magnifier/text_magnifier.... | flutter/examples/api/test/widgets/text_magnifier/text_magnifier.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/text_magnifier/text_magnifier.0_test.dart",
"repo_id": "flutter",
"token_count": 1402
} | 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 <Foundation/Foundation.h>
#import "NativeViewController.h"
@interface NativeViewController ()
@property int counter;
@property (weak, nonatomic) ... | flutter/examples/flutter_view/ios/Runner/NativeViewController.m/0 | {
"file_path": "flutter/examples/flutter_view/ios/Runner/NativeViewController.m",
"repo_id": "flutter",
"token_count": 343
} | 601 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/flutter_view/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/examples/flutter_view/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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.
// This example shows how to draw some bi-directional text using the raw
// interface to the engine.
import 'dart:typed_data';
import 'dart:ui' as ui;
//... | flutter/examples/layers/raw/text.dart/0 | {
"file_path": "flutter/examples/layers/raw/text.dart",
"repo_id": "flutter",
"token_count": 1394
} | 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_test/flutter_test.dart';
import '../rendering/src/sector_layout.dart';
import '../widgets/sectors.dart';
void main() {
test('Se... | flutter/examples/layers/test/sector_test.dart/0 | {
"file_path": "flutter/examples/layers/test/sector_test.dart",
"repo_id": "flutter",
"token_count": 172
} | 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.
package com.example.platformchannel;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.ContextWrapper;
impo... | flutter/examples/platform_channel/android/app/src/main/java/com/example/platformchannel/MainActivity.java/0 | {
"file_path": "flutter/examples/platform_channel/android/app/src/main/java/com/example/platformchannel/MainActivity.java",
"repo_id": "flutter",
"token_count": 1450
} | 605 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/platform_channel/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/examples/platform_channel/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 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 Foundation
import IOKit.ps
enum PowerState {
case ac
case battery
case unknown
}
/// A convenience wrapper for an IOKit power source.
final ... | flutter/examples/platform_channel/macos/Runner/PowerSource.swift/0 | {
"file_path": "flutter/examples/platform_channel/macos/Runner/PowerSource.swift",
"repo_id": "flutter",
"token_count": 881
} | 607 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/platform_view/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/examples/platform_view/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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.
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#include "my_texture.h"
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#incl... | flutter/examples/texture/linux/my_application.cc/0 | {
"file_path": "flutter/examples/texture/linux/my_application.cc",
"repo_id": "flutter",
"token_count": 2636
} | 609 |
## Directory contents
The `.yaml` files in these directories are used to
define the [`dart fix` framework](https://dart.dev/tools/dart-fix) refactorings
used by the Flutter framework.
The number of fix rules defined in a file should not exceed 50 for better
maintainability. Searching for `title:` in a given `.yaml` f... | flutter/packages/flutter/lib/fix_data/README.md/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/README.md",
"repo_id": "flutter",
"token_count": 524
} | 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.
# For details regarding the *Flutter Fix* feature, see
# https://flutter.dev/docs/development/tools/flutter-fix
# Please add new fixes to the top of the file... | flutter/packages/flutter/lib/fix_data/fix_widgets/fix_build_context.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_widgets/fix_build_context.yaml",
"repo_id": "flutter",
"token_count": 2410
} | 611 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.