text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [MenuAnchor].
void main() => runApp(const Men... | flutter/examples/api/lib/material/menu_anchor/menu_anchor.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/menu_anchor/menu_anchor.0.dart",
"repo_id": "flutter",
"token_count": 2939
} | 569 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [PaginatedDataTable].
class MyDataSource extends DataTableSource {
static const Lis... | flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.1.dart",
"repo_id": "flutter",
"token_count": 2902
} | 570 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [RangeSlider].
void main() => runApp(const RangeSliderExampleApp());
class RangeSlid... | flutter/examples/api/lib/material/range_slider/range_slider.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/range_slider/range_slider.0.dart",
"repo_id": "flutter",
"token_count": 478
} | 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 [ScaffoldMessenger.of].
void main() => runApp(const OfExampleApp());
class OfExample... | flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.0.dart",
"repo_id": "flutter",
"token_count": 399
} | 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 [SegmentedButton.styleFrom].
void main() {
runApp(const SegmentedButtonApp());
}
c... | flutter/examples/api/lib/material/segmented_button/segmented_button.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/segmented_button/segmented_button.1.dart",
"repo_id": "flutter",
"token_count": 768
} | 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 [Switch].
void main() => runApp(const SwitchApp());
class SwitchApp extends Stateles... | flutter/examples/api/lib/material/switch/switch.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/switch/switch.2.dart",
"repo_id": "flutter",
"token_count": 716
} | 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';
import 'package:flutter/services.dart';
/// Flutter code sample for [TextFormField].
void main() => runApp(const ... | flutter/examples/api/lib/material/text_form_field/text_form_field.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/text_form_field/text_form_field.1.dart",
"repo_id": "flutter",
"token_count": 939
} | 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';
import 'package:flutter/rendering.dart';
void main() => runApp(const SampleApp());
class SampleApp extends Statef... | flutter/examples/api/lib/rendering/box/parent_data.0.dart/0 | {
"file_path": "flutter/examples/api/lib/rendering/box/parent_data.0.dart",
"repo_id": "flutter",
"token_count": 4350
} | 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 [SliverAnimatedList].
void main() => runApp(const SliverAnimatedListSample());
class... | flutter/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart",
"repo_id": "flutter",
"token_count": 2771
} | 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 [OverflowBox].
void main() => runApp(const OverflowBoxApp());
class OverflowBoxApp e... | flutter/examples/api/lib/widgets/basic/overflowbox.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/overflowbox.0.dart",
"repo_id": "flutter",
"token_count": 649
} | 578 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [FocusScope].
void main() => runApp(const FocusScopeExampleApp());
class FocusScopeE... | flutter/examples/api/lib/widgets/focus_scope/focus_scope.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/focus_scope/focus_scope.0.dart",
"repo_id": "flutter",
"token_count": 2162
} | 579 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [AnimatedAlign].
void main() => runApp(const AnimatedAlignExampleApp());
class Anima... | flutter/examples/api/lib/widgets/implicit_animations/animated_align.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/implicit_animations/animated_align.0.dart",
"repo_id": "flutter",
"token_count": 587
} | 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 [MediaQueryData.systemGestureInsets].
void main() => runApp(const SystemGestureInsets... | flutter/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart",
"repo_id": "flutter",
"token_count": 592
} | 581 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [OverflowBar].
void main() => runApp(const OverflowBarExampleApp());
class OverflowB... | flutter/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart",
"repo_id": "flutter",
"token_count": 964
} | 582 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [ScrollController] & [ScrollNotification].
void main() => runApp(const ScrollNotifica... | flutter/examples/api/lib/widgets/scroll_position/scroll_controller_notification.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/scroll_position/scroll_controller_notification.0.dart",
"repo_id": "flutter",
"token_count": 2146
} | 583 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for [LogicalKeySet].
void main() => runApp(const ... | flutter/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart",
"repo_id": "flutter",
"token_count": 726
} | 584 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [Table].
void main() => runApp(const TableExampleApp());
class TableExampleApp exten... | flutter/examples/api/lib/widgets/table/table.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/table/table.0.dart",
"repo_id": "flutter",
"token_count": 1060
} | 585 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [RelativePositionedTransition].
void main() => runApp(const RelativePositionedTransit... | flutter/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart",
"repo_id": "flutter",
"token_count": 930
} | 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_api_samples/cupertino/date_picker/cupertino_date_picker.0.dart' as example;
import 'package:flutter_test/flutter_test.dart';
const... | flutter/examples/api/test/cupertino/date_picker/cupertino_date_picker.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/date_picker/cupertino_date_picker.0_test.dart",
"repo_id": "flutter",
"token_count": 1003
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/scrollbar/cupertino_scrollbar.0.dart' as example;
import 'package:fl... | flutter/examples/api/test/cupertino/scrollbar/cupertino_scrollbar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/scrollbar/cupertino_scrollbar.0_test.dart",
"repo_id": "flutter",
"token_count": 358
} | 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/action_buttons/action_icon_theme.0.dart' as example;
import 'package:f... | flutter/examples/api/test/material/action_buttons/action_icon_theme.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/action_buttons/action_icon_theme.0_test.dart",
"repo_id": "flutter",
"token_count": 607
} | 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/bottom_navigation_bar/bottom_navigation_bar.0.dart' as example;
import... | flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.0_test.dart",
"repo_id": "flutter",
"token_count": 432
} | 590 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart' as ... | flutter/examples/api/test/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0_test.dart",
"repo_id": "flutter",
"token_count": 870
} | 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/dialog/dialog.0.dart' as example;
import 'package:flutter_test/flutter... | flutter/examples/api/test/material/dialog/dialog.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/dialog/dialog.0_test.dart",
"repo_id": "flutter",
"token_count": 578
} | 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/expansion_tile/expansion_tile.0.dart' as example;
import 'package:flut... | flutter/examples/api/test/material/expansion_tile/expansion_tile.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/expansion_tile/expansion_tile.0_test.dart",
"repo_id": "flutter",
"token_count": 459
} | 593 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/input_decorator/input_decoration.floating_label_style_error.0.dart' as... | flutter/examples/api/test/material/input_decorator/input_decoration.floating_label_style_error.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/input_decorator/input_decoration.floating_label_style_error.0_test.dart",
"repo_id": "flutter",
"token_count": 307
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_api_samples... | flutter/examples/api/test/material/menu_anchor/menu_anchor.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/menu_anchor/menu_anchor.1_test.dart",
"repo_id": "flutter",
"token_count": 2031
} | 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/material/popup_menu/popup_menu.2.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/popup_menu/popup_menu.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/popup_menu/popup_menu.2_test.dart",
"repo_id": "flutter",
"token_count": 823
} | 596 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/reorderable_list/reorderable_l... | flutter/examples/api/test/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0_test.dart",
"repo_id": "flutter",
"token_count": 457
} | 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/material/toggle_buttons/toggle_buttons.0.dart' as example;
import 'package:flut... | flutter/examples/api/test/material/toggle_buttons/toggle_buttons.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/toggle_buttons/toggle_buttons.0_test.dart",
"repo_id": "flutter",
"token_count": 1599
} | 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/ui/text/font_feature.font_feature_swash.0.dart' as example;
import 'package:flu... | flutter/examples/api/test/ui/text/font_feature.font_feature_swash.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/ui/text/font_feature.font_feature_swash.0_test.dart",
"repo_id": "flutter",
"token_count": 304
} | 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/basic/expanded.0.dart' as example;
import 'package:flutter_test/flutter... | flutter/examples/api/test/widgets/basic/expanded.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/expanded.0_test.dart",
"repo_id": "flutter",
"token_count": 464
} | 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 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_api_samples/widgets/editabl... | flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart",
"repo_id": "flutter",
"token_count": 1182
} | 601 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/overlay/overlay.0.dart' as example;
import 'package:flutter_test/flutte... | flutter/examples/api/test/widgets/overlay/overlay.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/overlay/overlay.0_test.dart",
"repo_id": "flutter",
"token_count": 527
} | 602 |
The Flutter Gallery sample application that used to live in
this /examples/ directory has moved, and is now located here:
https://github.com/flutter/gallery
| flutter/examples/flutter_gallery.readme/0 | {
"file_path": "flutter/examples/flutter_gallery.readme",
"repo_id": "flutter",
"token_count": 40
} | 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. -->
<resources>
<string name="app_name">Flutter View</string>
<string name="title">Flutter Application</string>
<string name="button_tap">Flutter button ... | flutter/examples/flutter_view/android/app/src/main/res/values/strings.xml/0 | {
"file_path": "flutter/examples/flutter_view/android/app/src/main/res/values/strings.xml",
"repo_id": "flutter",
"token_count": 111
} | 604 |
#include "Generated.xcconfig"
| flutter/examples/image_list/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/examples/image_list/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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.
// This example shows how to use process input events in the underlying render
// tree.
import 'package:flutter/material.dart'; // Imported just for its c... | flutter/examples/layers/rendering/touch_input.dart/0 | {
"file_path": "flutter/examples/layers/rendering/touch_input.dart",
"repo_id": "flutter",
"token_count": 1466
} | 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';
class AdaptedListItem extends StatelessWidget {
const AdaptedListItem({ super.key, required this.name });
fin... | flutter/examples/layers/widgets/media_query.dart/0 | {
"file_path": "flutter/examples/layers/widgets/media_query.dart",
"repo_id": "flutter",
"token_count": 1127
} | 607 |
#include "Generated.xcconfig"
| flutter/examples/platform_channel/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/examples/platform_channel/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 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.
package io.flutter.examples.platform_view;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;... | flutter/examples/platform_view/android/app/src/main/java/io/flutter/examples/platform_view/CountActivity.java/0 | {
"file_path": "flutter/examples/platform_view/android/app/src/main/java/io/flutter/examples/platform_view/CountActivity.java",
"repo_id": "flutter",
"token_count": 673
} | 609 |
# Flutter
Flutter is a new way to build high-performance, cross-platform mobile, web,
and desktop apps. Flutter is optimized for today's — and tomorrow's — mobile
and desktop devices. We are focused on low-latency input and high frame rates
on all platforms.
See the [getting started guide](https://flutter.dev/getting... | flutter/packages/flutter/README.md/0 | {
"file_path": "flutter/packages/flutter/README.md",
"repo_id": "flutter",
"token_count": 94
} | 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_material/fix_theme_data.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_material/fix_theme_data.yaml",
"repo_id": "flutter",
"token_count": 30245
} | 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.
/// The Flutter gesture recognizers.
///
/// To use, import `package:flutter/gestures.dart`.
library gestures;
export 'src/gestures/arena.dart';
export 's... | flutter/packages/flutter/lib/gestures.dart/0 | {
"file_path": "flutter/packages/flutter/lib/gestures.dart",
"repo_id": "flutter",
"token_count": 463
} | 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:math' as math;
import 'package:flutter/widgets.dart';
import 'colors.dart';
const double _kDefaultIndicatorRadius = 10.0;
// Extracted fro... | flutter/packages/flutter/lib/src/cupertino/activity_indicator.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/activity_indicator.dart",
"repo_id": "flutter",
"token_count": 2025
} | 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/widgets.dart';
import 'colors.dart';
import 'theme.dart';
// Content padding determined via SwiftUI's `Form` view in the iOS 14.2... | flutter/packages/flutter/lib/src/cupertino/form_row.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/form_row.dart",
"repo_id": "flutter",
"token_count": 2135
} | 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/services.dart';
import 'package:flutter/widgets.dart';
import 'button.dart';
import 'colors.dart';
import 'icons.dart';
import 'lo... | flutter/packages/flutter/lib/src/cupertino/search_field.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/search_field.dart",
"repo_id": "flutter",
"token_count": 5535
} | 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/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
/// A mixin for [StatefulWidget]... | flutter/packages/flutter/lib/src/cupertino/toggleable.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/toggleable.dart",
"repo_id": "flutter",
"token_count": 2542
} | 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:async';
import 'dart:convert' show json;
import 'dart:developer' as developer;
import 'dart:io' show exit;
import 'dart:ui' as ui show Brightn... | flutter/packages/flutter/lib/src/foundation/binding.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/binding.dart",
"repo_id": "flutter",
"token_count": 12542
} | 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.
/// A collection of key/value pairs which provides efficient retrieval of
/// value by key.
///
/// This class implements a persistent map: extending this ... | flutter/packages/flutter/lib/src/foundation/persistent_hash_map.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/persistent_hash_map.dart",
"repo_id": "flutter",
"token_count": 5453
} | 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 'recognizer.dart';
export 'dart:ui' show PointerDeviceKind;
export 'events.dart' show PointerDownEvent, PointerEvent;
/// A gesture recognizer th... | flutter/packages/flutter/lib/src/gestures/eager.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/eager.dart",
"repo_id": "flutter",
"token_count": 374
} | 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 'dart:async';
import 'package:flutter/foundation.dart';
import 'constants.dart';
import 'events.dart';
import 'monodrag.dart';
import 'recognizer.... | flutter/packages/flutter/lib/src/gestures/tap_and_drag.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/gestures/tap_and_drag.dart",
"repo_id": "flutter",
"token_count": 17711
} | 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.
// 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/home_menu.g.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart",
"repo_id": "flutter",
"token_count": 49507
} | 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 '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/badge_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/badge_theme.dart",
"repo_id": "flutter",
"token_count": 2087
} | 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/widgets.dart';
import 'card_theme.dart';
import 'color_scheme.dart';
import 'colors.dart';
import 'material.dart';
import 'theme.d... | flutter/packages/flutter/lib/src/material/card.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/card.dart",
"repo_id": "flutter",
"token_count": 4017
} | 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/foundation.dart';
import 'material_localizations.dart';
/// Utility functions for working with dates.
abstract final class DateUt... | flutter/packages/flutter/lib/src/material/date.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/date.dart",
"repo_id": "flutter",
"token_count": 2514
} | 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/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'input_decorator.dart';
import 'menu_style.dart';
import 'theme.... | flutter/packages/flutter/lib/src/material/dropdown_menu_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/dropdown_menu_theme.dart",
"repo_id": "flutter",
"token_count": 1882
} | 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/widgets.dart';
/// The Flutter logo, in widget form. This widget respects the [IconTheme].
/// For guidelines on using the Flutter... | flutter/packages/flutter/lib/src/material/flutter_logo.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/flutter_logo.dart",
"repo_id": "flutter",
"token_count": 794
} | 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:math' as math;
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'color_scheme.dart';
import 'colors.da... | flutter/packages/flutter/lib/src/material/list_tile.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/list_tile.dart",
"repo_id": "flutter",
"token_count": 19795
} | 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:ui' show lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart'... | flutter/packages/flutter/lib/src/material/navigation_bar_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/navigation_bar_theme.dart",
"repo_id": "flutter",
"token_count": 2949
} | 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 'package:flutter/widgets.dart';
import 'list_tile.dart';
import 'list_tile_theme.dart';
import 'material_state.dart';
import 'radio.dart';
import '... | flutter/packages/flutter/lib/src/material/radio_list_tile.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/radio_list_tile.dart",
"repo_id": "flutter",
"token_count": 6160
} | 629 |
#version 320 es
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
precision highp float;
#include <flutter/runtime_effect.glsl>
// TODO(antrob): Put these in a more logical order (e.g. separate consts v... | flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag",
"repo_id": "flutter",
"token_count": 1568
} | 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 lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'button_style.dart';
import 'bu... | flutter/packages/flutter/lib/src/material/text_button.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/text_button.dart",
"repo_id": "flutter",
"token_count": 8062
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'constants.dart';
import ... | flutter/packages/flutter/lib/src/material/toggleable.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/material/toggleable.dart",
"repo_id": "flutter",
"token_count": 6635
} | 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:math' as math;
import 'package:flutter/foundation.dart';
import 'basic_types.dart';
/// How a box should be inscribed into another box.
///... | flutter/packages/flutter/lib/src/painting/box_fit.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/box_fit.dart",
"repo_id": "flutter",
"token_count": 2636
} | 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:async';
import 'dart:io';
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutte... | flutter/packages/flutter/lib/src/painting/image_provider.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/image_provider.dart",
"repo_id": "flutter",
"token_count": 19488
} | 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' show max;
import 'dart:ui' as ui show
BoxHeightStyle,
BoxWidthStyle,
GlyphInfo,
LineMetrics,
Paragraph,
ParagraphBuilder,
... | flutter/packages/flutter/lib/src/painting/text_painter.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/painting/text_painter.dart",
"repo_id": "flutter",
"token_count": 21902
} | 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 'box.dart';
import 'object.dart';
export 'package:flutter/foundation.dart' show debugPrint;
// Any changes to this file should be reflected in the... | flutter/packages/flutter/lib/src/rendering/debug.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/debug.dart",
"repo_id": "flutter",
"token_count": 5209
} | 636 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/semanti... | flutter/packages/flutter/lib/src/rendering/platform_view.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/platform_view.dart",
"repo_id": "flutter",
"token_count": 9113
} | 637 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:ui' show lerpDouble;
import 'package:flutter/foundation.dart';
import 'box.dart';
import 'layer.dart';
import 'l... | flutter/packages/flutter/lib/src/rendering/stack.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/rendering/stack.dart",
"repo_id": "flutter",
"token_count": 8940
} | 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 'dart:math' as math;
import 'dart:ui' show Offset, Rect, SemanticsAction, SemanticsFlag, SemanticsUpdate, SemanticsUpdateBuilder, StringAttribute, T... | flutter/packages/flutter/lib/src/semantics/semantics.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/semantics/semantics.dart",
"repo_id": "flutter",
"token_count": 62262
} | 639 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'system_channels.dart';
/// Allows access to the haptic feedback interface on the device.
///
/// This API is intentionally terse since it calls d... | flutter/packages/flutter/lib/src/services/haptic_feedback.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/haptic_feedback.dart",
"repo_id": "flutter",
"token_count": 920
} | 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/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_ios.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/raw_keyboard_ios.dart",
"repo_id": "flutter",
"token_count": 4855
} | 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 'dart:async';
import 'dart:io' show Platform;
import 'dart:ui' show
FontWeight,
Offset,
Rect,
Size,
TextAlign,
TextDirection;
import 'p... | flutter/packages/flutter/lib/src/services/text_input.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/services/text_input.dart",
"repo_id": "flutter",
"token_count": 27411
} | 642 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'binding.dart';
/// A callback type that is used by [AppLifecycleListener.onExitReques... | flutter/packages/flutter/lib/src/widgets/app_lifecycle_listener.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/app_lifecycle_listener.dart",
"repo_id": "flutter",
"token_count": 3446
} | 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 'basic.dart';
import 'framework.dart';
import 'inherited_theme.dart';
// Examples can assume:
// late BuildContext context;
/// The selection styl... | flutter/packages/flutter/lib/src/widgets/default_selection_style.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/default_selection_style.dart",
"repo_id": "flutter",
"token_count": 1369
} | 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/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
import 'basic.dart';
import 'fr... | flutter/packages/flutter/lib/src/widgets/gesture_detector.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/gesture_detector.dart",
"repo_id": "flutter",
"token_count": 21917
} | 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 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'debug.dart';
import 'framework.dart';
/// The signature of the... | flutter/packages/flutter/lib/src/widgets/layout_builder.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/layout_builder.dart",
"repo_id": "flutter",
"token_count": 4154
} | 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 'package:flutter/foundation.dart';
import 'framework.dart';
// Examples can assume:
// late BuildContext context;
/// A [Key] that can be used to... | flutter/packages/flutter/lib/src/widgets/page_storage.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/page_storage.dart",
"repo_id": "flutter",
"token_count": 2494
} | 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:async';
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/sc... | flutter/packages/flutter/lib/src/widgets/routes.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/routes.dart",
"repo_id": "flutter",
"token_count": 28320
} | 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:async';
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter... | flutter/packages/flutter/lib/src/widgets/scrollable.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/scrollable.dart",
"repo_id": "flutter",
"token_count": 30915
} | 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/rendering.dart';
import 'framework.dart';
import 'scroll_delegate.dart';
import 'sliver.dart';
/// A sliver that places its box c... | flutter/packages/flutter/lib/src/widgets/sliver_varied_extent_list.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/sliver_varied_extent_list.dart",
"repo_id": "flutter",
"token_count": 1630
} | 650 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/rendering.dart';
import 'basic.dart';
import 'container.dart';
import 'framework.dart';
import 'text.... | flutter/packages/flutter/lib/src/widgets/transitions.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/widgets/transitions.dart",
"repo_id": "flutter",
"token_count": 13430
} | 651 |
name: flutter
description: A framework for writing Flutter applications
homepage: https://flutter.dev
environment:
sdk: '>=3.3.0-0 <4.0.0'
dependencies:
# To update these, use "flutter update-packages --force-upgrade".
#
# For detailed instructions, refer to:
# https://github.com/flutter/flutter/wiki/Updati... | flutter/packages/flutter/pubspec.yaml/0 | {
"file_path": "flutter/packages/flutter/pubspec.yaml",
"repo_id": "flutter",
"token_count": 911
} | 652 |
# Tests for the Cupertino package
Avoid importing the Material 'package:flutter/material.dart' in these tests as
we're trying to test the Cupertino package in standalone scenarios.
The 'material' subdirectory contains tests for cross-interactions of Material
Cupertino widgets in hybridized apps.
Some tests may also ... | flutter/packages/flutter/test/cupertino/README.md/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/README.md",
"repo_id": "flutter",
"token_count": 103
} | 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/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flut... | flutter/packages/flutter/test/cupertino/form_row_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/form_row_test.dart",
"repo_id": "flutter",
"token_count": 2590
} | 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 'dart:typed_data';
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import '../image_data.dart';
/// Int... | flutter/packages/flutter/test/cupertino/scaffold_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/scaffold_test.dart",
"repo_id": "flutter",
"token_count": 9433
} | 655 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
... | flutter/packages/flutter/test/cupertino/text_selection_toolbar_button_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/cupertino/text_selection_toolbar_button_test.dart",
"repo_id": "flutter",
"token_count": 1139
} | 656 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
// ignore: unused_field
enum _TestEnum { a, b, c, d, e, f, g, h... | flutter/packages/flutter/test/foundation/bit_field_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/bit_field_test.dart",
"repo_id": "flutter",
"token_count": 588
} | 657 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leak_tracker_flutter_testing/... | flutter/packages/flutter/test/foundation/memory_allocations_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/foundation/memory_allocations_test.dart",
"repo_id": "flutter",
"token_count": 2368
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'gesture_tester.da... | flutter/packages/flutter/test/gestures/force_press_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/force_press_test.dart",
"repo_id": "flutter",
"token_count": 7708
} | 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/gestures.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
PointerEvent createSimulatedPointerAddedEvent(
... | flutter/packages/flutter/test/gestures/resampler_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/gestures/resampler_test.dart",
"repo_id": "flutter",
"token_count": 12749
} | 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:async';
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material... | flutter/packages/flutter/test/material/about_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/about_test.dart",
"repo_id": "flutter",
"token_count": 25861
} | 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/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flu... | flutter/packages/flutter/test/material/banner_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/banner_test.dart",
"repo_id": "flutter",
"token_count": 20882
} | 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 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'packa... | flutter/packages/flutter/test/material/checkbox_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/checkbox_test.dart",
"repo_id": "flutter",
"token_count": 32217
} | 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() {
TestWidgetsFlutterBinding.ensureInitialized();
... | flutter/packages/flutter/test/material/desktop_text_selection_toolbar_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/desktop_text_selection_toolbar_test.dart",
"repo_id": "flutter",
"token_count": 416
} | 664 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
class SimpleExpansionPanelListTestWidget extends StatefulWidget {... | flutter/packages/flutter/test/material/expansion_panel_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/expansion_panel_test.dart",
"repo_id": "flutter",
"token_count": 28515
} | 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';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'packa... | flutter/packages/flutter/test/material/icon_button_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/icon_button_test.dart",
"repo_id": "flutter",
"token_count": 40332
} | 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 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
const Key key = Key('testContainer');
const... | flutter/packages/flutter/test/material/material_state_mixin_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/material_state_mixin_test.dart",
"repo_id": "flutter",
"token_count": 1842
} | 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/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering... | flutter/packages/flutter/test/material/outlined_button_test.dart/0 | {
"file_path": "flutter/packages/flutter/test/material/outlined_button_test.dart",
"repo_id": "flutter",
"token_count": 36122
} | 668 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.