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:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEGIN bannerDemo
enum BannerDemoAction {
reset,
showMultipleAct... | flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart",
"repo_id": "flutter",
"token_count": 1965
} | 700 |
// Copyright 2014 The Flutter Authors. 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 navRailDemo
class NavRailDemo extends StatefulWidget {
cons... | flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart",
"repo_id": "flutter",
"token_count": 1602
} | 701 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
import 'transformations_demo_board.dart';
import 'tr... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart",
"repo_id": "flutter",
"token_count": 3309
} | 702 |
// Copyright 2014 The Flutter Authors. 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';
abstract class BackLayerItem extends StatefulWidget {
const BackLayerItem({super.key, required this.index});
... | flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart",
"repo_id": "flutter",
"token_count": 412
} | 703 |
// Copyright 2014 The Flutter Authors. 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 'package:flutter/services.dart';
import 'package:google_fonts/g... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart",
"repo_id": "flutter",
"token_count": 1519
} | 704 |
// Copyright 2014 The Flutter Authors. 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';
class TabWithSidebar extends StatelessWidget {
... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart",
"repo_id": "flutter",
"token_count": 1099
} | 705 |
// Copyright 2014 The Flutter Authors. 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:flutter/services.dart';
import '../../gallery_localizations.dart';
import 'cat... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart",
"repo_id": "flutter",
"token_count": 5406
} | 706 |
// Copyright 2014 The Flutter Authors. 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 '../model/product.dart';
import 'product_card.dart';
/// Height of the text below eac... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart",
"repo_id": "flutter",
"token_count": 1105
} | 707 |
name: non_nullable
description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: 1.0.6
characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "... | flutter/dev/integration_tests/non_nullable/pubspec.yaml/0 | {
"file_path": "flutter/dev/integration_tests/non_nullable/pubspec.yaml",
"repo_id": "flutter",
"token_count": 920
} | 708 |
// Copyright 2014 The Flutter 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.release_smoke_test;
import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.instrumentationadapter.FlutterRunner;
impor... | flutter/dev/integration_tests/release_smoke_test/android/app/src/androidTest/java/com/example/release_smoke_test/MainActivityTest.java/0 | {
"file_path": "flutter/dev/integration_tests/release_smoke_test/android/app/src/androidTest/java/com/example/release_smoke_test/MainActivityTest.java",
"repo_id": "flutter",
"token_count": 157
} | 709 |
// Copyright 2014 The Flutter Authors. 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(home: Test()));
}
class Test extends StatefulWidget {
const Test({ sup... | flutter/dev/integration_tests/ui/lib/overflow.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/overflow.dart",
"repo_id": "flutter",
"token_count": 359
} | 710 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/integration_tests/ui/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/dev/integration_tests/ui/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 711 |
// Copyright 2014 The Flutter Authors. 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_textfield_test.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/test_driver/keyboard_textfield_test.dart",
"repo_id": "flutter",
"token_count": 737
} | 712 |
// Copyright 2014 The Flutter Authors. 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;
// Attempt to load a file that is hosted in the applications's `web/` directory.
Future<void> main() async {
try {
final... | flutter/dev/integration_tests/web/lib/web_directory_loading.dart/0 | {
"file_path": "flutter/dev/integration_tests/web/lib/web_directory_loading.dart",
"repo_id": "flutter",
"token_count": 237
} | 713 |
// Copyright 2014 The Flutter 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 settings.gradle files in the Flutter repo,
// See dev/tools/bin/generate_gradle_lockfiles.dart.
plugi... | flutter/dev/manual_tests/android/settings.gradle/0 | {
"file_path": "flutter/dev/manual_tests/android/settings.gradle",
"repo_id": "flutter",
"token_count": 406
} | 714 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/dev/manual_tests/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/dev/manual_tests/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 715 |
// Copyright 2014 The Flutter Authors. 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:meta/meta.dart';
import 'package:path/path.dart' as path;
/// Makes sure that the path we were given contains some of t... | flutter/dev/tools/dartdoc_checker.dart/0 | {
"file_path": "flutter/dev/tools/dartdoc_checker.dart",
"repo_id": "flutter",
"token_count": 1359
} | 716 |
{
"version": "v0_206",
"md.comp.outlined-card.container.color": "surface",
"md.comp.outlined-card.container.elevation": "md.sys.elevation.level0",
"md.comp.outlined-card.container.shadow-color": "shadow",
"md.comp.outlined-card.container.shape": "md.sys.shape.corner.medium",
"md.comp.outlined-card.disabled... | flutter/dev/tools/gen_defaults/data/card_outlined.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/card_outlined.json",
"repo_id": "flutter",
"token_count": 852
} | 717 |
{
"version": "v0_206",
"md.comp.extended-fab.primary.container.color": "primaryContainer",
"md.comp.extended-fab.primary.container.elevation": "md.sys.elevation.level3",
"md.comp.extended-fab.primary.container.height": 56.0,
"md.comp.extended-fab.primary.container.shadow-color": "shadow",
"md.comp.extended... | flutter/dev/tools/gen_defaults/data/fab_extended_primary.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/fab_extended_primary.json",
"repo_id": "flutter",
"token_count": 945
} | 718 |
{
"version": "v0_206",
"md.ref.palette.black": "0xFF000000",
"md.ref.palette.error0": "0xFF000000",
"md.ref.palette.error10": "0xFF410E0B",
"md.ref.palette.error100": "0xFFFFFFFF",
"md.ref.palette.error20": "0xFF601410",
"md.ref.palette.error30": "0xFF8C1D18",
"md.ref.palette.error40": "0xFFB3261E",
... | flutter/dev/tools/gen_defaults/data/palette.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/palette.json",
"repo_id": "flutter",
"token_count": 2020
} | 719 |
{
"version": "v0_206",
"md.comp.time-picker.clock-dial.color": "surfaceContainerHighest",
"md.comp.time-picker.clock-dial.container.size": 256.0,
"md.comp.time-picker.clock-dial.label-text.text-style": "bodyLarge",
"md.comp.time-picker.clock-dial.selected.label-text.color": "onPrimary",
"md.comp.time-picke... | flutter/dev/tools/gen_defaults/data/time_picker.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/time_picker.json",
"repo_id": "flutter",
"token_count": 2244
} | 720 |
// Copyright 2014 The Flutter Authors. 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';
import 'token_logger.dart';
class ColorSchemeTemplate extends TokenTemplate {
ColorSchemeTemplate(this._colorTokensLight, this._... | flutter/dev/tools/gen_defaults/lib/color_scheme_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/color_scheme_template.dart",
"repo_id": "flutter",
"token_count": 2708
} | 721 |
// Copyright 2014 The Flutter Authors. 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 NavigationRailTemplate extends TokenTemplate {
const NavigationRailTemplate(super.blockName, super.fileName, super.tokens,... | flutter/dev/tools/gen_defaults/lib/navigation_rail_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/navigation_rail_template.dart",
"repo_id": "flutter",
"token_count": 747
} | 722 |
// Copyright 2014 The Flutter Authors. 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 TypographyTemplate extends TokenTemplate {
const TypographyTemplate(super.blockName, super.fileName, super.tokens);
@ov... | flutter/dev/tools/gen_defaults/lib/typography_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/typography_template.dart",
"repo_id": "flutter",
"token_count": 1309
} | 723 |
{
"NumpadAdd": ["KP_Add"],
"NumpadMultiply": ["KP_Multiply"],
"NumpadSubtract": ["KP_Subtract"],
"NumpadDivide": ["KP_Divide"],
"Space": ["KP_Space"],
"Period": ["KP_Decimal"],
"NumpadEqual": ["KP_Equal"],
"Numpad0": ["KP_0", "KP_Insert"],
"Numpad1": ["KP_1", "KP_End"],
"Numpad2": ["KP_2", "KP_Down"... | flutter/dev/tools/gen_keycodes/data/gtk_logical_name_mapping.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/gtk_logical_name_mapping.json",
"repo_id": "flutter",
"token_count": 1881
} | 724 |
// This file contains supplemental key data to be added to those that
// Chromium defines.
// ============================================================
// Printable keys (Unicode plane)
// ============================================================
// Key Enum ... | flutter/dev/tools/gen_keycodes/data/supplemental_key_data.inc/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/supplemental_key_data.inc",
"repo_id": "flutter",
"token_count": 7847
} | 725 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:path/path.dart' as path;
import 'base_code_gen.dart';
import 'constants.dart';
import 'logical_key_data.dart';
import 'physical_key_data.d... | flutter/dev/tools/gen_keycodes/lib/macos_code_gen.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/macos_code_gen.dart",
"repo_id": "flutter",
"token_count": 2018
} | 726 |
// Copyright 2014 The Flutter Authors. 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';
// See http://en.wikipedia.org/wiki/Right-to-left
const List<String> _rtlLanguages = <String>[
'ar', // Arabic
'fa'... | flutter/dev/tools/localization/gen_widgets_localizations.dart/0 | {
"file_path": "flutter/dev/tools/localization/gen_widgets_localizations.dart",
"repo_id": "flutter",
"token_count": 774
} | 727 |
<svg id="svg_build_00" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" >
<g if="group_2" opacity="0.5" >
<path id="path_1" d="M 0,19.0 L 48.0, 19.0 L 48.0, 29.0 L 0, 29.0 Z " fill="#000000" />
</g>
</svg>
| flutter/dev/tools/vitool/test_assets/bar_group_opacity.svg/0 | {
"file_path": "flutter/dev/tools/vitool/test_assets/bar_group_opacity.svg",
"repo_id": "flutter",
"token_count": 117
} | 728 |
# This file is also used by dev/bots/analyze_snippet_code.dart to analyze code snippets (`{@tool snippet}` sections).
include: ../../analysis_options.yaml
linter:
rules:
# Samples want to print things pretty often.
avoid_print: false
# Samples are sometimes incomplete and don't show usage of everything.... | flutter/examples/api/analysis_options.yaml/0 | {
"file_path": "flutter/examples/api/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 112
} | 729 |
// Copyright 2014 The Flutter Authors. 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 [CupertinoTimerPicker].
void main() => runApp(const TimerPickerApp());
class TimerP... | flutter/examples/api/lib/cupertino/date_picker/cupertino_timer_picker.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/date_picker/cupertino_timer_picker.0.dart",
"repo_id": "flutter",
"token_count": 1984
} | 730 |
// Copyright 2014 The Flutter Authors. 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 [CupertinoScrollbar].
void main() => runApp(const ScrollbarApp());
class ScrollbarA... | flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.1.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.1.dart",
"repo_id": "flutter",
"token_count": 656
} | 731 |
// Copyright 2014 The Flutter Authors. 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 [AnimatedIcon].
void main() {
runApp(const AnimatedIconApp());
}
class AnimatedIco... | flutter/examples/api/lib/material/animated_icon/animated_icon.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/animated_icon/animated_icon.0.dart",
"repo_id": "flutter",
"token_count": 609
} | 732 |
// Copyright 2014 The Flutter Authors. 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 [MaterialBanner].
void main() => runApp(const MaterialBannerExampleApp());
class Mat... | flutter/examples/api/lib/material/banner/material_banner.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/banner/material_banner.0.dart",
"repo_id": "flutter",
"token_count": 504
} | 733 |
// Copyright 2014 The Flutter Authors. 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' show timeDilation;
/// Flutter code sample for [CheckboxListTile].
void m... | flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.0.dart",
"repo_id": "flutter",
"token_count": 523
} | 734 |
// Copyright 2014 The Flutter Authors. 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.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/data_table/data_table.1.dart",
"repo_id": "flutter",
"token_count": 893
} | 735 |
// Copyright 2014 The Flutter Authors. 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 [DropdownButton].
const List<String> list = <String>['One', 'Two', 'Three', 'Four'];
... | flutter/examples/api/lib/material/dropdown/dropdown_button.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/dropdown/dropdown_button.0.dart",
"repo_id": "flutter",
"token_count": 645
} | 736 |
// Copyright 2014 The Flutter Authors. 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.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/floating_action_button/floating_action_button.1.dart",
"repo_id": "flutter",
"token_count": 1906
} | 737 |
// Copyright 2014 The Flutter Authors. 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 [InputDecorator].
void main() => runApp(const FloatingLabelStyleErrorExampleApp());
... | flutter/examples/api/lib/material/input_decorator/input_decoration.floating_label_style_error.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/input_decorator/input_decoration.floating_label_style_error.0.dart",
"repo_id": "flutter",
"token_count": 661
} | 738 |
// Copyright 2014 The Flutter Authors. 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.4.dart/0 | {
"file_path": "flutter/examples/api/lib/material/list_tile/list_tile.4.dart",
"repo_id": "flutter",
"token_count": 1273
} | 739 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Builds an adaptive navigation widget layout. When the screen width is less than
// 450, A [NavigationBar] will be displayed. Otherwise, a [NavigationRai... | flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart",
"repo_id": "flutter",
"token_count": 2468
} | 740 |
// Copyright 2014 The Flutter Authors. 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 [LinearProgressIndicator].
void main() => runApp(const ProgressIndicatorApp());
clas... | flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.1.dart",
"repo_id": "flutter",
"token_count": 1351
} | 741 |
// Copyright 2014 The Flutter Authors. 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 [Scaffold].
void main() => runApp(const ScaffoldExampleApp());
class ScaffoldExample... | flutter/examples/api/lib/material/scaffold/scaffold.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scaffold/scaffold.0.dart",
"repo_id": "flutter",
"token_count": 406
} | 742 |
// Copyright 2014 The Flutter Authors. 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.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scrollbar/scrollbar.1.dart",
"repo_id": "flutter",
"token_count": 483
} | 743 |
// Copyright 2014 The Flutter Authors. 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 [SnackBar].
void main() => runApp(const SnackBarExampleApp());
class SnackBarExample... | flutter/examples/api/lib/material/snack_bar/snack_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/snack_bar/snack_bar.0.dart",
"repo_id": "flutter",
"token_count": 508
} | 744 |
// Copyright 2014 The Flutter Authors. 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 [TabBar].
void main() => runApp(const TabBarApp());
class TabBarApp extends Stateles... | flutter/examples/api/lib/material/tabs/tab_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/tabs/tab_bar.0.dart",
"repo_id": "flutter",
"token_count": 744
} | 745 |
// Copyright 2014 The Flutter Authors. 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.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/tooltip/tooltip.2.dart",
"repo_id": "flutter",
"token_count": 483
} | 746 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [ServicesBinding.handleRequ... | flutter/examples/api/lib/services/binding/handle_request_app_exit.0.dart/0 | {
"file_path": "flutter/examples/api/lib/services/binding/handle_request_app_exit.0.dart",
"repo_id": "flutter",
"token_count": 1101
} | 747 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
/// Flutter code sample for [FontFeature.FontFeature.historicalLigatures].
void main() => runApp(const ExampleApp(... | flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_ligatures.0.dart/0 | {
"file_path": "flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_ligatures.0.dart",
"repo_id": "flutter",
"token_count": 399
} | 748 |
// Copyright 2014 The Flutter Authors. 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 [RawAutocomplete].
void main() => runApp(const AutocompleteExampleApp());
class Auto... | flutter/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart",
"repo_id": "flutter",
"token_count": 1184
} | 749 |
// Copyright 2014 The Flutter Authors. 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 [FractionallySizedBox].
void main() => runApp(const FractionallySizedBoxApp());
clas... | flutter/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart",
"repo_id": "flutter",
"token_count": 476
} | 750 |
// Copyright 2014 The Flutter Authors. 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:typed_data';
import 'package:flutter/material.dart';
/// Flutter code sample for [EditableText.onContentInserted].
void main() => runApp(co... | flutter/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart",
"repo_id": "flutter",
"token_count": 783
} | 751 |
// Copyright 2014 The Flutter Authors. 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.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/gesture_detector/gesture_detector.1.dart",
"repo_id": "flutter",
"token_count": 422
} | 752 |
// Copyright 2014 The Flutter Authors. 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 [InheritedNotifier].
void main() => runApp(const Inherit... | flutter/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart",
"repo_id": "flutter",
"token_count": 818
} | 753 |
// Copyright 2014 The Flutter Authors. 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 [RestorableRouteFuture].
void main() => runApp(const RestorableRouteFutureExampleApp(... | flutter/examples/api/lib/widgets/navigator/restorable_route_future.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/navigator/restorable_route_future.0.dart",
"repo_id": "flutter",
"token_count": 1537
} | 754 |
// Copyright 2014 The Flutter 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 sample demonstrates showing a confirmation dialog before navigating
// away from a page.
import 'package:flutter/material.dart';
void main() => r... | flutter/examples/api/lib/widgets/pop_scope/pop_scope.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/pop_scope/pop_scope.0.dart",
"repo_id": "flutter",
"token_count": 1783
} | 755 |
// Copyright 2014 The Flutter Authors. 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.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scrollbar/raw_scrollbar.1.dart",
"repo_id": "flutter",
"token_count": 401
} | 756 |
// Copyright 2014 The Flutter Authors. 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 SliverCrossAxisGroupExampleApp());
class SliverCrossAxisGroupExampleApp extends State... | flutter/examples/api/lib/widgets/sliver/sliver_cross_axis_group.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/sliver/sliver_cross_axis_group.0.dart",
"repo_id": "flutter",
"token_count": 1524
} | 757 |
// Copyright 2014 The Flutter Authors. 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 [DefaultTextStyleTransition].
void main() => runApp(const DefaultTextStyleTransitionE... | flutter/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart",
"repo_id": "flutter",
"token_count": 644
} | 758 |
// Copyright 2014 The Flutter Authors. 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/nav_bar/cupertino_sliver_nav_bar.0.dart' as example;
import 'package... | flutter/examples/api/test/cupertino/nav_bar/cupertino_sliver_nav_bar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/nav_bar/cupertino_sliver_nav_bar.0_test.dart",
"repo_id": "flutter",
"token_count": 918
} | 759 |
// Copyright 2014 The Flutter Authors. 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/tab_scaffold/cupertino_tab_controller.0.dart' as example;
import 'pa... | flutter/examples/api/test/cupertino/tab_scaffold/cupertino_tab_controller.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/tab_scaffold/cupertino_tab_controller.0_test.dart",
"repo_id": "flutter",
"token_count": 313
} | 760 |
// Copyright 2014 The Flutter Authors. 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.3.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/material/app_bar/app_bar.3_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/app_bar/app_bar.3_test.dart",
"repo_id": "flutter",
"token_count": 382
} | 761 |
// Copyright 2014 The Flutter Authors. 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.2.dart' as example;
import 'package:flutter_test/flutter_tes... | flutter/examples/api/test/material/card/card.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/card/card.2_test.dart",
"repo_id": "flutter",
"token_count": 864
} | 762 |
// Copyright 2014 The Flutter Authors. 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/data_table/data_table.0.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/data_table/data_table.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/data_table/data_table.0_test.dart",
"repo_id": "flutter",
"token_count": 510
} | 763 |
// Copyright 2014 The Flutter Authors. 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/drawer/drawer.0.dart'
as example;
import 'package:flutter_test/flu... | flutter/examples/api/test/material/drawer/drawer.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/drawer/drawer.0_test.dart",
"repo_id": "flutter",
"token_count": 531
} | 764 |
// Copyright 2014 The Flutter Authors. 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/icon_button/icon_button.0.dart' as example;
import 'package:flutter_te... | flutter/examples/api/test/material/icon_button/icon_button.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/icon_button/icon_button.0_test.dart",
"repo_id": "flutter",
"token_count": 391
} | 765 |
// Copyright 2014 The Flutter Authors. 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.1.dart' as example;
import 'package:flutter_test/f... | flutter/examples/api/test/material/list_tile/list_tile.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/list_tile/list_tile.1_test.dart",
"repo_id": "flutter",
"token_count": 342
} | 766 |
// Copyright 2014 The Flutter Authors. 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/navigation_rail/navigation_rail.1.dart'
as example;
import 'packag... | flutter/examples/api/test/material/navigation_rail/navigation_rail.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/navigation_rail/navigation_rail.1_test.dart",
"repo_id": "flutter",
"token_count": 1403
} | 767 |
// Copyright 2014 The Flutter Authors. 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/radio_list_tile.0.dart' as example;
import 'package:fl... | flutter/examples/api/test/material/radio_list_tile/radio_list_tile.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/radio_list_tile/radio_list_tile.0_test.dart",
"repo_id": "flutter",
"token_count": 583
} | 768 |
// Copyright 2014 The Flutter Authors. 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/segmented_button/segmented_button.1.dart'
as example;
import 'pack... | flutter/examples/api/test/material/segmented_button/segmented_button.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/segmented_button/segmented_button.1_test.dart",
"repo_id": "flutter",
"token_count": 432
} | 769 |
// Copyright 2014 The Flutter Authors. 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/tabs/tab_bar.0.dart' as example;
import 'package:flutter_test/flutter_... | flutter/examples/api/test/material/tabs/tab_bar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/tabs/tab_bar.0_test.dart",
"repo_id": "flutter",
"token_count": 655
} | 770 |
// Copyright 2014 The Flutter Authors. 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_api_samples/painting/image_provider/image_provider.0.dart';
import 'package:flutter_test/... | flutter/examples/api/test/painting/image_provider/image_provider.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/painting/image_provider/image_provider.0_test.dart",
"repo_id": "flutter",
"token_count": 338
} | 771 |
// Copyright 2014 The Flutter Authors. 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/ui/text/font_feature.0.dart' as example;
import 'package:flutter_test/flutter_t... | flutter/examples/api/test/ui/text/font_feature.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/ui/text/font_feature.0_test.dart",
"repo_id": "flutter",
"token_count": 440
} | 772 |
// Copyright 2014 The Flutter Authors. 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.1.dart' as example;
import 'package:flutter_test/flutter_test.dar... | flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart",
"repo_id": "flutter",
"token_count": 379
} | 773 |
// Copyright 2014 The Flutter Authors. 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/mouse_region.0.dart' as e... | flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart",
"repo_id": "flutter",
"token_count": 509
} | 774 |
// Copyright 2014 The Flutter Authors. 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/implicit_animations/animated_slide.0.dart' as example;
import 'package:... | flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart",
"repo_id": "flutter",
"token_count": 500
} | 775 |
// Copyright 2014 The Flutter Authors. 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/scroll_notification_observer/scroll_notification_observer.0.dart' as ex... | flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart",
"repo_id": "flutter",
"token_count": 351
} | 776 |
// Copyright 2014 The Flutter Authors. 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/transitions/listenable_builder.0.dart' as example;
import 'package:flut... | flutter/examples/api/test/widgets/transitions/listenable_builder.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/transitions/listenable_builder.0_test.dart",
"repo_id": "flutter",
"token_count": 636
} | 777 |
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="verti... | flutter/examples/flutter_view/android/app/src/main/res/layout/flutter_view_layout.xml/0 | {
"file_path": "flutter/examples/flutter_view/android/app/src/main/res/layout/flutter_view_layout.xml",
"repo_id": "flutter",
"token_count": 900
} | 778 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Runner.rc
//
#define IDI_APP_ICON 101
// Next default ... | flutter/examples/flutter_view/windows/runner/resource.h/0 | {
"file_path": "flutter/examples/flutter_view/windows/runner/resource.h",
"repo_id": "flutter",
"token_count": 242
} | 779 |
# 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.3.0=classpath
androidx.databinding:databinding-compiler-common:7.3.0=classpath
com.android.application:com.and... | flutter/examples/layers/android/buildscript-gradle.lockfile/0 | {
"file_path": "flutter/examples/layers/android/buildscript-gradle.lockfile",
"repo_id": "flutter",
"token_count": 3596
} | 780 |
// Copyright 2014 The Flutter 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 put some pixels on the screen using the raw
// interface to the engine.
import 'dart:typed_data';
import 'dart:ui' as ui;
//... | flutter/examples/layers/raw/touch_input.dart/0 | {
"file_path": "flutter/examples/layers/raw/touch_input.dart",
"repo_id": "flutter",
"token_count": 1570
} | 781 |
// Copyright 2014 The Flutter Authors. 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 '../../../widgets/media_query.dart' as demo;
void main() {
testWidgets('layers smoketest for wi... | flutter/examples/layers/test/smoketests/widgets/media_query_test.dart/0 | {
"file_path": "flutter/examples/layers/test/smoketests/widgets/media_query_test.dart",
"repo_id": "flutter",
"token_count": 131
} | 782 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "AppDelegate.h"
#import <Flutter/Flutter.h>
#import "GeneratedPluginRegistrant.h"
@implementation AppDelegate {
FlutterEventSink _eventSink;
}
... | flutter/examples/platform_channel/ios/Runner/AppDelegate.m/0 | {
"file_path": "flutter/examples/platform_channel/ios/Runner/AppDelegate.m",
"repo_id": "flutter",
"token_count": 1245
} | 783 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/platform_view/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/examples/platform_view/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 784 |
# Copyright 2014 The Flutter 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_cupertino.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_cupertino.yaml",
"repo_id": "flutter",
"token_count": 4048
} | 785 |
# Copyright 2014 The Flutter 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_drag_target.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_widgets/fix_drag_target.yaml",
"repo_id": "flutter",
"token_count": 569
} | 786 |
// Copyright 2014 The Flutter Authors. 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 'tween.dart';
export 'dart:ui' show VoidCallback;
export 'tween.dart' show Animatable;
// Examples ca... | flutter/packages/flutter/lib/src/animation/animation.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/animation/animation.dart",
"repo_id": "flutter",
"token_count": 3269
} | 787 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flut... | flutter/packages/flutter/lib/src/cupertino/context_menu.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/context_menu.dart",
"repo_id": "flutter",
"token_count": 17351
} | 788 |
// Copyright 2014 The Flutter Authors. 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/widgets.dart';
/// A [CupertinoMagnifier] used for magnifying text in cases where a user's
/// finger ... | flutter/packages/flutter/lib/src/cupertino/magnifier.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/magnifier.dart",
"repo_id": "flutter",
"token_count": 3834
} | 789 |
// Copyright 2014 The Flutter Authors. 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' as ui show BoxHeightStyle, BoxWidthStyle;
import 'package:flutter/foundation.dart' show defaultTargetPlatform;
import 'package:flutter/ge... | flutter/packages/flutter/lib/src/cupertino/text_field.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/text_field.dart",
"repo_id": "flutter",
"token_count": 19456
} | 790 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'isolates.dart' as isolates;
export 'isolates.dart' show ComputeCallback;
/// The dart:html implementation of [isolate.compute].
@pragma('dart2js:... | flutter/packages/flutter/lib/src/foundation/_isolates_web.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/_isolates_web.dart",
"repo_id": "flutter",
"token_count": 188
} | 791 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:ui' show clampDouble;
import 'package:meta/meta.dart';
import 'assertions.dart';
import 'constants.dart';
import... | flutter/packages/flutter/lib/src/foundation/diagnostics.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/diagnostics.dart",
"repo_id": "flutter",
"token_count": 41270
} | 792 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Constants for useful Unicode characters.
///
/// Currently, these characters are all related to bidirectional text.
///
/// See also:
///
/// * <http:... | flutter/packages/flutter/lib/src/foundation/unicode.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/unicode.dart",
"repo_id": "flutter",
"token_count": 974
} | 793 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'arena.dart';
import 'binding.dart';
import 'constants.dart';
import 'drag.dart';
... | flutter/packages/flutter/lib/src/gestures/multidrag.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/multidrag.dart",
"repo_id": "flutter",
"token_count": 6499
} | 794 |
// Copyright 2014 The Flutter 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 widgets implementing Material Design animated icons.
library material_animated_icons;
import 'dart:math' as math show pi;
import 'dart:ui' as ... | flutter/packages/flutter/lib/src/material/animated_icons.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons.dart",
"repo_id": "flutter",
"token_count": 491
} | 795 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// AUTOGENERATED FILE DO NOT EDIT!
// This file was generated by vitool.
part of material_animated_icons; // ignore: use_string_in_part_of_directives
const... | flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart",
"repo_id": "flutter",
"token_count": 124150
} | 796 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'package:flutter/rendering.dart';
/// Defines default property values ... | flutter/packages/flutter/lib/src/material/bottom_sheet_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/bottom_sheet_theme.dart",
"repo_id": "flutter",
"token_count": 2830
} | 797 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'constants.dart';
import 'theme.dart';
// Examples can assume:
// late String userAvatarUrl;
/// A circle ... | flutter/packages/flutter/lib/src/material/circle_avatar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/circle_avatar.dart",
"repo_id": "flutter",
"token_count": 3233
} | 798 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'package:flutter/widgets.dart';
import 'theme.dart';
/// Defines a th... | flutter/packages/flutter/lib/src/material/dialog_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/dialog_theme.dart",
"repo_id": "flutter",
"token_count": 2438
} | 799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.