text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
#import "GeneratedPluginRegistrant.h"
| codelabs/boring_to_beautiful/step_04/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/boring_to_beautiful/step_04/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 12 |
#import "GeneratedPluginRegistrant.h"
| codelabs/boring_to_beautiful/step_06/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/boring_to_beautiful/step_06/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 13 |
import 'package:flame/collisions.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import '../brick_breaker.dart';
import 'play_area.dart';
class Ball extends CircleComponent
with CollisionCallbacks, HasGameReference<BrickBreaker> {
Ball({
required this.velocity,
req... | codelabs/brick_breaker/step_06/lib/src/components/ball.dart/0 | {
"file_path": "codelabs/brick_breaker/step_06/lib/src/components/ball.dart",
"repo_id": "codelabs",
"token_count": 545
} | 14 |
#import "GeneratedPluginRegistrant.h"
| codelabs/brick_breaker/step_07/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/brick_breaker/step_07/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 15 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/dart-patterns-and-records/step_04/android/gradle.properties/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_04/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 16 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_06_b/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_06_b/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 17 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_06_b/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_06_b/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 18 |
#import "GeneratedPluginRegistrant.h"
| codelabs/dart-patterns-and-records/step_07_a/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_a/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 19 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/dart-patterns-and-records/step_07_b/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_b/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 20 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/dart-patterns-and-records/step_10/android/gradle.properties/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_10/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 21 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_12/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_12/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 22 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_12/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_12/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 23 |
#import "GeneratedPluginRegistrant.h"
| codelabs/deeplink_cookbook/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/deeplink_cookbook/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 24 |
import 'package:flutter/material.dart';
import 'entry.dart';
typedef SubmitCallback = void Function(Entry);
class EntryForm extends StatefulWidget {
final SubmitCallback onSubmit;
const EntryForm({super.key, required this.onSubmit});
@override
State<EntryForm> createState() => _EntryFormState();
}
class _E... | codelabs/firebase-emulator-suite/complete/lib/journal_entry_form.dart/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/lib/journal_entry_form.dart",
"repo_id": "codelabs",
"token_count": 1695
} | 25 |
include: ../../analysis_options.yaml
| codelabs/firebase-get-to-know-flutter/step_05/analysis_options.yaml/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_05/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 26 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/firebase-get-to-know-flutter/step_09/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_09/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 27 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/github-client/step_03/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/github-client/step_03/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 28 |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | codelabs/github-client/step_04/lib/main.dart/0 | {
"file_path": "codelabs/github-client/step_04/lib/main.dart",
"repo_id": "codelabs",
"token_count": 671
} | 29 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/github-client/step_04/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/github-client/step_04/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 30 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/github-client/step_05/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/github-client/step_05/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 31 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/github-client/step_06/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/github-client/step_06/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 32 |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | codelabs/github-client/step_07/lib/main.dart/0 | {
"file_path": "codelabs/github-client/step_07/lib/main.dart",
"repo_id": "codelabs",
"token_count": 742
} | 33 |
include: ../../analysis_options.yaml
| codelabs/github-client/window_to_front/analysis_options.yaml/0 | {
"file_path": "codelabs/github-client/window_to_front/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 34 |
#import "GeneratedPluginRegistrant.h"
| codelabs/google-maps-in-flutter/step_5/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/google-maps-in-flutter/step_5/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 35 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/haiku_generator/finished/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/finished/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 36 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/haiku_generator/step1/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step1/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 37 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/haiku_generator/step3/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step3/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 38 |
include: ../../../analysis_options.yaml
| codelabs/in_app_purchases/step_00/app/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/step_00/app/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 13
} | 39 |
#import "GeneratedPluginRegistrant.h"
| codelabs/in_app_purchases/step_00/app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/in_app_purchases/step_00/app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 40 |
include: ../../../analysis_options.yaml
| codelabs/in_app_purchases/step_07/app/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/step_07/app/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 13
} | 41 |
#import "GeneratedPluginRegistrant.h"
| codelabs/in_app_purchases/step_07/app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/in_app_purchases/step_07/app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 42 |
include: ../../../analysis_options.yaml
| codelabs/in_app_purchases/step_08/app/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/step_08/app/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 13
} | 43 |
#import "GeneratedPluginRegistrant.h"
| codelabs/in_app_purchases/step_08/app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/in_app_purchases/step_08/app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 44 |
include: ../../../analysis_options.yaml
| codelabs/in_app_purchases/step_09/app/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/step_09/app/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 13
} | 45 |
#import "GeneratedPluginRegistrant.h"
| codelabs/in_app_purchases/step_09/app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/in_app_purchases/step_09/app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 46 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_03/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_03/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 47 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_03/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_03/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 48 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/namer/step_05_f_accessibility/android/gradle.properties/0 | {
"file_path": "codelabs/namer/step_05_f_accessibility/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 49 |
#include "Generated.xcconfig"
| codelabs/namer/step_05_h_center_horizontal/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_h_center_horizontal/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 50 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_05_h_center_horizontal/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_h_center_horizontal/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 51 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_05_i_optional_changes/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_i_optional_changes/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 52 |
#include "Generated.xcconfig"
| codelabs/namer/step_07_a_split_my_home_page/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_a_split_my_home_page/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 53 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_07_a_split_my_home_page/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_a_split_my_home_page/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 54 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_07_b_convert_to_stateful/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 55 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_07_b_convert_to_stateful/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 56 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_02_a/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_02_a/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 57 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_04_b/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_04_b/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 58 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/testing_codelab/step_06/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/testing_codelab/step_06/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 59 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/tfagents-flutter/step0/frontend/android/gradle.properties/0 | {
"file_path": "codelabs/tfagents-flutter/step0/frontend/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 60 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfagents-flutter/step5/frontend/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step5/frontend/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 61 |
#include "Generated.xcconfig"
| codelabs/tfagents-flutter/step6/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step6/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 62 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfagents-flutter/step6/frontend/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step6/frontend/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 63 |
#include "Generated.xcconfig"
| codelabs/tfrs-flutter/step0/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step0/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 64 |
#import "GeneratedPluginRegistrant.h"
| codelabs/tfrs-flutter/step2/frontend/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/tfrs-flutter/step2/frontend/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 65 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfrs-flutter/step2/frontend/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step2/frontend/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 66 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfserving-flutter/codelab2/finished/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/finished/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 67 |
include: ../../../analysis_options.yaml
analyzer:
exclude: [lib/proto/generated/**]
errors:
unused_import: ignore
unused_field: ignore
linter:
rules:
| codelabs/tfserving-flutter/codelab2/starter/analysis_options.yaml/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 62
} | 68 |
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
go... | codelabs/tfserving-flutter/codelab2/starter/android/build.gradle/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/android/build.gradle",
"repo_id": "codelabs",
"token_count": 252
} | 69 |
///
// Generated code. Do not modify.
// source: google/protobuf/any.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/any.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/any.pbenum.dart",
"repo_id": "codelabs",
"token_count": 113
} | 70 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/full_type.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fi... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/full_type.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/full_type.pbjson.dart",
"repo_id": "codelabs",
"token_count": 2030
} | 71 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/tensor.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_field... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/tensor.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/tensor.pb.dart",
"repo_id": "codelabs",
"token_count": 6265
} | 72 |
///
// Generated code. Do not modify.
// source: tensorflow/core/protobuf/meta_graph.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fi... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/meta_graph.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/meta_graph.pbenum.dart",
"repo_id": "codelabs",
"token_count": 119
} | 73 |
///
// Generated code. Do not modify.
// source: tensorflow_serving/apis/classification.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/classification.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/classification.pbjson.dart",
"repo_id": "codelabs",
"token_count": 1832
} | 74 |
///
// Generated code. Do not modify.
// source: tensorflow_serving/apis/prediction_service.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_f... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/prediction_service.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/prediction_service.pb.dart",
"repo_id": "codelabs",
"token_count": 132
} | 75 |
syntax = "proto3";
package tensorflow;
import "tensorflow/core/framework/attr_value.proto";
import "tensorflow/core/framework/full_type.proto";
import "tensorflow/core/framework/resource_handle.proto";
import "tensorflow/core/framework/types.proto";
option cc_enable_arenas = true;
option java_outer_classname = "OpDe... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/op_def.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/op_def.proto",
"repo_id": "codelabs",
"token_count": 2334
} | 76 |
syntax = "proto3";
package tensorflow.serving;
option cc_enable_arenas = true;
import "google/protobuf/wrappers.proto";
// Metadata for an inference request such as the model name and version.
message ModelSpec {
// Required servable name.
string name = 1;
// Optional choice of which version of the model to u... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/model.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/model.proto",
"repo_id": "codelabs",
"token_count": 284
} | 77 |
name: claat_export_images
description: A tool to export images from a CLAAT codelab
version: 1.0.0
repository: https://github.com/flutter/codelabs
environment:
sdk: ^3.2.0
dependencies:
args: ^2.4.2
googleapis: ^11.2.0
googleapis_auth: ^1.4.1
http: ^1.1.0
image: ^4.0.17
json_annotation: ^4.8.1
path: ^... | codelabs/tooling/claat_export_images/pubspec.yaml/0 | {
"file_path": "codelabs/tooling/claat_export_images/pubspec.yaml",
"repo_id": "codelabs",
"token_count": 210
} | 78 |
// Copyright 2022 The Flutter team. 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:io';
import 'package:codelab_rebuild/codelab_rebuild.dart';
import 'package:logging/logging.dart';
void main(List<String> arguments) {
Logger.... | codelabs/tooling/codelab_rebuild/bin/codelab_rebuild.dart/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/bin/codelab_rebuild.dart",
"repo_id": "codelabs",
"token_count": 262
} | 79 |
include: ../../analysis_options.yaml
| codelabs/webview_flutter/step_08/analysis_options.yaml/0 | {
"file_path": "codelabs/webview_flutter/step_08/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 80 |
#import "GeneratedPluginRegistrant.h"
| codelabs/webview_flutter/step_10/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/webview_flutter/step_10/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 81 |
# DevTools style guide
We fully follow [Effective Dart](https://dart.dev/guides/language/effective-dart)
and some items of
[Style guide for Flutter repo](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo):
## Order of getters and setters
When an object owns and exposes a (listenable) value,
more c... | devtools/STYLE.md/0 | {
"file_path": "devtools/STYLE.md",
"repo_id": "devtools",
"token_count": 648
} | 82 |
import 'package:flutter/material.dart';
class Animals extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
itemExtent: 75.0,
children: _buildListItems(),
);
}
List<Widget> _buildListItems() {
final items = <Widget>[];
for (int i = 1; i <= 1000; ... | devtools/case_study/code_size/optimized/code_size_images/lib/animals.dart/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/lib/animals.dart",
"repo_id": "devtools",
"token_count": 512
} | 83 |
#include "ephemeral/Flutter-Generated.xcconfig"
| devtools/case_study/code_size/optimized/code_size_package/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_package/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "devtools",
"token_count": 19
} | 84 |
#import "GeneratedPluginRegistrant.h"
| devtools/case_study/code_size/unoptimized/code_size_images/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "devtools/case_study/code_size/unoptimized/code_size_images/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "devtools",
"token_count": 13
} | 85 |
# Using Tab Bar
A material design widget that displays a horizontal row of tabs.
Read ([Documentation](https://api.flutter.dev/flutter/material/TabBar-class.html)) ([Material Design Spec](https://m2.material.io/components/tabs))
<img src="demo_img.gif" height="600em" />
| devtools/case_study/memory_leaks/memory_leak_app/README.md/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/README.md",
"repo_id": "devtools",
"token_count": 86
} | 86 |
// Copyright 2019 The Chromium Authors. 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:intl/intl.dart';
class Logging {
Logging() {
model = TimeModel(this)..start();
}
late final TimeModel mod... | devtools/case_study/memory_leaks/memory_leak_app/lib/logging.dart/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/lib/logging.dart",
"repo_id": "devtools",
"token_count": 1085
} | 87 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>platform_channel</title>
</head>
<body>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
| devtools/case_study/platform_channel/web/index.html/0 | {
"file_path": "devtools/case_study/platform_channel/web/index.html",
"repo_id": "devtools",
"token_count": 76
} | 88 |
{
// Set current working directory to devtools_app.
"terminal.integrated.cwd": "devtools_app",
"dart.showTodos": false,
}
| devtools/packages/.vscode/settings.json/0 | {
"file_path": "devtools/packages/.vscode/settings.json",
"repo_id": "devtools",
"token_count": 54
} | 89 |
// Copyright 2023 The Chromium 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 initial page to load upon opening the DevTools benchmark app or
/// reloading it in Chrome.
//
// We use an empty initial page so that the benchma... | devtools/packages/devtools_app/benchmark/test_infra/common.dart/0 | {
"file_path": "devtools/packages/devtools_app/benchmark/test_infra/common.dart",
"repo_id": "devtools",
"token_count": 188
} | 90 |
// Copyright 2023 The Chromium Authors. 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 'dart:io';
import '_test_app_driver.dart';
enum TestFileArgItems {
experimentsOn,
appPath,
}
const _defaultFlutterApp... | devtools/packages/devtools_app/integration_test/test_infra/run/_in_file_args.dart/0 | {
"file_path": "devtools/packages/devtools_app/integration_test/test_infra/run/_in_file_args.dart",
"repo_id": "devtools",
"token_count": 847
} | 91 |
// Copyright 2023 The Chromium Authors. All rights 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 '../../shared/analytics/analytics.dart' as ga;
import '../../shared/analytics/constants.dart' as gac;
impo... | devtools/packages/devtools_app/lib/src/extensions/embedded/view.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/extensions/embedded/view.dart",
"repo_id": "devtools",
"token_count": 459
} | 92 |
// Copyright 2023 The Chromium Authors. 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:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
impo... | devtools/packages/devtools_app/lib/src/framework/settings_dialog.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/framework/settings_dialog.dart",
"repo_id": "devtools",
"token_count": 2233
} | 93 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/... | devtools/packages/devtools_app/lib/src/screens/debugger/file_search.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/debugger/file_search.dart",
"repo_id": "devtools",
"token_count": 4597
} | 94 |
// Copyright 2019 The Chromium 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 library must not have direct dependencies on dart:html.
///
/// This allows tests of the complicated logic in this class to run on the VM
/// and... | devtools/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/inspector/inspector_controller.dart",
"repo_id": "devtools",
"token_count": 9976
} | 95 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../../../shared/primitives/math_utils.dart';
import '../... | devtools/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/widget_constraints.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/inspector/layout_explorer/ui/widget_constraints.dart",
"repo_id": "devtools",
"token_count": 2925
} | 96 |
// Copyright 2023 The Chromium Authors. All rights 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 StaticMemoryBody extends StatelessWidget {
const StaticMemoryBody({super.key});
@override
Widget bui... | devtools/packages/devtools_app/lib/src/screens/memory/framework/static/static_screen_body.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/framework/static/static_screen_body.dart",
"repo_id": "devtools",
"token_count": 116
} | 97 |
// Copyright 2023 The Chromium Authors. All rights 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 '../../../../../shared/memory/adapted_heap_data.dart';
import '../../../shared/heap/class_filter.dart';
... | devtools/packages/devtools_app/lib/src/screens/memory/panes/diff/controller/class_data.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/panes/diff/controller/class_data.dart",
"repo_id": "devtools",
"token_count": 539
} | 98 |
Documentation: https://docs.flutter.dev/development/tools/devtools/memory#profile-tab | devtools/packages/devtools_app/lib/src/screens/memory/panes/profile/ALLOCATION_PROFILE.md/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/panes/profile/ALLOCATION_PROFILE.md",
"repo_id": "devtools",
"token_count": 24
} | 99 |
// Copyright 2023 The Chromium Authors. All rights 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 '../../../../shared/common_widgets.dart';
import '../../../../shared/primitives/utils.dart';
typedef Menu... | devtools/packages/devtools_app/lib/src/screens/memory/shared/primitives/instance_context_menu.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/shared/primitives/instance_context_menu.dart",
"repo_id": "devtools",
"token_count": 560
} | 100 |
// Copyright 2022 The Chromium Authors. All rights 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 '../../frame_analysis/frame_analysis_model.dart';
@immutable
class EnhanceTracingState {
const Enhanc... | devtools/packages/devtools_app/lib/src/screens/performance/panes/controls/enhance_tracing/enhance_tracing_model.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/performance/panes/controls/enhance_tracing/enhance_tracing_model.dart",
"repo_id": "devtools",
"token_count": 268
} | 101 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.dart';
import 'package:f... | devtools/packages/devtools_app/lib/src/screens/profiler/profiler_screen.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/profiler/profiler_screen.dart",
"repo_id": "devtools",
"token_count": 2715
} | 102 |
// Copyright 2021 The Chromium Authors. All rights 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';
/// A delegate that allows using ListView with an undetermined list length
/// while preserve the "build only what... | devtools/packages/devtools_app/lib/src/screens/provider/sliver_iterable_child_delegate.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/provider/sliver_iterable_child_delegate.dart",
"repo_id": "devtools",
"token_count": 424
} | 103 |
// Copyright 2023 The Chromium Authors. 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:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import 'package:vm_service/vm_service.dart';
... | devtools/packages/devtools_app/lib/src/screens/vm_developer/object_inspector/vm_instance_display.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/vm_developer/object_inspector/vm_instance_display.dart",
"repo_id": "devtools",
"token_count": 2991
} | 104 |
// Copyright 2022 The Chromium Authors. All rights 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:vm_service/vm_service.dart';
/// Converts JSON strings to fake VM service response objects, all... | devtools/packages/devtools_app/lib/src/service/json_to_service_cache.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/service/json_to_service_cache.dart",
"repo_id": "devtools",
"token_count": 2644
} | 105 |
// Copyright 2021 The Chromium Authors. 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 '_analytics_controller_stub.dart'
if (dart.library.js_interop) '_analytics_con... | devtools/packages/devtools_app/lib/src/shared/analytics/analytics_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/analytics/analytics_controller.dart",
"repo_id": "devtools",
"token_count": 896
} | 106 |
// Copyright 2020 The Chromium Authors. 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 'chart_controller.dart';
class Data {
Data(this.timestamp, this.y);
final int t... | devtools/packages/devtools_app/lib/src/shared/charts/chart_trace.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/charts/chart_trace.dart",
"repo_id": "devtools",
"token_count": 3716
} | 107 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../../framework/framework_core.dart';
import '_framework_initialize_desktop.dart'
if (dart.library.js_interop) '_framework_initialize_web.d... | devtools/packages/devtools_app/lib/src/shared/config_specific/framework_initialize/framework_initialize.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/config_specific/framework_initialize/framework_initialize.dart",
"repo_id": "devtools",
"token_count": 136
} | 108 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:logging/logging.dart';
import '../../constants.dart';
import '../../log_storage.dart';
import 'logger.dart';
/// Helper for setting the ... | devtools/packages/devtools_app/lib/src/shared/config_specific/logger/logger_helpers.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/config_specific/logger/logger_helpers.dart",
"repo_id": "devtools",
"token_count": 432
} | 109 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Store and manipulate the expression evaluation history.
class EvalHistory {
var _historyPosition = -1;
/// Get the expression evaluation history.... | devtools/packages/devtools_app/lib/src/shared/console/primitives/eval_history.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/console/primitives/eval_history.dart",
"repo_id": "devtools",
"token_count": 430
} | 110 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This code is directly based on src/io/flutter/InspectorService.java.
//
// If you add methods to this class you should also add them to
// InspectorSer... | devtools/packages/devtools_app/lib/src/shared/diagnostics/inspector_service.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/diagnostics/inspector_service.dart",
"repo_id": "devtools",
"token_count": 15169
} | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.