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/cupertino.dart';
/// Flutter code sample for [CupertinoNavigationBar].
void main() => runApp(const NavBarApp());
class NavBarApp... | flutter/examples/api/lib/cupertino/nav_bar/cupertino_navigation_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/nav_bar/cupertino_navigation_bar.0.dart",
"repo_id": "flutter",
"token_count": 526
} | 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/cupertino.dart';
/// Flutter code sample for [CupertinoSwitch].
void main() => runApp(const CupertinoSwitchApp());
class Cuperti... | flutter/examples/api/lib/cupertino/switch/cupertino_switch.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/switch/cupertino_switch.0.dart",
"repo_id": "flutter",
"token_count": 552
} | 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 [AppBar].
List<String> titles = <String>[
'Cloud',
'Beach',
'Sunny',
];
void m... | flutter/examples/api/lib/material/app_bar/app_bar.3.dart/0 | {
"file_path": "flutter/examples/api/lib/material/app_bar/app_bar.3.dart",
"repo_id": "flutter",
"token_count": 1673
} | 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 [BottomNavigationBar].
void main() => runApp(const BottomNavigationBarExampleApp());
... | flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart",
"repo_id": "flutter",
"token_count": 1324
} | 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 [DeletableChipAttributes.onDeleted].
void main() => runApp(const OnDeletedExampleApp(... | flutter/examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart",
"repo_id": "flutter",
"token_count": 798
} | 590 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [ElevatedButton].
void main() => runApp(const ElevatedButtonExampleApp());
class Ele... | flutter/examples/api/lib/material/elevated_button/elevated_button.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/elevated_button/elevated_button.0.dart",
"repo_id": "flutter",
"token_count": 576
} | 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 [IconButton] with toggle feature.
void main() {
runApp(const IconButtonToggleApp())... | flutter/examples/api/lib/material/icon_button/icon_button.3.dart/0 | {
"file_path": "flutter/examples/api/lib/material/icon_button/icon_button.3.dart",
"repo_id": "flutter",
"token_count": 2131
} | 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 [InputDecorator].
void main() => runApp(const PrefixIconExampleApp());
class PrefixI... | flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon.0.dart",
"repo_id": "flutter",
"token_count": 393
} | 593 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [CheckboxMenuButton].
void main() => runApp(c... | flutter/examples/api/lib/material/menu_anchor/checkbox_menu_button.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/menu_anchor/checkbox_menu_button.0.dart",
"repo_id": "flutter",
"token_count": 1472
} | 594 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [PageTransitionsTheme].
void main() => runApp(const PageTransitionsThemeApp());
clas... | flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.1.dart",
"repo_id": "flutter",
"token_count": 739
} | 595 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [RadioListTile].
void main() => runApp(const RadioListTileApp());
class RadioListTil... | flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.1.dart",
"repo_id": "flutter",
"token_count": 1092
} | 596 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SearchBar].
void main() => runApp(const SearchBarApp());
class SearchBarApp extends... | flutter/examples/api/lib/material/search_anchor/search_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/search_anchor/search_bar.0.dart",
"repo_id": "flutter",
"token_count": 1232
} | 597 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Switch].
void main() => runApp(const SwitchApp());
class SwitchApp extends Stateles... | flutter/examples/api/lib/material/switch/switch.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/switch/switch.0.dart",
"repo_id": "flutter",
"token_count": 441
} | 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';
/// Flutter code sample for [TextField].
void main() => runApp(const TextFieldExampleApp());
class TextFieldExam... | flutter/examples/api/lib/material/text_field/text_field.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/text_field/text_field.1.dart",
"repo_id": "flutter",
"token_count": 801
} | 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';
/// Examples for [LinearBorder] and [LinearBorderEdge].
void main() {
runApp(const ExampleApp());
}
class Exam... | flutter/examples/api/lib/painting/linear_border/linear_border.0.dart/0 | {
"file_path": "flutter/examples/api/lib/painting/linear_border/linear_border.0.dart",
"repo_id": "flutter",
"token_count": 6223
} | 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/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [Tex... | flutter/examples/api/lib/services/text_input/text_input_control.0.dart/0 | {
"file_path": "flutter/examples/api/lib/services/text_input/text_input_control.0.dart",
"repo_id": "flutter",
"token_count": 1697
} | 601 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SliverAnimatedGrid].
void main() => runApp(const SliverAnimatedGridSample());
class... | flutter/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart",
"repo_id": "flutter",
"token_count": 2875
} | 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';
/// Flutter code sample for [AspectRatio].
void main() => runApp(const AspectRatioApp());
class AspectRatioApp e... | flutter/examples/api/lib/widgets/basic/aspect_ratio.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/aspect_ratio.0.dart",
"repo_id": "flutter",
"token_count": 389
} | 603 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [MouseRegion.onExit].
void main() => runApp(const MouseRegionApp());
class MouseRegi... | flutter/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart",
"repo_id": "flutter",
"token_count": 1377
} | 604 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Focus].
void main() => runApp(const FocusExampleApp());
class FocusExampleApp exten... | flutter/examples/api/lib/widgets/focus_scope/focus.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/focus_scope/focus.1.dart",
"repo_id": "flutter",
"token_count": 735
} | 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';
/// Flutter code sample for [Image.frameBuilder].
void main() => runApp(const FrameBuilderExampleApp());
class F... | flutter/examples/api/lib/widgets/image/image.frame_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/image/image.frame_builder.0.dart",
"repo_id": "flutter",
"token_count": 535
} | 606 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [LayoutBuilder].
void main() => runApp(const LayoutBuilderExampleApp());
class Layou... | flutter/examples/api/lib/widgets/layout_builder/layout_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/layout_builder/layout_builder.0.dart",
"repo_id": "flutter",
"token_count": 691
} | 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';
/// Flutter code sample for [NestedScrollViewState].
void main() => runApp(const NestedScrollViewStateExampleApp(... | flutter/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart",
"repo_id": "flutter",
"token_count": 435
} | 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';
/// Flutter code sample for [showGeneralDialog].
void main() => runApp(const GeneralDialogApp());
class GeneralD... | flutter/examples/api/lib/widgets/routes/show_general_dialog.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/routes/show_general_dialog.0.dart",
"repo_id": "flutter",
"token_count": 494
} | 609 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [CallbackShortcuts].
void main() => runApp(co... | flutter/examples/api/lib/widgets/shortcuts/callback_shortcuts.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/shortcuts/callback_shortcuts.0.dart",
"repo_id": "flutter",
"token_count": 637
} | 610 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [SliverFillRemaining].
void main() => runApp(const SliverFillRemainingExampleApp());
... | flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart",
"repo_id": "flutter",
"token_count": 988
} | 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.
import 'dart:math';
import 'package:flutter/material.dart';
/// Flutter code sample for [MatrixTransition].
void main() => runApp(const MatrixTransition... | flutter/examples/api/lib/widgets/transitions/matrix_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/matrix_transition.0.dart",
"repo_id": "flutter",
"token_count": 701
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter_api_samples/cupertino/route/show_cupertino_dialog.0.dart' as example;
import 'package:flut... | flutter/examples/api/test/cupertino/route/show_cupertino_dialog.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/route/show_cupertino_dialog.0_test.dart",
"repo_id": "flutter",
"token_count": 299
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/autocomplete/autocomplete.3.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/material/autocomplete/autocomplete.3_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/autocomplete/autocomplete.3_test.dart",
"repo_id": "flutter",
"token_count": 1508
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.1.dart' as example;
import ... | flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart",
"repo_id": "flutter",
"token_count": 328
} | 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';
import 'package:flutter_api_samples/material/elevated_button/elevated_button.0.dart' as example;
import 'package:fl... | flutter/examples/api/test/material/elevated_button/elevated_button.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/elevated_button/elevated_button.0_test.dart",
"repo_id": "flutter",
"token_count": 331
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/input_chip/input_chip.0.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/input_chip/input_chip.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/input_chip/input_chip.0_test.dart",
"repo_id": "flutter",
"token_count": 412
} | 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 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_api_samples/material/menu_anchor/menu_accelerator_l... | flutter/examples/api/test/material/menu_anchor/menu_accelerator_label.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/menu_anchor/menu_accelerator_label.0_test.dart",
"repo_id": "flutter",
"token_count": 991
} | 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.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/popup_menu/popup_menu.0.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/popup_menu/popup_menu.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/popup_menu/popup_menu.0_test.dart",
"repo_id": "flutter",
"token_count": 364
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/reorderable_list/reorderable_l... | flutter/examples/api/test/material/reorderable_list/reorderable_list_view.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/reorderable_list/reorderable_list_view.1_test.dart",
"repo_id": "flutter",
"token_count": 435
} | 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/material.dart';
import 'package:flutter_api_samples/material/stepper/stepper.0.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/material/stepper/stepper.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/stepper/stepper.0_test.dart",
"repo_id": "flutter",
"token_count": 998
} | 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/material.dart';
import 'package:flutter_api_samples/material/theme_data/theme_data.0.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/theme_data/theme_data.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/theme_data/theme_data.0_test.dart",
"repo_id": "flutter",
"token_count": 467
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter_api_samples/sample_templates/cupertino.0.dart' as example;
import 'package:flutter_test/fl... | flutter/examples/api/test/sample_templates/cupertino.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/sample_templates/cupertino.0_test.dart",
"repo_id": "flutter",
"token_count": 242
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/basic/clip_rrect.1.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart",
"repo_id": "flutter",
"token_count": 300
} | 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/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_api_samples/widgets/binding/widget_binding_observer.... | flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart",
"repo_id": "flutter",
"token_count": 628
} | 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_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.1.dart' as example;
import 'package:flutter_test/flutter_test.dart'... | flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart",
"repo_id": "flutter",
"token_count": 511
} | 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/material.dart';
import 'package:flutter_api_samples/widgets/scrollbar/raw_scrollbar.desktop.0.dart' as example;
import 'package:flu... | flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0.dart",
"repo_id": "flutter",
"token_count": 226
} | 627 |
## To run the Hello World demo:
```
flutter run
```
## To run the Hello World demo showing Arabic:
```
flutter run lib/arabic.dart
```
| flutter/examples/hello_world/README.md/0 | {
"file_path": "flutter/examples/hello_world/README.md",
"repo_id": "flutter",
"token_count": 48
} | 628 |
#include "Generated.xcconfig"
| flutter/examples/hello_world/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/examples/hello_world/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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:async';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';
import 'package:webdriver/async_io.dart';
// T... | flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart/0 | {
"file_path": "flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart",
"repo_id": "flutter",
"token_count": 504
} | 630 |
# Image List
An example that sets up a local HTTP server for serving one
image then creates a single flutter widget with five copies of requested
image and prints how long the loading took.
This is used in [$FH/flutter/devicelab/bin/tasks/image_list_reported_duration.dart] test.
| flutter/examples/image_list/README.md/0 | {
"file_path": "flutter/examples/image_list/README.md",
"repo_id": "flutter",
"token_count": 78
} | 631 |
# Examples of Flutter's layered architecture
This directory contains several self-contained examples that illustrate
Flutter's layered architecture.
* [*raw/*](raw/) These examples show how to program against the lowest layer of
the system. They manually receive input packets and construct composited
scenes.
... | flutter/examples/layers/README.md/0 | {
"file_path": "flutter/examples/layers/README.md",
"repo_id": "flutter",
"token_count": 249
} | 632 |
#include "Generated.xcconfig"
| flutter/examples/layers/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/examples/layers/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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:math' as math;
import 'package:flutter/rendering.dart';
const double kTwoPi = 2 * math.pi;
class SectorConstraints extends Constraints {
... | flutter/examples/layers/rendering/src/sector_layout.dart/0 | {
"file_path": "flutter/examples/layers/rendering/src/sector_layout.dart",
"repo_id": "flutter",
"token_count": 7647
} | 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 'package:flutter/material.dart';
class _GesturePainter extends CustomPainter {
const _GesturePainter({
required this.zoom,
required this.... | flutter/examples/layers/widgets/gestures.dart/0 | {
"file_path": "flutter/examples/layers/widgets/gestures.dart",
"repo_id": "flutter",
"token_count": 3091
} | 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 "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
#import "PlatformViewController.h"
@implementation AppDelegate {
FlutterResult _flutterRes... | flutter/examples/platform_view/ios/Runner/AppDelegate.m/0 | {
"file_path": "flutter/examples/platform_view/ios/Runner/AppDelegate.m",
"repo_id": "flutter",
"token_count": 546
} | 636 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/platform_view/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "flutter/examples/platform_view/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 637 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21208.1" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
... | flutter/examples/platform_view/macos/Runner/PlatformViewController.xib/0 | {
"file_path": "flutter/examples/platform_view/macos/Runner/PlatformViewController.xib",
"repo_id": "flutter",
"token_count": 4625
} | 638 |
# Take our settings from the repo's main analysis_options.yaml file, and include
# additional rules that are specific to production code.
include: ../analysis_options.yaml
linter:
rules:
- public_member_api_docs # see https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-ja... | flutter/packages/analysis_options.yaml/0 | {
"file_path": "flutter/packages/analysis_options.yaml",
"repo_id": "flutter",
"token_count": 127
} | 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.
# For details regarding the *Flutter Fix* feature, see
# https://flutter.dev/docs/development/tools/flutter-fix
# Please add new fixes to the top of the file... | flutter/packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml",
"repo_id": "flutter",
"token_count": 13469
} | 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 Color, Rect, Size;
import 'package:flutter/foundation.dart';
import 'animations.dart';
export 'dart:ui' show Color, Rect, Size;
e... | flutter/packages/flutter/lib/src/animation/tween.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/animation/tween.dart",
"repo_id": "flutter",
"token_count": 6382
} | 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 'package:flutter/widgets.dart';
import 'button.dart';
import 'colors.dart';
import 'text_selection_toolbar_... | flutter/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar_button.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar_button.dart",
"repo_id": "flutter",
"token_count": 1555
} | 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:math';
import 'dart:ui' show ImageFilter, lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
impor... | flutter/packages/flutter/lib/src/cupertino/route.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/route.dart",
"repo_id": "flutter",
"token_count": 16353
} | 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:flutter/widgets.dart';
import 'colors.dart';
import 'icon_theme_data.dart';
import 'text_theme.d... | flutter/packages/flutter/lib/src/cupertino/theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/theme.dart",
"repo_id": "flutter",
"token_count": 6671
} | 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:meta/meta.dart';
import 'basic_types.dart';
import 'constants.dart';
import 'diagnostics.dart';
import 'print.dart';
import 'stack_frame.d... | flutter/packages/flutter/lib/src/foundation/assertions.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/assertions.dart",
"repo_id": "flutter",
"token_count": 15963
} | 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.
/// Framework code should use this method in favor of calling `toString` on
/// [Object.runtimeType].
///
/// Calling `toString` on a runtime type is a non... | flutter/packages/flutter/lib/src/foundation/object.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/object.dart",
"repo_id": "flutter",
"token_count": 194
} | 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 'drag_details.dart';
export 'drag_details.dart' show DragEndDetails, DragUpdateDetails;
/// Interface for objects that receive updates about drags... | flutter/packages/flutter/lib/src/gestures/drag.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/drag.dart",
"repo_id": "flutter",
"token_count": 299
} | 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 'dart:math' as math;
import 'constants.dart';
import 'events.dart';
import 'recognizer.dart';
import 'velocity_tracker.dart';
export 'dart:ui' sho... | flutter/packages/flutter/lib/src/gestures/scale.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/scale.dart",
"repo_id": "flutter",
"token_count": 9739
} | 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.
// 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/ellipsis_search.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart",
"repo_id": "flutter",
"token_count": 154110
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'color_scheme.dart';
import 'colors.dart';
import 'constants.dart'... | flutter/packages/flutter/lib/src/material/button_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/button_theme.dart",
"repo_id": "flutter",
"token_count": 8909
} | 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/foundation.dart';
import 'data_table.dart';
/// A data source for obtaining row data for [PaginatedDataTable] objects.
///
/// A d... | flutter/packages/flutter/lib/src/material/data_table_source.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/data_table_source.dart",
"repo_id": "flutter",
"token_count": 933
} | 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 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
imp... | flutter/packages/flutter/lib/src/material/dropdown.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/dropdown.dart",
"repo_id": "flutter",
"token_count": 22451
} | 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:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'scaffold.dart';
/// The margin that... | flutter/packages/flutter/lib/src/material/floating_action_button_location.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/floating_action_button_location.dart",
"repo_id": "flutter",
"token_count": 13127
} | 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/widgets.dart';
import 'date.dart';
import 'date_picker_theme.dart';
import 'input_border.dart';
import 'input_decorator.dart';
imp... | flutter/packages/flutter/lib/src/material/input_date_picker_form_field.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/input_date_picker_form_field.dart",
"repo_id": "flutter",
"token_count": 3264
} | 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/animation.dart';
// BEGIN GENERATED TOKEN PROPERTIES - Motion
// Do not edit by hand. The code between the "BEGIN GENERATED" and
... | flutter/packages/flutter/lib/src/material/motion.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/motion.dart",
"repo_id": "flutter",
"token_count": 4395
} | 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 'dart:ui' show lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'theme.dart';
// Examples can ... | flutter/packages/flutter/lib/src/material/progress_indicator_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/progress_indicator_theme.dart",
"repo_id": "flutter",
"token_count": 1937
} | 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 show BoxHeightStyle, BoxWidthStyle;
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'pack... | flutter/packages/flutter/lib/src/material/selectable_text.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/selectable_text.dart",
"repo_id": "flutter",
"token_count": 10089
} | 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/widgets.dart';
import 'colors.dart';
/// Used with [TabBar.indicator] to draw a horizontal line below the
/// selected tab.
///
/... | flutter/packages/flutter/lib/src/material/tab_indicator.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/tab_indicator.dart",
"repo_id": "flutter",
"token_count": 1446
} | 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 '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/toggle_buttons.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/toggle_buttons.dart",
"repo_id": "flutter",
"token_count": 22704
} | 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/foundation.dart';
import 'basic_types.dart';
import 'border_radius.dart';
import 'borders.dart';
import 'edge_insets.dart';
// Ex... | flutter/packages/flutter/lib/src/painting/box_border.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/box_border.dart",
"repo_id": "flutter",
"token_count": 14219
} | 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 'dart:developer';
import 'package:flutter/foundation.dart';
import 'package:flutter/scheduler.dart';
import 'image_stream.dart';
const int _kDefa... | flutter/packages/flutter/lib/src/painting/image_cache.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/image_cache.dart",
"repo_id": "flutter",
"token_count": 7866
} | 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 'dart:math' as math;
import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:vector_math/vector_math_64.... | flutter/packages/flutter/lib/src/painting/star_border.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/star_border.dart",
"repo_id": "flutter",
"token_count": 9585
} | 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/foundation.dart';
import 'box.dart';
import 'object.dart';
// For SingleChildLayoutDelegate and RenderCustomSingleChildLayoutBox,... | flutter/packages/flutter/lib/src/rendering/custom_layout.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/custom_layout.dart",
"repo_id": "flutter",
"token_count": 4990
} | 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:collection';
import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, Gradient, LineMetrics, PlaceholderAlignmen... | flutter/packages/flutter/lib/src/rendering/paragraph.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/paragraph.dart",
"repo_id": "flutter",
"token_count": 29736
} | 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 'dart:math' as math;
import 'package:vector_math/vector_math_64.dart';
import 'debug.dart';
import 'object.dart';
import 'sliver.dart';
/// Inset... | flutter/packages/flutter/lib/src/rendering/sliver_padding.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/sliver_padding.dart",
"repo_id": "flutter",
"token_count": 4612
} | 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 show AccessibilityFeatures, SemanticsActionEvent, SemanticsUpdateBuilder;
import 'package:flutter/foundation.dart';
import 'package... | flutter/packages/flutter/lib/src/semantics/binding.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/semantics/binding.dart",
"repo_id": "flutter",
"token_count": 2336
} | 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.
/// The flavor this app was built with.
///
/// This is equivalent to the value argued to the `--flavor` option at build time.
/// This will be `null` if t... | flutter/packages/flutter/lib/src/services/flavor.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/flavor.dart",
"repo_id": "flutter",
"token_count": 141
} | 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 'keyboard_maps.g.dart';
import 'raw_keyboard.dart';
export 'package:flutter/foundation.dart' show Diagno... | flutter/packages/flutter/lib/src/services/raw_keyboard_android.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/raw_keyboard_android.dart",
"repo_id": "flutter",
"token_count": 5754
} | 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 'dart:ui' show TextRange;
import 'package:flutter/foundation.dart';
import 'text_editing.dart';
import 'text_input.dart' show TextEditingValue;
e... | flutter/packages/flutter/lib/src/services/text_editing_delta.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/text_editing_delta.dart",
"repo_id": "flutter",
"token_count": 6242
} | 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/rendering.dart';
import 'framework.dart';
/// Annotates a region of the layer tree with a value.
///
/// See also:
///
/// * [La... | flutter/packages/flutter/lib/src/widgets/annotated_region.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/annotated_region.dart",
"repo_id": "flutter",
"token_count": 480
} | 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 'dart:collection';
import 'dart:developer' show Timeline; // to disambiguate reference in dartdocs below
import 'package:flutter/foundation.dart';
... | flutter/packages/flutter/lib/src/widgets/debug.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/debug.dart",
"repo_id": "flutter",
"token_count": 6176
} | 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 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'basic.dart';
import 'framework.dart';
imp... | flutter/packages/flutter/lib/src/widgets/form.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/form.dart",
"repo_id": "flutter",
"token_count": 6753
} | 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.
import 'dart:math' as math;
import 'package:flutter/foundation.dart' show clampDouble;
import 'package:flutter/gestures.dart';
import 'package:flutter/phy... | flutter/packages/flutter/lib/src/widgets/interactive_viewer.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/interactive_viewer.dart",
"repo_id": "flutter",
"token_count": 18118
} | 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 'dart:collection';
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:f... | flutter/packages/flutter/lib/src/widgets/overlay.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/overlay.dart",
"repo_id": "flutter",
"token_count": 28390
} | 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 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'editable_text.dart';
import 'restoration.d... | flutter/packages/flutter/lib/src/widgets/restoration_properties.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/restoration_properties.dart",
"repo_id": "flutter",
"token_count": 6627
} | 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.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/physics.dart';
/// An implementation of scroll physics that... | flutter/packages/flutter/lib/src/widgets/scroll_simulation.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/scroll_simulation.dart",
"repo_id": "flutter",
"token_count": 3051
} | 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/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart' show TickerProvider;
import 'fr... | flutter/packages/flutter/lib/src/widgets/sliver_persistent_header.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/sliver_persistent_header.dart",
"repo_id": "flutter",
"token_count": 5334
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/scheduler.dart';
import 'framework.dart';
export 'package:flutter/scheduler.dart' show ... | flutter/packages/flutter/lib/src/widgets/ticker_provider.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/ticker_provider.dart",
"repo_id": "flutter",
"token_count": 4816
} | 678 |
// Copyright 2014 The Flutter 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/animation/live_binding_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/animation/live_binding_test.dart",
"repo_id": "flutter",
"token_count": 2139
} | 679 |
// Copyright 2014 The Flutter Authors. 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_test/flutter_test.dart';
voi... | flutter/packages/flutter/test/cupertino/desktop_text_selection_toolbar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/desktop_text_selection_toolbar_test.dart",
"repo_id": "flutter",
"token_count": 1911
} | 680 |
// Copyright 2014 The Flutter 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('!chrome')
library;
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutte... | flutter/packages/flutter/test/cupertino/refresh_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/refresh_test.dart",
"repo_id": "flutter",
"token_count": 27291
} | 681 |
// Copyright 2014 The Flutter Authors. All rights 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/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWid... | flutter/packages/flutter/test/cupertino/text_form_field_row_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/text_form_field_row_test.dart",
"repo_id": "flutter",
"token_count": 6590
} | 682 |
// Copyright 2014 The Flutter Authors. 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_test/flutter_test.dart';
class TestBinding extends BindingBase { }... | flutter/packages/flutter/test/foundation/binding_2_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/binding_2_test.dart",
"repo_id": "flutter",
"token_count": 1036
} | 683 |
// Copyright 2014 The Flutter Authors. All rights 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';
void main() {
test('LicenseEntryWithLineBreaks - most cases',... | flutter/packages/flutter/test/foundation/licenses_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/licenses_test.dart",
"repo_id": "flutter",
"token_count": 2112
} | 684 |
// Copyright 2014 The Flutter Authors. All rights 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/scheduler.dart';
import 'package:flutter_test/flutter_test.dart';
import 'gesture_tester.d... | flutter/packages/flutter/test/gestures/drag_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/drag_test.dart",
"repo_id": "flutter",
"token_count": 35757
} | 685 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.