text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import '../../gallery/demo.dart';
class IconsDemo extends StatefulWidget {
const IconsDemo({super.key});
sta... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/icons_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/icons_demo.dart",
"repo_id": "flutter",
"token_count": 1656
} | 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';
import '../../gallery/demo.dart';
// Each TabBarView contains a _Page and for each _Page there is a list
// of _C... | flutter/dev/integration_tests/flutter_gallery/lib/demo/material/tabs_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/material/tabs_demo.dart",
"repo_id": "flutter",
"token_count": 3563
} | 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';
import '../model/product.dart';
import 'product_columns.dart';
class AsymmetricView extends StatelessWidget {
c... | flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/asymmetric_view.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/asymmetric_view.dart",
"repo_id": "flutter",
"token_count": 1039
} | 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 'dart:math' as math;
import 'package:flutter/material.dart';
const double _kFrontHeadingHeight = 32.0; // front layer beveled rectangle
const doub... | flutter/dev/integration_tests/flutter_gallery/lib/gallery/backdrop.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/lib/gallery/backdrop.dart",
"repo_id": "flutter",
"token_count": 4664
} | 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 <FlutterMacOS/FlutterMacOS.h>
#import <XCTest/XCTest.h>
@interface RunnerTests : XCTestCase
@end
@implementation RunnerTests
- (void)testMenu {
... | flutter/dev/integration_tests/flutter_gallery/macos/RunnerTests/RunnerTests.m/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/macos/RunnerTests/RunnerTests.m",
"repo_id": "flutter",
"token_count": 420
} | 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.
// ATTENTION!
//
// This file is not named "*_test.dart", and as such will not run when you run
// "flutter test". It is only intended to be run as part of... | flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart/0 | {
"file_path": "flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart",
"repo_id": "flutter",
"token_count": 2040
} | 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.
package io.flutter.integration.platformviews;
import android.annotation.TargetApi;
import android.os.Build;
import android.view.MotionEvent;
import androi... | flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/TouchPipe.java/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/TouchPipe.java",
"repo_id": "flutter",
"token_count": 438
} | 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';
/// The base class of all the testing pages
//
/// A testing page has to override this in order to be put as one o... | flutter/dev/integration_tests/hybrid_android_views/lib/page.dart/0 | {
"file_path": "flutter/dev/integration_tests/hybrid_android_views/lib/page.dart",
"repo_id": "flutter",
"token_count": 210
} | 578 |
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:ios_add2app.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
| flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/contents.xcworkspacedata/0 | {
"file_path": "flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/contents.xcworkspacedata",
"repo_id": "flutter",
"token_count": 107
} | 579 |
# iOS Extensions Test
Integration test to test building an iOS app with
non-Flutter features:
- watchOS app and extension
| flutter/dev/integration_tests/ios_app_with_extensions/README.md/0 | {
"file_path": "flutter/dev/integration_tests/ios_app_with_extensions/README.md",
"repo_id": "flutter",
"token_count": 31
} | 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/cupertino.dart';
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
// BEGIN cupertinoNavigationBa... | flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart",
"repo_id": "flutter",
"token_count": 1504
} | 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';
import '../../gallery_localizations.dart';
// BEGIN typographyDemo
class _TextStyleItem extends StatelessWidget ... | flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart",
"repo_id": "flutter",
"token_count": 1398
} | 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';
import '../constants.dart';
import '../data/demos.dart';
import '../gallery_localizations.dart';
import '../layout... | flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart",
"repo_id": "flutter",
"token_count": 5195
} | 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 '../../layout/adaptive.dart';
import 'colors.dart';
const double textFieldHeight = 60.0;
const double appPa... | flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart",
"repo_id": "flutter",
"token_count": 1542
} | 584 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import '../../gallery_localizations.dart';
import 'formatters.dart';
/// Calculates the sum of the primary amount... | flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart",
"repo_id": "flutter",
"token_count": 4414
} | 585 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'model/email_model.dart';
import 'model/email_store.dart';
class ... | flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart",
"repo_id": "flutter",
"token_count": 3758
} | 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 'dart:math';
import 'package:flutter/material.dart';
import '../../data/gallery_options.dart';
import '../../gallery_localizations.dart';
import '... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart",
"repo_id": "flutter",
"token_count": 3245
} | 587 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'colors.dart';
const List<Offset> _vertices = <Offset>[
Offset(0, -14),
Offset(-17, 14),
Offset(17, ... | flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart/0 | {
"file_path": "flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart",
"repo_id": "flutter",
"token_count": 488
} | 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 <Foundation/Foundation.h>
#import "TestNavigationController.h"
#import <Flutter/Flutter.h>
@implementation TestNavigationController
- (void) view... | flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.m/0 | {
"file_path": "flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.m",
"repo_id": "flutter",
"token_count": 349
} | 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/rendering.dart';
void main() {
print('called main');
runApp(const MaterialApp(home: Te... | flutter/dev/integration_tests/ui/lib/commands.dart/0 | {
"file_path": "flutter/dev/integration_tests/ui/lib/commands.dart",
"repo_id": "flutter",
"token_count": 290
} | 590 |
This is an Example | flutter/dev/integration_tests/web/web/example/0 | {
"file_path": "flutter/dev/integration_tests/web/web/example",
"repo_id": "flutter",
"token_count": 4
} | 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';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@overr... | flutter/dev/integration_tests/web_e2e_tests/lib/platform_messages_main.dart/0 | {
"file_path": "flutter/dev/integration_tests/web_e2e_tests/lib/platform_messages_main.dart",
"repo_id": "flutter",
"token_count": 672
} | 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 'dart:async' show Completer;
import 'dart:convert' show base64Decode;
import 'dart:typed_data' show ByteData, Uint8List;
import 'dart:ui' as ui;
imp... | flutter/dev/integration_tests/wide_gamut_test/lib/main.dart/0 | {
"file_path": "flutter/dev/integration_tests/wide_gamut_test/lib/main.dart",
"repo_id": "flutter",
"token_count": 8903
} | 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/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
enum LerpTarget {
circle,
rou... | flutter/dev/manual_tests/lib/star_border.dart/0 | {
"file_path": "flutter/dev/manual_tests/lib/star_border.dart",
"repo_id": "flutter",
"token_count": 8314
} | 594 |
tags:
# This tag tells the test framework to not shuffle the test order according to
# the --test-randomize-ordering-seed for the suites that have this tag.
no-shuffle:
allow_test_randomization: false
| flutter/dev/tools/gen_defaults/dart_test.yaml/0 | {
"file_path": "flutter/dev/tools/gen_defaults/dart_test.yaml",
"repo_id": "flutter",
"token_count": 60
} | 595 |
{
"version": "v0_206",
"md.comp.input-chip.container.elevation": "md.sys.elevation.level0",
"md.comp.input-chip.container.height": 32.0,
"md.comp.input-chip.container.shape": "md.sys.shape.corner.small",
"md.comp.input-chip.disabled.label-text.color": "onSurface",
"md.comp.input-chip.disabled.label-text.op... | flutter/dev/tools/gen_defaults/data/chip_input.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/chip_input.json",
"repo_id": "flutter",
"token_count": 2251
} | 596 |
{
"version": "v0_206",
"md.comp.filled-icon-button.container.color": "primary",
"md.comp.filled-icon-button.container.height": 40.0,
"md.comp.filled-icon-button.container.shape": "md.sys.shape.corner.full",
"md.comp.filled-icon-button.container.width": 40.0,
"md.comp.filled-icon-button.disabled.container.c... | flutter/dev/tools/gen_defaults/data/icon_button_filled.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/icon_button_filled.json",
"repo_id": "flutter",
"token_count": 1036
} | 597 |
{
"version": "v0_206",
"md.comp.search-view.container.color": "surfaceContainerHigh",
"md.comp.search-view.container.elevation": "md.sys.elevation.level3",
"md.comp.search-view.divider.color": "outline",
"md.comp.search-view.docked.container.shape": "md.sys.shape.corner.extra-large",
"md.comp.search-view.d... | flutter/dev/tools/gen_defaults/data/search_view.json/0 | {
"file_path": "flutter/dev/tools/gen_defaults/data/search_view.json",
"repo_id": "flutter",
"token_count": 349
} | 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 'template.dart';
class ExpansionTileTemplate extends TokenTemplate {
const ExpansionTileTemplate(super.blockName, super.fileName, super.tokens, {... | flutter/dev/tools/gen_defaults/lib/expansion_tile_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/expansion_tile_template.dart",
"repo_id": "flutter",
"token_count": 331
} | 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 'template.dart';
class SearchViewTemplate extends TokenTemplate {
const SearchViewTemplate(super.blockName, super.fileName, super.tokens, {
s... | flutter/dev/tools/gen_defaults/lib/search_view_template.dart/0 | {
"file_path": "flutter/dev/tools/gen_defaults/lib/search_view_template.dart",
"repo_id": "flutter",
"token_count": 574
} | 600 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_COMMON_TESTING_KEY_CODES_H_
#define FLUTTER_SHELL_PLATFORM_COMMON_TESTING_KEY_CODES_H_
#include <cinttypes>
// DO NOT EDIT... | flutter/dev/tools/gen_keycodes/data/key_codes_h.tmpl/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/key_codes_h.tmpl",
"repo_id": "flutter",
"token_count": 366
} | 601 |
{
"Cancel": ["CANCEL"],
"Backspace": ["BACK"],
"Tab": ["TAB"],
"Clear": ["CLEAR"],
"Enter": ["RETURN"],
"Menu": ["MENU"],
"Pause": ["PAUSE"],
"CapsLock": ["CAPITAL"],
"Lang1": ["HANGUL", "HANGEUL", "KANA"],
"JunjaMode": ["JUNJA"],
"FinalMode": ["FINAL"],
"KanjiMode": ["KANJI", "HANJA"],
"Escap... | flutter/dev/tools/gen_keycodes/data/windows_logical_to_window_vk.json/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/data/windows_logical_to_window_vk.json",
"repo_id": "flutter",
"token_count": 2447
} | 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:path/path.dart' as path;
import 'base_code_gen.dart';
import 'constants.dart';
import 'logical_key_data.dart';
import 'physical_key_data.d... | flutter/dev/tools/gen_keycodes/lib/web_code_gen.dart/0 | {
"file_path": "flutter/dev/tools/gen_keycodes/lib/web_code_gen.dart",
"repo_id": "flutter",
"token_count": 1094
} | 603 |
<svg id="svg_build_00" xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" >
<path id="path_1" d="M 50.0 50.0 l 10.0 0 l 0.0 10.0 z l 0.0 -10.0 l -10.0 0.0 z " fill="#000000" />
</svg>
| flutter/dev/tools/vitool/test_assets/close_path_in_middle.svg/0 | {
"file_path": "flutter/dev/tools/vitool/test_assets/close_path_in_middle.svg",
"repo_id": "flutter",
"token_count": 100
} | 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 'dart:developer' as developer;
import 'dart:isolate' as isolate;
import 'package:flutter/foundation.dart';
import 'package:flutter/scheduler.dart';... | flutter/dev/tracing_tests/test/common.dart/0 | {
"file_path": "flutter/dev/tracing_tests/test/common.dart",
"repo_id": "flutter",
"token_count": 905
} | 605 |
package dev.flutter.flutter_api_samples
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()
| flutter/examples/api/android/app/src/main/kotlin/dev/flutter/flutter_api_samples/MainActivity.kt/0 | {
"file_path": "flutter/examples/api/android/app/src/main/kotlin/dev/flutter/flutter_api_samples/MainActivity.kt",
"repo_id": "flutter",
"token_count": 40
} | 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/cupertino.dart';
/// Flutter code sample for inset [CupertinoListSection] and [CupertinoListTile].
void main() => runApp(const Cu... | flutter/examples/api/lib/cupertino/list_section/list_section_inset.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/list_section/list_section_inset.0.dart",
"repo_id": "flutter",
"token_count": 1244
} | 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/cupertino.dart';
/// Flutter code sample for [CupertinoSlider].
void main() => runApp(const CupertinoSliderApp());
class Cuperti... | flutter/examples/api/lib/cupertino/slider/cupertino_slider.0.dart/0 | {
"file_path": "flutter/examples/api/lib/cupertino/slider/cupertino_slider.0.dart",
"repo_id": "flutter",
"token_count": 1238
} | 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 [AppBar].
void main() => runApp(const AppBarApp());
class AppBarApp extends Stateles... | flutter/examples/api/lib/material/app_bar/app_bar.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/app_bar/app_bar.2.dart",
"repo_id": "flutter",
"token_count": 448
} | 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';
/// Flutter code sample for [BottomNavigationBar].
void main() => runApp(const BottomNavigationBarExampleApp());
... | flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart/0 | {
"file_path": "flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart",
"repo_id": "flutter",
"token_count": 1016
} | 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 [DeletableChipAttributes.deleteIconBoxConstraints].
void main() => runApp(const Delet... | flutter/examples/api/lib/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart",
"repo_id": "flutter",
"token_count": 974
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [AlertDialog].
void main() => runApp(const AlertDialogExampleApp());
class AlertDial... | flutter/examples/api/lib/material/dialog/alert_dialog.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/dialog/alert_dialog.0.dart",
"repo_id": "flutter",
"token_count": 580
} | 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/material.dart';
/// Flutter code sample for the [DropdownMenuEntry] `labelWidget` property.
enum ColorItem {
blue('Blue', Color... | flutter/examples/api/lib/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart",
"repo_id": "flutter",
"token_count": 991
} | 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';
/// Flutter code sample for [IconButton].
void main() {
runApp(const IconButtonApp());
}
class IconButtonApp e... | flutter/examples/api/lib/material/icon_button/icon_button.2.dart/0 | {
"file_path": "flutter/examples/api/lib/material/icon_button/icon_button.2.dart",
"repo_id": "flutter",
"token_count": 757
} | 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';
/// Flutter code sample for [MaterialStateProperty].
void main() => runApp(const MaterialStatePropertyExampleApp(... | flutter/examples/api/lib/material/material_state/material_state_property.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/material_state/material_state_property.0.dart",
"repo_id": "flutter",
"token_count": 491
} | 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';
/// Flutter code sample for [PageTransitionsTheme].
void main() => runApp(const PageTransitionsThemeApp());
clas... | flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.0.dart",
"repo_id": "flutter",
"token_count": 825
} | 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';
/// Flutter code sample for [RadioListTile].
void main() => runApp(const RadioListTileApp());
class RadioListTil... | flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart",
"repo_id": "flutter",
"token_count": 691
} | 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';
/// Flutter code sample for [Scaffold.of].
void main() => runApp(const OfExampleApp());
class OfExampleApp exten... | flutter/examples/api/lib/material/scaffold/scaffold.of.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/scaffold/scaffold.of.0.dart",
"repo_id": "flutter",
"token_count": 901
} | 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 'dart:async';
import 'package:flutter/material.dart';
/// Flutter code sample for [SearchAnchor].
const Duration fakeAPIDuration = Duration(secon... | flutter/examples/api/lib/material/search_anchor/search_anchor.4.dart/0 | {
"file_path": "flutter/examples/api/lib/material/search_anchor/search_anchor.4.dart",
"repo_id": "flutter",
"token_count": 1734
} | 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/material.dart';
/// Flutter code sample for [Stepper.controlsBuilder].
void main() => runApp(const ControlsBuilderExampleApp());
... | flutter/examples/api/lib/material/stepper/stepper.controls_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/stepper/stepper.controls_builder.0.dart",
"repo_id": "flutter",
"token_count": 695
} | 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';
/// Flutter code sample for [TextField].
class ObscuredTextFieldSample extends StatelessWidget {
const Obscured... | flutter/examples/api/lib/material/text_field/text_field.0.dart/0 | {
"file_path": "flutter/examples/api/lib/material/text_field/text_field.0.dart",
"repo_id": "flutter",
"token_count": 387
} | 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:async';
import 'dart:io';
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@immutab... | flutter/examples/api/lib/painting/image_provider/image_provider.0.dart/0 | {
"file_path": "flutter/examples/api/lib/painting/image_provider/image_provider.0.dart",
"repo_id": "flutter",
"token_count": 1393
} | 622 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// Flutter code sample for setting the [Syst... | flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart/0 | {
"file_path": "flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart",
"repo_id": "flutter",
"token_count": 948
} | 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';
/// Flutter code sample for [AnimatedGrid].
void main() {
runApp(const AnimatedGridSample());
}
class Animated... | flutter/examples/api/lib/widgets/animated_grid/animated_grid.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/animated_grid/animated_grid.0.dart",
"repo_id": "flutter",
"token_count": 2704
} | 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/material.dart';
/// Flutter code sample for [AbsorbPointer].
void main() => runApp(const AbsorbPointerApp());
class AbsorbPointe... | flutter/examples/api/lib/widgets/basic/absorb_pointer.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/absorb_pointer.0.dart",
"repo_id": "flutter",
"token_count": 654
} | 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/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.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/basic/mouse_region.on_exit.0.dart",
"repo_id": "flutter",
"token_count": 523
} | 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/services.dart';
/// Flutter code sample for [Focus].
void main() => runApp(const FocusExa... | flutter/examples/api/lib/widgets/focus_scope/focus.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/focus_scope/focus.0.dart",
"repo_id": "flutter",
"token_count": 1304
} | 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 'package:flutter/material.dart';
/// Flutter code sample for [Image.errorBuilder].
void main() => runApp(const ErrorBuilderExampleApp());
class E... | flutter/examples/api/lib/widgets/image/image.error_builder.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/image/image.error_builder.0.dart",
"repo_id": "flutter",
"token_count": 538
} | 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/material.dart';
/// Flutter code sample for [InteractiveViewer.transformationController].
void main() => runApp(const Transformat... | flutter/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart",
"repo_id": "flutter",
"token_count": 1351
} | 629 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [NestedScrollView].
void main() => runApp(const NestedScrollViewExampleApp());
class... | flutter/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart",
"repo_id": "flutter",
"token_count": 779
} | 630 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// Flutter code sample for [RouteObserver].
final RouteObserver<ModalRoute<void>> routeObserver = RouteObserver<... | flutter/examples/api/lib/widgets/routes/route_observer.0.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/routes/route_observer.0.dart",
"repo_id": "flutter",
"token_count": 1373
} | 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/material.dart';
/// Flutter code sample for [SharedAppData].
// A single lazily-constru... | flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart",
"repo_id": "flutter",
"token_count": 587
} | 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/material.dart';
/// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder].
void main(... | flutter/examples/api/lib/widgets/transitions/listenable_builder.3.dart/0 | {
"file_path": "flutter/examples/api/lib/widgets/transitions/listenable_builder.3.dart",
"repo_id": "flutter",
"token_count": 980
} | 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 'package:flutter/cupertino.dart';
import 'package:flutter_api_samples/cupertino/button/cupertino_button.0.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/cupertino/button/cupertino_button.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/button/cupertino_button.0_test.dart",
"repo_id": "flutter",
"token_count": 277
} | 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/cupertino.dart';
import 'package:flutter_api_samples/cupertino/refresh/cupertino_sliver_refresh_control.0.dart' as example;
import ... | flutter/examples/api/test/cupertino/refresh/cupertino_sliver_refresh_control.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/cupertino/refresh/cupertino_sliver_refresh_control.0_test.dart",
"repo_id": "flutter",
"token_count": 373
} | 635 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/gestures/tap_and_drag/tap_and_drag.0.dart'
as example;
import 'package:flut... | flutter/examples/api/test/gestures/tap_and_drag/tap_and_drag.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/gestures/tap_and_drag/tap_and_drag.0_test.dart",
"repo_id": "flutter",
"token_count": 992
} | 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/material.dart';
import 'package:flutter_api_samples/material/autocomplete/autocomplete.2.dart' as example;
import 'package:flutter_... | flutter/examples/api/test/material/autocomplete/autocomplete.2_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/autocomplete/autocomplete.2_test.dart",
"repo_id": "flutter",
"token_count": 406
} | 637 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.0.dart' as example;
import ... | flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart",
"repo_id": "flutter",
"token_count": 388
} | 638 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/dialog/adaptive_alert_dialog.0.dart' as example;
import 'package:flutt... | flutter/examples/api/test/material/dialog/adaptive_alert_dialog.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/dialog/adaptive_alert_dialog.0_test.dart",
"repo_id": "flutter",
"token_count": 353
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart' as example;
imp... | flutter/examples/api/test/material/dropdown_menu/dropdown_menu_entry_label_widget.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/dropdown_menu/dropdown_menu_entry_label_widget.0_test.dart",
"repo_id": "flutter",
"token_count": 472
} | 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/material.dart';
import 'package:flutter_api_samples/material/ink_well/ink_well.0.dart' as example;
import 'package:flutter_test/flu... | flutter/examples/api/test/material/ink_well/ink_well.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/ink_well/ink_well.0_test.dart",
"repo_id": "flutter",
"token_count": 546
} | 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/material.dart';
import 'package:flutter_api_samples/material/menu_anchor/checkbox_menu_button.0.dart' as example;
import 'package:f... | flutter/examples/api/test/material/menu_anchor/checkbox_menu_button.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/menu_anchor/checkbox_menu_button.0_test.dart",
"repo_id": "flutter",
"token_count": 492
} | 642 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/paginated_data_table/paginated_data_table.1.dart' as example;
import '... | flutter/examples/api/test/material/paginated_data_table/paginated_data_table.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/paginated_data_table/paginated_data_table.1_test.dart",
"repo_id": "flutter",
"token_count": 346
} | 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/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.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/reorderable_list/reorderable_list_view.0_test.dart",
"repo_id": "flutter",
"token_count": 453
} | 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/material.dart';
import 'package:flutter_api_samples/material/stepper/step_style.0.dart' as example;
import 'package:flutter_test/fl... | flutter/examples/api/test/material/stepper/step_style.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/stepper/step_style.0_test.dart",
"repo_id": "flutter",
"token_count": 1109
} | 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/material.dart';
import 'package:flutter_api_samples/material/text_field/text_field.0.dart' as example;
import 'package:flutter_test... | flutter/examples/api/test/material/text_field/text_field.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/material/text_field/text_field.0_test.dart",
"repo_id": "flutter",
"token_count": 243
} | 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/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_api_samples/rendering/scroll_direction/scroll_dire... | flutter/examples/api/test/rendering/scroll_direction.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/rendering/scroll_direction.0_test.dart",
"repo_id": "flutter",
"token_count": 582
} | 647 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/basic/clip_rrect.0.dart' as example;
import 'package:flutter_test/flutt... | flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart",
"repo_id": "flutter",
"token_count": 382
} | 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 'package:flutter/material.dart';
import 'package:flutter_api_samples/widgets/basic/physical_shape.0.dart' as example;
import 'package:flutter_test/f... | flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart",
"repo_id": "flutter",
"token_count": 303
} | 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_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.0.dart' as example;
import 'package:flutter_test/flutter_test.dart'... | flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart",
"repo_id": "flutter",
"token_count": 598
} | 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/material.dart';
import 'package:flutter_api_samples/widgets/scroll_view/list_view.1.dart'
as example;
import 'package:flutter_t... | flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart/0 | {
"file_path": "flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart",
"repo_id": "flutter",
"token_count": 390
} | 651 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21208.1" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.... | flutter/examples/flutter_view/macos/Main.storyboard/0 | {
"file_path": "flutter/examples/flutter_view/macos/Main.storyboard",
"repo_id": "flutter",
"token_count": 7827
} | 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 Foundation
import AppKit
protocol NativeViewControllerDelegate: NSObjectProtocol {
func didTapIncrementButton()
}
/**
The code behind a native... | flutter/examples/flutter_view/macos/Runner/NativeViewController.swift/0 | {
"file_path": "flutter/examples/flutter_view/macos/Runner/NativeViewController.swift",
"repo_id": "flutter",
"token_count": 384
} | 653 |
#include "Generated.xcconfig"
| flutter/examples/hello_world/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "flutter/examples/hello_world/ios/Flutter/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 654 |
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: 5a80f8d63789494c3afb9da5434220fd2ce3d684
channel: unknown
project_type: app
# Tracks metadata for the flutter migrate comma... | flutter/examples/layers/.metadata/0 | {
"file_path": "flutter/examples/layers/.metadata",
"repo_id": "flutter",
"token_count": 436
} | 655 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| flutter/examples/layers/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "flutter/examples/layers/macos/Runner/Configs/Release.xcconfig",
"repo_id": "flutter",
"token_count": 32
} | 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';
import 'package:flutter/rendering.dart';
/// An extension of [RenderingFlutterBinding] that owns and manages a
/// [renderView].
///
//... | flutter/examples/layers/rendering/src/binding.dart/0 | {
"file_path": "flutter/examples/layers/rendering/src/binding.dart",
"repo_id": "flutter",
"token_count": 719
} | 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/rendering.dart';
import 'package:flutter/widgets.dart';
class RenderDots extends RenderConstrainedBox {
RenderDots() : super(add... | flutter/examples/layers/widgets/custom_render_box.dart/0 | {
"file_path": "flutter/examples/layers/widgets/custom_render_box.dart",
"repo_id": "flutter",
"token_count": 599
} | 658 |
#include "Generated.xcconfig"
| flutter/examples/platform_channel_swift/ios/Flutter/Release.xcconfig/0 | {
"file_path": "flutter/examples/platform_channel_swift/ios/Flutter/Release.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 659 |
# Example of switching between full-screen Flutter and Platform View
This project demonstrates how to bring up a full-screen iOS/Android view from a
full-screen Flutter view along with passing data back and forth between the two.
On iOS, we use a CocoaPods dependency to add a Material Design button, and so
`pod insta... | flutter/examples/platform_view/README.md/0 | {
"file_path": "flutter/examples/platform_view/README.md",
"repo_id": "flutter",
"token_count": 119
} | 660 |
#include "ephemeral/Flutter-Generated.xcconfig"
| flutter/examples/platform_view/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "flutter/examples/platform_view/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "flutter",
"token_count": 19
} | 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 Cocoa
/**
`ViewControllers` in the xib can inherit from this class to communicate with
the flutter view for this application. ViewControllers that ... | flutter/examples/platform_view/macos/Runner/PlatformViewController.swift/0 | {
"file_path": "flutter/examples/platform_view/macos/Runner/PlatformViewController.swift",
"repo_id": "flutter",
"token_count": 569
} | 662 |
@ECHO off
REM Copyright 2014 The Flutter Authors. All rights reserved.
REM Use of this source code is governed by a BSD-style license that can be
REM found in the LICENSE file.
TITLE Flutter Console
echo.
echo ######## ## ## ## ######## ######## ######## ########
echo ## ## ## ... | flutter/flutter_console.bat/0 | {
"file_path": "flutter/flutter_console.bat",
"repo_id": "flutter",
"token_count": 655
} | 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.
# 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_material.yaml/0 | {
"file_path": "flutter/packages/flutter/lib/fix_data/fix_material/fix_material.yaml",
"repo_id": "flutter",
"token_count": 13536
} | 664 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'animation.dart';
export 'dart:ui' show VoidCallback;
export 'animation.dart' show AnimationStatus, An... | flutter/packages/flutter/lib/src/animation/listener_helpers.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/animation/listener_helpers.dart",
"repo_id": "flutter",
"token_count": 2728
} | 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/widgets.dart';
import 'colors.dart';
// The minimum padding from all... | flutter/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart",
"repo_id": "flutter",
"token_count": 2190
} | 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:math';
import 'package:flutter/foundation.dart' show clampDouble;
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.... | flutter/packages/flutter/lib/src/cupertino/refresh.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/refresh.dart",
"repo_id": "flutter",
"token_count": 7598
} | 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/widgets.dart';
import 'colors.dart';
// Please update _TextThemeDefaultsBuilder accordi... | flutter/packages/flutter/lib/src/cupertino/text_theme.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/cupertino/text_theme.dart",
"repo_id": "flutter",
"token_count": 4207
} | 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.
// Examples can assume:
// class Cat { }
/// A category with which to annotate a class, for documentation
/// purposes.
///
/// A category is usually repr... | flutter/packages/flutter/lib/src/foundation/annotations.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/annotations.dart",
"repo_id": "flutter",
"token_count": 1074
} | 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:meta/meta.dart';
// This file gets mutated by //dev/devicelab/bin/tasks/flutter_test_performance.dart
// during device lab performance tes... | flutter/packages/flutter/lib/src/foundation/node.dart/0 | {
"file_path": "flutter/packages/flutter/lib/src/foundation/node.dart",
"repo_id": "flutter",
"token_count": 1673
} | 670 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.