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 'dart:ui';
import 'package:flutter/material.dart';
/// Flutter code sample for [ReorderableListView].
void main() => runApp(const ReorderableApp(... | flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.1.dart",
"repo_id": "flutter",
"token_count": 1008
} | 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 [SnackBar].
void main() => runApp(const SnackBarApp());
class SnackBarApp extends St... | flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart",
"repo_id": "flutter",
"token_count": 999
} | 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.
// Flutter example for [SelectionContainer.disabled].
import 'package:flutter/material.dart';
void main() => runApp(const SelectionContainerDisabledExamp... | flutter/examples/api/lib/material/selection_container/selection_container_disabled.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/selection_container/selection_container_disabled.0.dart",
"repo_id": "flutter",
"token_count": 409
} | 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 custom labeled switch.
void main() => runApp(const LabeledSwitchApp());
class Labele... | flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.1.dart",
"repo_id": "flutter",
"token_count": 835
} | 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 [ToggleButtons].
const List<Widget> fruits = <Widget>[Text('Apple'), Text('Banana'), ... | flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.0.dart",
"repo_id": "flutter",
"token_count": 2571
} | 583 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
/// Flutter code sample for [AppLifecycleListener].
void main() {
runA... | flutter/examples/api/lib/widgets/app_lifecycle_listener/app_lifecycle_listener.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/app_lifecycle_listener/app_lifecycle_listener.0.dart",
"repo_id": "flutter",
"token_count": 1018
} | 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';
/// Flutter code sample for [Expanded].
void main() => runApp(const ExpandedApp());
class ExpandedApp extends St... | flutter/examples/api/lib/widgets/basic/expanded.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/expanded.0.dart",
"repo_id": "flutter",
"token_count": 545
} | 585 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Dismissible].
void main() => runApp(const DismissibleExampleApp());
class Dismissib... | flutter/examples/api/lib/widgets/dismissible/dismissible.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/dismissible/dismissible.0.dart",
"repo_id": "flutter",
"token_count": 649
} | 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/material.dart';
import 'package:flutter/services.dart';
/// This sample demonstrates showing a confirmation dialog when the user
/... | flutter/examples/api/lib/widgets/form/form.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/form/form.1.dart",
"repo_id": "flutter",
"token_count": 2423
} | 587 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [AnimatedPositioned].
void main() => runApp(const AnimatedPositionedExampleApp());
c... | flutter/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart",
"repo_id": "flutter",
"token_count": 756
} | 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';
/// Flutter code sample for [Navigator.restorablePushReplacement].
void main() => runApp(const RestorablePushRepl... | flutter/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart",
"repo_id": "flutter",
"token_count": 481
} | 589 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [GlowingOverscrollIndicator].
void main() => runApp(const GlowingOverscrollIndicatorE... | flutter/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart",
"repo_id": "flutter",
"token_count": 577
} | 590 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(const GridViewExampleA... | flutter/examples/api/lib/widgets/scroll_view/grid_view.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scroll_view/grid_view.0.dart",
"repo_id": "flutter",
"token_count": 2626
} | 591 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SingleChildScrollView].
void main() => runApp(const SingleChildScrollViewExampleApp(... | flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart",
"repo_id": "flutter",
"token_count": 911
} | 592 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [AlignTransition].
void main() => runApp(const AlignTransitionExampleApp());
class A... | flutter/examples/api/lib/widgets/transitions/align_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/align_transition.0.dart",
"repo_id": "flutter",
"token_count": 631
} | 593 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SlideTransition].
void main() => runApp(const SlideTransitionExampleApp());
class S... | flutter/examples/api/lib/widgets/transitions/slide_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/slide_transition.0.dart",
"repo_id": "flutter",
"token_count": 574
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/form_row/cupertino_form_row.0.dart' as example;
import 'package:flut... | flutter/examples/api/test/cupertino/form_row/cupertino_form_row.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/form_row/cupertino_form_row.0_test.dart",
"repo_id": "flutter",
"token_count": 361
} | 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/cupertino/segmented_control/cupertino_segmented_control.0.dart' as example;
import 'package:flutter_test/flutter_test.d... | flutter/examples/api/test/cupertino/segmented_control/cupertino_segmented_control.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/segmented_control/cupertino_segmented_control.0_test.dart",
"repo_id": "flutter",
"token_count": 245
} | 596 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/app/app.0.dart'
as example;
import 'package:flutter_test/flutter_t... | flutter/examples/api/test/material/app/app.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/app/app.0_test.dart",
"repo_id": "flutter",
"token_count": 867
} | 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services... | flutter/examples/api/test/material/context_menu/editable_text_toolbar_builder.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/context_menu/editable_text_toolbar_builder.0_test.dart",
"repo_id": "flutter",
"token_count": 495
} | 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/material/divider/divider.0.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/material/divider/divider.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/divider/divider.0_test.dart",
"repo_id": "flutter",
"token_count": 346
} | 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_api_samples/material/filter_chip/filter_chip.0.dart' as example;
import 'package:flutter_te... | flutter/examples/api/test/material/filter_chip/filter_chip.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/filter_chip/filter_chip.0_test.dart",
"repo_id": "flutter",
"token_count": 427
} | 600 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/input_decorator/input_decoration.suffix_icon.0.dart' as example;
impor... | flutter/examples/api/test/material/input_decorator/input_decoration.suffix_icon.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/input_decorator/input_decoration.suffix_icon.0_test.dart",
"repo_id": "flutter",
"token_count": 212
} | 601 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/navigation_bar/navigation_bar.1.dart'
as example;
import 'package:... | flutter/examples/api/test/material/navigation_bar/navigation_bar.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/navigation_bar/navigation_bar.1_test.dart",
"repo_id": "flutter",
"token_count": 574
} | 602 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/scrollbar/scrollbar.0.dart' as example;
import 'package:flutter_test/f... | flutter/examples/api/test/material/scrollbar/scrollbar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/scrollbar/scrollbar.0_test.dart",
"repo_id": "flutter",
"token_count": 239
} | 603 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/switch_list_tile/custom_labeled_switch.0.dart' as example;
import 'pac... | flutter/examples/api/test/material/switch_list_tile/custom_labeled_switch.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/switch_list_tile/custom_labeled_switch.0_test.dart",
"repo_id": "flutter",
"token_count": 375
} | 604 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:flutter_api_samples/services/mouse_cursor/mouse_cursor.0.dart' as example;
import 'package:flutter_t... | flutter/examples/api/test/services/mouse_cursor/mouse_cursor.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/services/mouse_cursor/mouse_cursor.0_test.dart",
"repo_id": "flutter",
"token_count": 285
} | 605 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/animated_grid/sliver_animated_grid.0.dart'
as example;
import 'pack... | flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart",
"repo_id": "flutter",
"token_count": 493
} | 606 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/basic/fractionally_sized_box.0.dart' as example;
import 'package:flutte... | flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart",
"repo_id": "flutter",
"token_count": 355
} | 607 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.2.dart'
as example;
import 'packa... | flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart",
"repo_id": "flutter",
"token_count": 1310
} | 608 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_api_samples/widgets/pop_scope/pop_scope.0.dart' as example;
import 'package:flutter_test/flutter_test.dart';
import '../navigator_... | flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart",
"repo_id": "flutter",
"token_count": 811
} | 609 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:flutter_api_samples/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mi... | flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart",
"repo_id": "flutter",
"token_count": 457
} | 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.
#ifndef MainViewController_h
#define MainViewController_h
#endif /* MainViewController_h */
#import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
#import "... | flutter/examples/flutter_view/ios/Runner/MainViewController.h/0 | {
"file_path": "flutter/examples/flutter_view/ios/Runner/MainViewController.h",
"repo_id": "flutter",
"token_count": 139
} | 611 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/hello_world/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutter/examples/hello_world/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 612 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/image_list/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/examples/image_list/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 613 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This example shows how to use the ui.Canvas interface to draw various shapes
// with gradients and transforms.
import 'dart:math' as math;
import 'dart... | flutter/examples/layers/raw/canvas.dart/0 | {
"file_path": "flutter/examples/layers/raw/canvas.dart",
"repo_id": "flutter",
"token_count": 1557
} | 614 |
include: ../../../analysis_options.yaml
linter:
rules:
only_throw_errors: false # We are more flexible for tests.
| flutter/examples/layers/test/analysis_options.yaml/0 | {
"file_path": "flutter/examples/layers/test/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 41
} | 615 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
typedef _TextTransformer = Widget Function(String name, String text);
// From https://en.wikiquote.org/wiki/2001:... | flutter/examples/layers/widgets/styled_text.dart/0 | {
"file_path": "flutter/examples/layers/widgets/styled_text.dart",
"repo_id": "flutter",
"token_count": 1536
} | 616 |
include: ../analysis_options.yaml
linter:
rules:
# diagnostic_describe_all_properties: true # blocked on https://github.com/dart-lang/sdk/issues/47418
prefer_relative_imports: false # doesn't really work when you have subpackages like we do here
| flutter/packages/flutter/lib/analysis_options.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 82
} | 617 |
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# 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_services.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_services.yaml",
"repo_id": "flutter",
"token_count": 1056
} | 618 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The Flutter rendering tree.
///
/// To use, import `package:flutter/rendering.dart`.
///
/// The [RenderObject] hierarchy is used by the Flutter Widget... | flutter/packages/flutter/lib/rendering.dart/0 | {
"file_path": "flutter/packages/flutter/lib/rendering.dart",
"repo_id": "flutter",
"token_count": 1061
} | 619 |
// Copyright 2014 The Flutter Authors. 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/widgets.dart';
import 'colors.dart';
import 'constants.dart';
import 'theme.dart';
// M... | flutter/packages/flutter/lib/src/cupertino/button.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/button.dart",
"repo_id": "flutter",
"token_count": 3594
} | 620 |
// Copyright 2014 The Flutter Authors. 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 '../widgets/framework.dart';
/// Indicates the visual level for a piece of content. Equivalent to `UIUse... | flutter/packages/flutter/lib/src/cupertino/interface_level.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/interface_level.dart",
"repo_id": "flutter",
"token_count": 1235
} | 621 |
// Copyright 2014 The Flutter Authors. 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/scheduler.dart';
import 'package:flutter/services.dart' show SelectionChangedCause, SuggestionSpan;
import 'package:flutter/widgets... | flutter/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart",
"repo_id": "flutter",
"token_count": 1928
} | 622 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'bitfield.dart' as bitfield;
/// The dart:html implementation of [bitfield.kMaxUnsignedSMI].
///
/// This value is used as an optimization to coerc... | flutter/packages/flutter/lib/src/foundation/_bitfield_web.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/_bitfield_web.dart",
"repo_id": "flutter",
"token_count": 416
} | 623 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(ianh): These should be on the Set and List classes themselves.
/// Compares two sets for element-by-element equality.
///
/// Returns true if the ... | flutter/packages/flutter/lib/src/foundation/collections.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/collections.dart",
"repo_id": "flutter",
"token_count": 3880
} | 624 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Service extension constants for the foundation library.
///
/// These constants will be used when registering service extensions in the
/// framework, ... | flutter/packages/flutter/lib/src/foundation/service_extensions.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/service_extensions.dart",
"repo_id": "flutter",
"token_count": 677
} | 625 |
// Copyright 2014 The Flutter Authors. 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:vector_math/vector_math_64.dart';
import 'events.dart';
export 'dart:ui' show Offset;
export ... | flutter/packages/flutter/lib/src/gestures/hit_test.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/hit_test.dart",
"repo_id": "flutter",
"token_count": 3190
} | 626 |
// Copyright 2014 The Flutter Authors. 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/widgets.dart';
import 'action_icons_theme.dart';
import 'button_style.dart';
import 'deb... | flutter/packages/flutter/lib/src/material/action_buttons.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/action_buttons.dart",
"repo_id": "flutter",
"token_count": 4672
} | 627 |
// Copyright 2014 The Flutter 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/menu_home.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart",
"repo_id": "flutter",
"token_count": 48697
} | 628 |
// Copyright 2014 The Flutter Authors. 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 defa... | flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart",
"repo_id": "flutter",
"token_count": 1667
} | 629 |
// Copyright 2014 The Flutter Authors. 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';
import 'package:flutter/widgets.dart'... | flutter/packages/flutter/lib/src/material/checkbox_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/checkbox_theme.dart",
"repo_id": "flutter",
"token_count": 2924
} | 630 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart' show ValueListenable, clampDouble;
import 'package:flutter/widgets.dart';
import 'debug.dart';
import 'desktop_te... | flutter/packages/flutter/lib/src/material/desktop_text_selection.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/desktop_text_selection.dart",
"repo_id": "flutter",
"token_count": 2508
} | 631 |
// Copyright 2014 The Flutter Authors. 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';
import 'colors.dart';
import 'debug.dart';
import 'icon_button.dart';
import 'icons.da... | flutter/packages/flutter/lib/src/material/expand_icon.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/expand_icon.dart",
"repo_id": "flutter",
"token_count": 2060
} | 632 |
// Copyright 2014 The Flutter Authors. 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/widgets.dart';
import 'button_style.dart';
import 'theme.dart';
// Examples can assume:... | flutter/packages/flutter/lib/src/material/icon_button_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/icon_button_theme.dart",
"repo_id": "flutter",
"token_count": 1270
} | 633 |
// Copyright 2014 The Flutter Authors. 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/rendering.dart';
import 'package:flutter/widgets.dart';
import 'button.dart';
import 'button_theme.dart';
impor... | flutter/packages/flutter/lib/src/material/material_button.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/material_button.dart",
"repo_id": "flutter",
"token_count": 4860
} | 634 |
// Copyright 2014 The Flutter Authors. 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';
import 'package:flutter/widgets.dart'... | flutter/packages/flutter/lib/src/material/navigation_rail_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/navigation_rail_theme.dart",
"repo_id": "flutter",
"token_count": 3407
} | 635 |
// Copyright 2014 The Flutter Authors. 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/gestures.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
... | flutter/packages/flutter/lib/src/material/reorderable_list.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/reorderable_list.dart",
"repo_id": "flutter",
"token_count": 6967
} | 636 |
// Copyright 2014 The Flutter Authors. 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/rendering.dart';
import 'package:flutter/widgets.dart';
import 'button_style.dart';
import 'color_scheme.dart';
import 'colors.dar... | flutter/packages/flutter/lib/src/material/snack_bar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/snack_bar.dart",
"repo_id": "flutter",
"token_count": 12386
} | 637 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'package:flutter/widgets.dart';
import 'debug.dart';
import 'material_locali... | flutter/packages/flutter/lib/src/material/text_selection.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/text_selection.dart",
"repo_id": "flutter",
"token_count": 3803
} | 638 |
// Copyright 2014 The Flutter Authors. 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/painting.dart';
import 'color_scheme.dart';
import 'colors.dart';
import 'text_theme.dar... | flutter/packages/flutter/lib/src/material/typography.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/typography.dart",
"repo_id": "flutter",
"token_count": 20861
} | 639 |
// Copyright 2014 The Flutter Authors. 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 Color, lerpDouble;
import 'package:flutter/foundation.dart';
double _getHue(double red, double green, d... | flutter/packages/flutter/lib/src/painting/colors.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/colors.dart",
"repo_id": "flutter",
"token_count": 6412
} | 640 |
// Copyright 2014 The Flutter Authors. 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 'basic_types.dart';
import 'borders.dart';
import 'edge_insets.dart';
... | flutter/packages/flutter/lib/src/painting/linear_border.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/linear_border.dart",
"repo_id": "flutter",
"token_count": 4775
} | 641 |
// Copyright 2014 The Flutter Authors. 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 'simulation.dart';
export 'simulation.dart' show Simulation;
/// A simulation that applies limits to an... | flutter/packages/flutter/lib/src/physics/clamped_simulation.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/physics/clamped_simulation.dart",
"repo_id": "flutter",
"token_count": 735
} | 642 |
// Copyright 2014 The Flutter Authors. 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 Paragraph, ParagraphBuilder, ParagraphConstraints, ParagraphStyle, TextStyle;
import 'package:flutter/foundation.dart';
impor... | flutter/packages/flutter/lib/src/rendering/error.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/error.dart",
"repo_id": "flutter",
"token_count": 2009
} | 643 |
// Copyright 2014 The Flutter Authors. 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:vector_math/vector_math_64.dart';
import 'layer.dart';
import 'object.dart';
/// The result aft... | flutter/packages/flutter/lib/src/rendering/selection.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/selection.dart",
"repo_id": "flutter",
"token_count": 7946
} | 644 |
// Copyright 2014 The Flutter Authors. 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/animation.dart';
import 'package:flutter/painting.dart';
/// An interpolation between two fractional offsets.
///
/// This class s... | flutter/packages/flutter/lib/src/rendering/tweens.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/tweens.dart",
"repo_id": "flutter",
"token_count": 749
} | 645 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'binding.dart';
/// Stand-in for non-web platforms' [BackgroundIsolateBinaryMessenger].
class BackgroundIsolateBinaryMessenger {
/// Throws an [U... | flutter/packages/flutter/lib/src/services/_background_isolate_binary_messenger_web.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/_background_isolate_binary_messenger_web.dart",
"repo_id": "flutter",
"token_count": 124
} | 646 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and
// should not be edited directly... | flutter/packages/flutter/lib/src/services/keyboard_maps.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/keyboard_maps.g.dart",
"repo_id": "flutter",
"token_count": 48168
} | 647 |
// Copyright 2014 The Flutter Authors. 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 'keyboard_maps.g.dart';
import 'raw_keyboard.dart';
export 'package:flutter/foundation.dart' show Diagno... | flutter/packages/flutter/lib/src/services/raw_keyboard_windows.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/raw_keyboard_windows.dart",
"repo_id": "flutter",
"token_count": 4103
} | 648 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'framework.dart';
import 'platform_view.dart';
/// The platform-specific implementation of [HtmlElementView].
extension HtmlElementViewImpl on Html... | flutter/packages/flutter/lib/src/widgets/_html_element_view_io.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/_html_element_view_io.dart",
"repo_id": "flutter",
"token_count": 310
} | 649 |
// Copyright 2014 The Flutter Authors. 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 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
import '... | flutter/packages/flutter/lib/src/widgets/automatic_keep_alive.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/automatic_keep_alive.dart",
"repo_id": "flutter",
"token_count": 5407
} | 650 |
// Copyright 2014 The Flutter Authors. 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 DisplayFeature, DisplayFeatureState;
import 'basic.dart';
import 'debug.dart';
import 'framework.dart';
... | flutter/packages/flutter/lib/src/widgets/display_feature_sub_screen.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/display_feature_sub_screen.dart",
"repo_id": "flutter",
"token_count": 3583
} | 651 |
// Copyright 2014 The Flutter Authors. 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';
/// A description of an icon fulfilled by a font glyph.
///
/// See [Icons] for a number of predefined icons ava... | flutter/packages/flutter/lib/src/widgets/icon_data.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/icon_data.dart",
"repo_id": "flutter",
"token_count": 1407
} | 652 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/rendering.dart';
import 'basic.dart';
import 'container.dart';... | flutter/packages/flutter/lib/src/widgets/magnifier.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/magnifier.dart",
"repo_id": "flutter",
"token_count": 7120
} | 653 |
// Copyright 2014 The Flutter Authors. 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 'basic.dart';
import 'framework.dart';
class _PlaceholderPainter extends CustomPainter {
const _Placeh... | flutter/packages/flutter/lib/src/widgets/placeholder.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/placeholder.dart",
"repo_id": "flutter",
"token_count": 1091
} | 654 |
// Copyright 2014 The Flutter Authors. 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/rendering.dart';
import 'package:flutter/services... | flutter/packages/flutter/lib/src/widgets/scroll_configuration.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/scroll_configuration.dart",
"repo_id": "flutter",
"token_count": 4712
} | 655 |
// Copyright 2014 The Flutter Authors. 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/rendering.dart';
import 'framework.dart';
/// A container that handles [SelectionEvent]s for the [Selectable]s in
/// the subtree... | flutter/packages/flutter/lib/src/widgets/selection_container.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/selection_container.dart",
"repo_id": "flutter",
"token_count": 3315
} | 656 |
// Copyright 2014 The Flutter Authors. 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/painting.dart';
import 'package:flutter/services.dart'
show SpellCheckResults, SpellC... | flutter/packages/flutter/lib/src/widgets/spell_check.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/spell_check.dart",
"repo_id": "flutter",
"token_count": 5512
} | 657 |
// Copyright 2014 The Flutter Authors. 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 'package:flutter/services.dart';
import 'actions.dart';
import 'focus_manager.dart'... | flutter/packages/flutter/lib/src/widgets/undo_history.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/undo_history.dart",
"repo_id": "flutter",
"token_count": 4751
} | 658 |
// Copyright 2014 The Flutter Authors. 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/animation.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('Disposing controller removes listeners to... | flutter/packages/flutter/test/animation/animation_controller_listener_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/animation/animation_controller_listener_test.dart",
"repo_id": "flutter",
"token_count": 459
} | 659 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/renderin... | flutter/packages/flutter/test/cupertino/app_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/app_test.dart",
"repo_id": "flutter",
"token_count": 8453
} | 660 |
// Copyright 2014 The Flutter Authors. 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_test/flutter_test.dart';
void main() {
testWidgets('shows title', (WidgetTester tester)... | flutter/packages/flutter/test/cupertino/list_tile_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/list_tile_test.dart",
"repo_id": "flutter",
"token_count": 7663
} | 661 |
// Copyright 2014 The Flutter 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 run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags(<String>['reduced-test-set'])
library;
import 'dart:ui' as u... | flutter/packages/flutter/test/cupertino/segmented_control_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/segmented_control_test.dart",
"repo_id": "flutter",
"token_count": 23437
} | 662 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@TestOn('browser')
library;
import 'package:flutter_test/flutter_test.dart';
// Regression test for: https://github.com/dart-lang/sdk/issues/47207
// Nee... | flutter/packages/flutter/test/dart/browser_environment_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/dart/browser_environment_test.dart",
"repo_id": "flutter",
"token_count": 236
} | 663 |
// Copyright 2014 The Flutter Authors. 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/src/foundation/collections.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('list... | flutter/packages/flutter/test/foundation/collections_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/collections_test.dart",
"repo_id": "flutter",
"token_count": 2674
} | 664 |
// Copyright 2014 The Flutter Authors. 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_test/flutter_test.dart';
class TestFoundationFlutterBinding extends BindingBase {
bool... | flutter/packages/flutter/test/foundation/reassemble_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/reassemble_test.dart",
"repo_id": "flutter",
"token_count": 215
} | 665 |
// Copyright 2014 The Flutter Authors. 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;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
class TestResult {
bool dragStarted = ... | flutter/packages/flutter/test/gestures/gesture_config_regression_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/gesture_config_regression_test.dart",
"repo_id": "flutter",
"token_count": 2059
} | 666 |
// Copyright 2014 The Flutter Authors. 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_test/flutter_test.dart';
import 'gesture_tester.... | flutter/packages/flutter/test/gestures/tap_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/tap_test.dart",
"repo_id": "flutter",
"token_count": 13444
} | 667 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@Tags(<String>['reduced-test-set'])
library;
import 'dart:math' as math show pi;
import 'package:flutter/material.dart';
import 'package:flutter_test/flu... | flutter/packages/flutter/test/material/animated_icons_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/animated_icons_test.dart",
"repo_id": "flutter",
"token_count": 4258
} | 668 |
// Copyright 2014 The Flutter 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 run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags(<String>['reduced-test-set'])
library;
import 'dart:math';
i... | flutter/packages/flutter/test/material/bottom_navigation_bar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/bottom_navigation_bar_test.dart",
"repo_id": "flutter",
"token_count": 54324
} | 669 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
RenderBox getMaterialBox(WidgetTester tester, Finder type) {
re... | flutter/packages/flutter/test/material/choice_chip_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/choice_chip_test.dart",
"repo_id": "flutter",
"token_count": 9932
} | 670 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('Di... | flutter/packages/flutter/test/material/divider_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/divider_theme_test.dart",
"repo_id": "flutter",
"token_count": 5148
} | 671 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
/// Tracks how often feedback has been requested since its instan... | flutter/packages/flutter/test/material/feedback_tester.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/feedback_tester.dart",
"repo_id": "flutter",
"token_count": 461
} | 672 |
// Copyright 2014 The Flutter 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 run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags(<String>['reduced-test-set'])
library;
import 'package:flutt... | flutter/packages/flutter/test/material/ink_paint_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/ink_paint_test.dart",
"repo_id": "flutter",
"token_count": 12757
} | 673 |
// Copyright 2014 The Flutter Authors. 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/packages/flutter/test/material/menu_anchor_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/menu_anchor_test.dart",
"repo_id": "flutter",
"token_count": 64260
} | 674 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/renderin... | flutter/packages/flutter/test/material/page_transitions_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/page_transitions_theme_test.dart",
"repo_id": "flutter",
"token_count": 6021
} | 675 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/8516... | flutter/packages/flutter/test/material/scrollbar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/scrollbar_test.dart",
"repo_id": "flutter",
"token_count": 28297
} | 676 |
// Copyright 2014 The Flutter Authors. 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.... | flutter/packages/flutter/test/material/switch_list_tile_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/switch_list_tile_test.dart",
"repo_id": "flutter",
"token_count": 24214
} | 677 |
// Copyright 2014 The Flutter Authors. 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'packa... | flutter/packages/flutter/test/material/text_form_field_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/text_form_field_test.dart",
"repo_id": "flutter",
"token_count": 20922
} | 678 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.