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';
/// Flutter code sample for [WidgetsApp].
void main() => runApp(const WidgetsAppExampleApp());
class WidgetsAppE... | flutter/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart",
"repo_id": "flutter",
"token_count": 286
} | 571 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [CustomMultiChildLayout].
void main() => runApp(const CustomMultiChildLayoutApp());
... | flutter/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart",
"repo_id": "flutter",
"token_count": 1425
} | 572 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [ColorFiltered].
void main() => runApp(const ColorFilteredExampleApp());
class Color... | flutter/examples/api/lib/widgets/color_filter/color_filtered.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/color_filter/color_filtered.0.dart",
"repo_id": "flutter",
"token_count": 643
} | 573 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Form].
void main() => runApp(const FormExampleApp());
class FormExampleApp extends ... | flutter/examples/api/lib/widgets/form/form.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/form/form.0.dart",
"repo_id": "flutter",
"token_count": 830
} | 574 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [AnimatedPadding].
void main() => runApp(const AnimatedPaddingExampleApp());
class A... | flutter/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart",
"repo_id": "flutter",
"token_count": 691
} | 575 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Navigator.restorablePushAndRemoveUntil].
void main() => runApp(const RestorablePushA... | flutter/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart",
"repo_id": "flutter",
"token_count": 542
} | 576 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [GlowingOverscrollIndicator].
void main() => runApp(const GlowingOverscrollIndicatorE... | flutter/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart",
"repo_id": "flutter",
"token_count": 646
} | 577 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [CustomScrollView].
void main() => runApp(const CustomScrollViewExampleApp());
class... | flutter/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart",
"repo_id": "flutter",
"token_count": 1123
} | 578 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [SingleActivator.SingleActivator].
void main(... | flutter/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart",
"repo_id": "flutter",
"token_count": 712
} | 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/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(const TextMagnifierExampleApp(text: 'Hello world!'... | flutter/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart",
"repo_id": "flutter",
"token_count": 1663
} | 580 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SizeTransition].
void main() => runApp(const SizeTransitionExampleApp());
class Siz... | flutter/examples/api/lib/widgets/transitions/size_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/size_transition.0.dart",
"repo_id": "flutter",
"token_count": 522
} | 581 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/api/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/examples/api/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/dialog/cupertino_alert_dialog.0.dart' as example;
import 'package:fl... | flutter/examples/api/test/cupertino/dialog/cupertino_alert_dialog.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/dialog/cupertino_alert_dialog.0_test.dart",
"repo_id": "flutter",
"token_count": 332
} | 583 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter_api_samples/cupertino/search_field/cupertino_search_field.1.dart' as example;
import 'pack... | flutter/examples/api/test/cupertino/search_field/cupertino_search_field.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/search_field/cupertino_search_field.1_test.dart",
"repo_id": "flutter",
"token_count": 364
} | 584 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/animated_icon/animated_icons_data.0.dart'
as example;
import 'pack... | flutter/examples/api/test/material/animated_icon/animated_icons_data.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/animated_icon/animated_icons_data.0_test.dart",
"repo_id": "flutter",
"token_count": 443
} | 585 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.0.dart' as example;
import 'packa... | flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart",
"repo_id": "flutter",
"token_count": 340
} | 586 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.... | flutter/examples/api/test/material/context_menu/context_menu_controller.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/context_menu/context_menu_controller.0_test.dart",
"repo_id": "flutter",
"token_count": 559
} | 587 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/filled_button/filled_button.0.dart' as example;
import 'package:flutte... | flutter/examples/api/test/material/filled_button/filled_button.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/filled_button/filled_button.0_test.dart",
"repo_id": "flutter",
"token_count": 388
} | 588 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/input_decorator/input_decoration.prefix_icon.0.dart' as example;
impor... | flutter/examples/api/test/material/input_decorator/input_decoration.prefix_icon.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/input_decorator/input_decoration.prefix_icon.0_test.dart",
"repo_id": "flutter",
"token_count": 206
} | 589 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/navigation_bar/navigation_bar.0.dart'
as example;
import 'package:... | flutter/examples/api/test/material/navigation_bar/navigation_bar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/navigation_bar/navigation_bar.0_test.dart",
"repo_id": "flutter",
"token_count": 627
} | 590 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_api_samples/material/progress_indicator/linear_progress_indicator.0.dart'
as example;
import 'package:flutter_test/flutter_test... | flutter/examples/api/test/material/progress_indicator/linear_progress_indicator.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/progress_indicator/linear_progress_indicator.0_test.dart",
"repo_id": "flutter",
"token_count": 253
} | 591 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/scaffold/scaffold_messenger_state.show_snack_bar.2.dart' as example;
i... | flutter/examples/api/test/material/scaffold/scaffold_messenger_state.show_snack_bar.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/scaffold/scaffold_messenger_state.show_snack_bar.2_test.dart",
"repo_id": "flutter",
"token_count": 1082
} | 592 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/switch/switch.4.dart' as example;
import 'package:flutter_test/flutter... | flutter/examples/api/test/material/switch/switch.4_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/switch/switch.4_test.dart",
"repo_id": "flutter",
"token_count": 781
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/tooltip/tooltip.1.dart' as exa... | flutter/examples/api/test/material/tooltip/tooltip.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/tooltip/tooltip.1_test.dart",
"repo_id": "flutter",
"token_count": 596
} | 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/services.dart';
import 'package:flutter_api_samples/services/keyboard_key/physical_keyboard_key.0.dart' as example;
import 'package... | flutter/examples/api/test/services/keyboard_key/physical_keyboard_key.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/services/keyboard_key/physical_keyboard_key.0_test.dart",
"repo_id": "flutter",
"token_count": 368
} | 595 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/animated_grid/animated_grid.0.dart'
as example;
import 'package:flu... | flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart",
"repo_id": "flutter",
"token_count": 486
} | 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/widgets/basic/flow.0.dart' as example;
import 'package:flutter_test/flutter_tes... | flutter/examples/api/test/widgets/basic/flow.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/flow.0_test.dart",
"repo_id": "flutter",
"token_count": 466
} | 597 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/form/form.1.dart' as example;
import 'package:flutter_test/flutter_test... | flutter/examples/api/test/widgets/form/form.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/form/form.1_test.dart",
"repo_id": "flutter",
"token_count": 384
} | 598 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/page_view/page_view.1.dart'
as example;
import 'package:flutter_tes... | flutter/examples/api/test/widgets/page_view/page_view.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/page_view/page_view.1_test.dart",
"repo_id": "flutter",
"token_count": 403
} | 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/widgets/sliver/sliver_opacity.1.dart'
as example;
import 'package:flutter_t... | flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart",
"repo_id": "flutter",
"token_count": 289
} | 600 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/hello_world/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/examples/hello_world/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 601 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/image_list/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "flutter/examples/image_list/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 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/widgets.dart';
class LifecycleWatcher extends StatefulWidget {
const LifecycleWatcher({ super.key });
@override
State<Lifec... | flutter/examples/layers/services/lifecycle.dart/0 | {
"file_path": "flutter/examples/layers/services/lifecycle.dart",
"repo_id": "flutter",
"token_count": 483
} | 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/widgets.dart';
class SpinningSquare extends StatefulWidget {
const SpinningSquare({super.key});
@override
State<SpinningSqu... | flutter/examples/layers/widgets/spinning_square.dart/0 | {
"file_path": "flutter/examples/layers/widgets/spinning_square.dart",
"repo_id": "flutter",
"token_count": 396
} | 604 |
# Example of calling platform services from Flutter
This project demonstrates how to connect a Flutter app to platform-specific services.
You can read more about
[accessing platform and third-party services in Flutter](https://flutter.dev/platform-channels/).
## iOS
You can use the commands `flutter build` and `flut... | flutter/examples/platform_channel/README.md/0 | {
"file_path": "flutter/examples/platform_channel/README.md",
"repo_id": "flutter",
"token_count": 243
} | 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.
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#include <math.h>
#include <upower.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
... | flutter/examples/platform_channel/linux/my_application.cc/0 | {
"file_path": "flutter/examples/platform_channel/linux/my_application.cc",
"repo_id": "flutter",
"token_count": 4521
} | 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 UIKit
import Flutter
enum ChannelName {
static let battery = "samples.flutter.io/battery"
static let charging = "samples.flutter.io/charging"
}... | flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift/0 | {
"file_path": "flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift",
"repo_id": "flutter",
"token_count": 1275
} | 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. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="... | flutter/examples/platform_view/android/app/src/main/res/layout/android_full_screen_layout.xml/0 | {
"file_path": "flutter/examples/platform_view/android/app/src/main/res/layout/android_full_screen_layout.xml",
"repo_id": "flutter",
"token_count": 1553
} | 608 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class TexturePage extends StatefulWidget {
const TexturePage({super.key}... | flutter/examples/texture/lib/main.dart/0 | {
"file_path": "flutter/examples/texture/lib/main.dart",
"repo_id": "flutter",
"token_count": 1574
} | 609 |
tags:
# This tag tells the test framework to run these tagged files as part of a
# reduced test set.
reduced-test-set:
# This tag tells the test framework to not shuffle the test order according to
# the --test-randomize-ordering-seed for the suites that have this tag.
no-shuffle:
allow_test_randomizati... | flutter/packages/flutter/dart_test.yaml/0 | {
"file_path": "flutter/packages/flutter/dart_test.yaml",
"repo_id": "flutter",
"token_count": 93
} | 610 |
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# For details regarding the *Flutter Fix* feature, see
# https://flutter.dev/docs/development/tools/flutter-fix
# Please add new fixes to the top of the file... | flutter/packages/flutter/lib/fix_data/fix_rendering.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_rendering.yaml",
"repo_id": "flutter",
"token_count": 2110
} | 611 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Simple one-dimensional physics simulations, such as springs, friction, and
/// gravity, for use in user interface animations.
///
/// To use, import `p... | flutter/packages/flutter/lib/physics.dart/0 | {
"file_path": "flutter/packages/flutter/lib/physics.dart",
"repo_id": "flutter",
"token_count": 201
} | 612 |
// Copyright 2014 The Flutter Authors. 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 ImageFilter;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'colors.dart';
import 'localiz... | flutter/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart",
"repo_id": "flutter",
"token_count": 3967
} | 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.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/physics.dart';
impor... | flutter/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart",
"repo_id": "flutter",
"token_count": 13873
} | 614 |
// Copyright 2014 The Flutter Authors. 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:io implementation of [bitfield.kMaxUnsignedSMI].
const int kMaxUnsignedSMI = 0x3FFFFFFFFFFFFFFF; // ignor... | flutter/packages/flutter/lib/src/foundation/_bitfield_io.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/_bitfield_io.dart",
"repo_id": "flutter",
"token_count": 572
} | 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 'dart:ui' show VoidCallback;
import 'package:meta/meta.dart';
import 'assertions.dart';
import 'diagnostics.dart';
import 'memory_allocations.dart... | flutter/packages/flutter/lib/src/foundation/change_notifier.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/change_notifier.dart",
"repo_id": "flutter",
"token_count": 6685
} | 616 |
// Copyright 2014 The Flutter Authors. 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/foundation.dart';
export 'dart:ui' show FlutterView;
/// The device specific gesture settings scaled int... | flutter/packages/flutter/lib/src/gestures/gesture_settings.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/gesture_settings.dart",
"repo_id": "flutter",
"token_count": 533
} | 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.
import 'dart:developer' show Flow, Timeline;
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart';
import 'package:flutter/scheduler.d... | flutter/packages/flutter/lib/src/material/about.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/about.dart",
"repo_id": "flutter",
"token_count": 18636
} | 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.
// 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_close.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart",
"repo_id": "flutter",
"token_count": 29428
} | 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 'bottom_app_bar_theme.dart';
import 'color_scheme.dart';
import 'c... | flutter/packages/flutter/lib/src/material/bottom_app_bar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/bottom_app_bar.dart",
"repo_id": "flutter",
"token_count": 3658
} | 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/widgets.dart';
import 'checkbox.dart';
import 'checkbox_theme.dart';
import 'list_tile.dart';
import 'list_tile_theme.dart';
impor... | flutter/packages/flutter/lib/src/material/checkbox_list_tile.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/checkbox_list_tile.dart",
"repo_id": "flutter",
"token_count": 6456
} | 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/widgets.dart';
import 'material.dart';
import 'material_localizations.dart';
import 'scaffold.dart' show Scaffold, ScaffoldMesseng... | flutter/packages/flutter/lib/src/material/debug.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/debug.dart",
"repo_id": "flutter",
"token_count": 2315
} | 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 'dart:math' as math;
import 'package:flutter/widgets.dart';
import 'colors.dart';
import 'theme.dart';
/// A utility class for dealing with the o... | flutter/packages/flutter/lib/src/material/elevation_overlay.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/elevation_overlay.dart",
"repo_id": "flutter",
"token_count": 2372
} | 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.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
imp... | flutter/packages/flutter/lib/src/material/icon_button.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/icon_button.dart",
"repo_id": "flutter",
"token_count": 18949
} | 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.
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'constants.dart';
import ... | flutter/packages/flutter/lib/src/material/material.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/material.dart",
"repo_id": "flutter",
"token_count": 11553
} | 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 'dart:ui';
import 'package:flutter/widgets.dart';
import 'color_scheme.dart';
import 'ink_well.dart';
import 'material.dart';
import 'material_loc... | flutter/packages/flutter/lib/src/material/navigation_rail.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/navigation_rail.dart",
"repo_id": "flutter",
"token_count": 15524
} | 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 'dart:async';
import 'dart:math' as math;
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart' show clampDouble;
impo... | flutter/packages/flutter/lib/src/material/refresh_indicator.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/refresh_indicator.dart",
"repo_id": "flutter",
"token_count": 8673
} | 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.
import 'dart:math' as math;
import 'dart:ui' show Path, lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
imp... | flutter/packages/flutter/lib/src/material/slider_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/slider_theme.dart",
"repo_id": "flutter",
"token_count": 44867
} | 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' as ui show BoxHeightStyle, BoxWidthStyle;
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'package... | flutter/packages/flutter/lib/src/material/text_form_field.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/text_form_field.dart",
"repo_id": "flutter",
"token_count": 5658
} | 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 'package:flutter/widgets.dart';
class _TooltipVisibilityScope extends InheritedWidget {
const _TooltipVisibilityScope({
required super.child,... | flutter/packages/flutter/lib/src/material/tooltip_visibility.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/tooltip_visibility.dart",
"repo_id": "flutter",
"token_count": 541
} | 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 'dart:ui' show Canvas, Clip, Paint, Path, RRect, Rect, VoidCallback;
/// Clip utilities used by [PaintingContext].
abstract class ClipContext {
/... | flutter/packages/flutter/lib/src/painting/clip.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/clip.dart",
"repo_id": "flutter",
"token_count": 744
} | 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:ui' as ui show ParagraphBuilder, StringAttribute;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import '... | flutter/packages/flutter/lib/src/painting/inline_span.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/inline_span.dart",
"repo_id": "flutter",
"token_count": 4594
} | 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 'dart:collection';
import 'dart:ui' as ui show
ParagraphStyle,
StrutStyle,
TextStyle,
lerpDouble;
import 'package:flutter/foundation.dart';... | flutter/packages/flutter/lib/src/painting/text_style.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/text_style.dart",
"repo_id": "flutter",
"token_count": 23267
} | 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:collection';
import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, LineMetrics, PlaceholderAlignment, TextBox... | flutter/packages/flutter/lib/src/rendering/editable.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/editable.dart",
"repo_id": "flutter",
"token_count": 38676
} | 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:math' as math;
import 'package:flutter/foundation.dart';
import 'package:vector_math/vector_math_64.dart';
import 'box.dart';
import 'layer.... | flutter/packages/flutter/lib/src/rendering/rotated_box.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/rotated_box.dart",
"repo_id": "flutter",
"token_count": 1571
} | 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 'package:flutter/foundation.dart';
import 'box.dart';
import 'layer.dart';
import 'object.dart';
/// A rectangle upon which a backend texture is m... | flutter/packages/flutter/lib/src/rendering/texture.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/texture.dart",
"repo_id": "flutter",
"token_count": 1012
} | 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 'dart:async' show Completer;
import 'dart:isolate' show ReceivePort;
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'bina... | flutter/packages/flutter/lib/src/services/_background_isolate_binary_messenger_io.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/_background_isolate_binary_messenger_io.dart",
"repo_id": "flutter",
"token_count": 1216
} | 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 'package:flutter/foundation.dart';
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
// DO NOT EDIT -- DO NOT EDIT -- DO ... | flutter/packages/flutter/lib/src/services/keyboard_key.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/keyboard_key.g.dart",
"repo_id": "flutter",
"token_count": 74244
} | 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 'keyboard_maps.g.dart';
import 'raw_keyboard.dart';
export 'package:flutter/foundation.dart' show Diagno... | flutter/packages/flutter/lib/src/services/raw_keyboard_web.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/raw_keyboard_web.dart",
"repo_id": "flutter",
"token_count": 3023
} | 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.
// This code is copied from `package:web` which still needs its own
// documentation for public members. Since this is a shim that users should not
// use,... | flutter/packages/flutter/lib/src/web.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/web.dart",
"repo_id": "flutter",
"token_count": 1210
} | 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 'package:flutter/services.dart';
import 'framework.dart';
export 'package:flutter/services.dart' show AutofillHints;
/// Predefined autofill conte... | flutter/packages/flutter/lib/src/widgets/autofill.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/autofill.dart",
"repo_id": "flutter",
"token_count": 2995
} | 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/gestures.dart';
import 'automatic_keep_alive.dart';
import 'basic.dart';
import 'debug.dart';
import 'framework.dart';
import 'ges... | flutter/packages/flutter/lib/src/widgets/dismissible.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/dismissible.dart",
"repo_id": "flutter",
"token_count": 8591
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'basic.dart';
import 'debug.dart';
import 'framework.dart';
impo... | flutter/packages/flutter/lib/src/widgets/icon.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/icon.dart",
"repo_id": "flutter",
"token_count": 4132
} | 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 'framework.dart';
// Examples can assume:
// class MyWidget extends StatelessWidget { const MyWidget({super.key, required this.child}); final Widge... | flutter/packages/flutter/lib/src/widgets/lookup_boundary.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/lookup_boundary.dart",
"repo_id": "flutter",
"token_count": 4308
} | 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/rendering.dart';
import 'framework.dart';
/// Displays performance statistics.
///
/// The overlay shows two time series. The fir... | flutter/packages/flutter/lib/src/widgets/performance_overlay.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/performance_overlay.dart",
"repo_id": "flutter",
"token_count": 1534
} | 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 'dart:async';
import 'package:flutter/painting.dart';
import 'package:flutter/scheduler.dart';
import 'disposable_build_context.dart';
import 'fra... | flutter/packages/flutter/lib/src/widgets/scroll_aware_image_provider.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/scroll_aware_image_provider.dart",
"repo_id": "flutter",
"token_count": 1437
} | 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.
import 'dart:async';
import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/renderi... | flutter/packages/flutter/lib/src/widgets/selectable_region.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/selectable_region.dart",
"repo_id": "flutter",
"token_count": 34163
} | 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 'basic.dart';
import 'framework.dart';
/// Spacer creates an adjustable, empty spacer that can be used to tune the
/// spacing between widgets in a... | flutter/packages/flutter/lib/src/widgets/spacer.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/spacer.dart",
"repo_id": "flutter",
"token_count": 661
} | 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 'dart:math' as math;
import 'package:flutter/animation.dart';
import 'package:flutter/rendering.dart';
import 'framework.dart';
import 'scroll_del... | flutter/packages/flutter/lib/src/widgets/two_dimensional_viewport.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/two_dimensional_viewport.dart",
"repo_id": "flutter",
"token_count": 22094
} | 649 |
include: ../analysis_options.yaml
linter:
rules:
# Tests try to throw and catch things in exciting ways all the time, so
# we disable these lints for the tests.
only_throw_errors: false
avoid_catches_without_on_clauses: false
avoid_catching_errors: false
| flutter/packages/flutter/test/analysis_options.yaml/0 | {
"file_path": "flutter/packages/flutter/test/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 94
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flu... | flutter/packages/flutter/test/cupertino/adaptive_text_selection_toolbar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/adaptive_text_selection_toolbar_test.dart",
"repo_id": "flutter",
"token_count": 4101
} | 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/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('shows header', (WidgetTester tester... | flutter/packages/flutter/test/cupertino/list_section_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/list_section_test.dart",
"repo_id": "flutter",
"token_count": 3565
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets(
'default search field has a bor... | flutter/packages/flutter/test/cupertino/search_field_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/search_field_test.dart",
"repo_id": "flutter",
"token_count": 8296
} | 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
int buildCount = 0;
Cu... | flutter/packages/flutter/test/cupertino/theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/theme_test.dart",
"repo_id": "flutter",
"token_count": 3650
} | 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_test/flutter_test.dart';
class TestNotifier extends ChangeNotifier {
void notify() {
... | flutter/packages/flutter/test/foundation/change_notifier_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/change_notifier_test.dart",
"repo_id": "flutter",
"token_count": 6424
} | 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:fake_async/fake_async.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'capture_ou... | flutter/packages/flutter/test/foundation/print_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/print_test.dart",
"repo_id": "flutter",
"token_count": 789
} | 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 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/scheduler.dart';
import ... | flutter/packages/flutter/test/gestures/gesture_binding_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/gesture_binding_test.dart",
"repo_id": "flutter",
"token_count": 7899
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter_test/flutter_test.dart';
import '../gestures/ges... | flutter/packages/flutter/test/gestures/tap_and_drag_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/tap_and_drag_test.dart",
"repo_id": "flutter",
"token_count": 11852
} | 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services... | flutter/packages/flutter/test/material/adaptive_text_selection_toolbar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/adaptive_text_selection_toolbar_test.dart",
"repo_id": "flutter",
"token_count": 7108
} | 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.
// 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/bottom_app_bar_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/bottom_app_bar_theme_test.dart",
"repo_id": "flutter",
"token_count": 3655
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutt... | flutter/packages/flutter/test/material/chip_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/chip_theme_test.dart",
"repo_id": "flutter",
"token_count": 21741
} | 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.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Material3 - Divider control test', (... | flutter/packages/flutter/test/material/divider_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/divider_test.dart",
"repo_id": "flutter",
"token_count": 2978
} | 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.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import '../widgets/semanti... | flutter/packages/flutter/test/material/feedback_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/feedback_test.dart",
"repo_id": "flutter",
"token_count": 2816
} | 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 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Theme.wrap()', (WidgetTester tester)... | flutter/packages/flutter/test/material/inherited_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/inherited_theme_test.dart",
"repo_id": "flutter",
"token_count": 12110
} | 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.
// 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/material_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/material_test.dart",
"repo_id": "flutter",
"token_count": 18667
} | 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.
@Tags(<String>['reduced-test-set'])
library;
import 'dart:ui' as ui;
import 'package:flutter/cupertino.dart' show CupertinoPageRoute;
import 'package:flu... | flutter/packages/flutter/test/material/page_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/page_test.dart",
"repo_id": "flutter",
"token_count": 19951
} | 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/material.dart';
import 'package:flutter_test/flutter_test.dart';
const Color _kAndroidThumbIdleColor = Color(0xffbcbcbc);
Widget ... | flutter/packages/flutter/test/material/scrollbar_paint_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/scrollbar_paint_test.dart",
"repo_id": "flutter",
"token_count": 2178
} | 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.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWid... | flutter/packages/flutter/test/material/stepper_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/stepper_test.dart",
"repo_id": "flutter",
"token_count": 25977
} | 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.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.d... | flutter/packages/flutter/test/material/tooltip_theme_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/tooltip_theme_test.dart",
"repo_id": "flutter",
"token_count": 23897
} | 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/painting.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('BoxDecoration.lerp identical a,b', () {
... | flutter/packages/flutter/test/painting/box_decoration_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/painting/box_decoration_test.dart",
"repo_id": "flutter",
"token_count": 1710
} | 670 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.