text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/firebase-get-to-know-flutter/step_07/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/step_07/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
100
// TODO: Replace with file generated by FlutterFire CLI. // ignore_for_file: lines_longer_than_80_chars import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb, TargetPlatform; /// Default [FirebaseOptions] for use with you...
codelabs/firebase-get-to-know-flutter/step_09/lib/firebase_options.dart/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/step_09/lib/firebase_options.dart", "repo_id": "codelabs", "token_count": 561 }
101
<?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "group:Runner.xcodeproj"> </FileRef> <FileRef location = "group:Pods/Pods.xcodeproj"> </FileRef> </Workspace>
codelabs/firebase-get-to-know-flutter/step_09/macos/Runner.xcworkspace/contents.xcworkspacedata/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/step_09/macos/Runner.xcworkspace/contents.xcworkspacedata", "repo_id": "codelabs", "token_count": 103 }
102
// 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_03/lib/main.dart/0
{ "file_path": "codelabs/github-client/step_03/lib/main.dart", "repo_id": "codelabs", "token_count": 1874 }
103
// 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/src/github_summary.dart/0
{ "file_path": "codelabs/github-client/step_07/lib/src/github_summary.dart", "repo_id": "codelabs", "token_count": 3188 }
104
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/github-client/step_07/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/github-client/step_07/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
105
name: Google Maps in Flutter steps: - name: step_3 steps: - name: Remove generated code rmdir: step_3 - name: Create project flutter: create google_maps_in_flutter --platforms android,ios,web - name: Strip DEVELOPMENT_TEAM strip-lines-containing: DEVELOPMENT_TEAM = ...
codelabs/google-maps-in-flutter/codelab_rebuild.yaml/0
{ "file_path": "codelabs/google-maps-in-flutter/codelab_rebuild.yaml", "repo_id": "codelabs", "token_count": 45674 }
106
package com.example.google_maps_in_flutter import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity()
codelabs/google-maps-in-flutter/step_4/android/app/src/main/kotlin/com/example/google_maps_in_flutter/MainActivity.kt/0
{ "file_path": "codelabs/google-maps-in-flutter/step_4/android/app/src/main/kotlin/com/example/google_maps_in_flutter/MainActivity.kt", "repo_id": "codelabs", "token_count": 40 }
107
/* * Copyright 2019 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 ...
codelabs/google-maps-in-flutter/step_5/lib/main.dart/0
{ "file_path": "codelabs/google-maps-in-flutter/step_5/lib/main.dart", "repo_id": "codelabs", "token_count": 826 }
108
import 'package:flutter/material.dart'; import 'app.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Haiku Generator Demo', theme: ThemeData( useMat...
codelabs/haiku_generator/finished/lib/main.dart/0
{ "file_path": "codelabs/haiku_generator/finished/lib/main.dart", "repo_id": "codelabs", "token_count": 162 }
109
import 'package:flutter/material.dart'; import 'package:haiku_generator/controller/poem_controller.dart'; import 'package:haiku_generator/controller/product_controller.dart'; import 'package:haiku_generator/widgets/shimmer_loading_anim.dart'; import 'domain/models/product.dart'; class HaikuPage extends StatefulWidget...
codelabs/haiku_generator/step0/lib/app.dart/0
{ "file_path": "codelabs/haiku_generator/step0/lib/app.dart", "repo_id": "codelabs", "token_count": 2274 }
110
#import "GeneratedPluginRegistrant.h"
codelabs/homescreen_codelab/step_03/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/homescreen_codelab/step_03/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
111
<?xml version="1.0" encoding="utf-8"?><!-- Background for widgets to make the rounded corners based on the appWidgetRadius attribute value --> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="?attr/appWidgetRadius" /> <solid android:color...
codelabs/homescreen_codelab/step_04/android/app/src/main/res/drawable-v21/app_widget_background.xml/0
{ "file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/drawable-v21/app_widget_background.xml", "repo_id": "codelabs", "token_count": 116 }
112
<resources> <color name="light_blue_50">#FFE1F5FE</color> <color name="light_blue_200">#FF81D4FA</color> <color name="light_blue_600">#FF039BE5</color> <color name="light_blue_900">#FF01579B</color> </resources>
codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/colors.xml/0
{ "file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/colors.xml", "repo_id": "codelabs", "token_count": 99 }
113
{ "colors" : [ { "idiom" : "universal" } ], "info" : { "author" : "xcode", "version" : 1 } }
codelabs/homescreen_codelab/step_04/ios/NewsWidgets/Assets.xcassets/AccentColor.colorset/Contents.json/0
{ "file_path": "codelabs/homescreen_codelab/step_04/ios/NewsWidgets/Assets.xcassets/AccentColor.colorset/Contents.json", "repo_id": "codelabs", "token_count": 70 }
114
name: homescreen_widgets description: A sample Flutter project for adding home screen widgets. publish_to: 'none' version: 1.0.0+1 environment: sdk: ^3.2.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 shared_preferences: ^2.0.15 home_widget: ^0.3.0 dev_dependencies: flutter_test: ...
codelabs/homescreen_codelab/step_04/pubspec.yaml/0
{ "file_path": "codelabs/homescreen_codelab/step_04/pubspec.yaml", "repo_id": "codelabs", "token_count": 210 }
115
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CADisableMinimumFrameDurationOnPhone</key> <true/> <key>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBun...
codelabs/homescreen_codelab/step_06/ios/Runner/Info.plist/0
{ "file_path": "codelabs/homescreen_codelab/step_06/ios/Runner/Info.plist", "repo_id": "codelabs", "token_count": 674 }
116
import 'package:flutter/cupertino.dart'; import 'dash_counter.dart'; import 'firebase_notifier.dart'; class DashUpgrades extends ChangeNotifier { DashCounter counter; FirebaseNotifier firebaseNotifier; DashUpgrades(this.counter, this.firebaseNotifier) { counter.addListener(_onCounterChange); _updateUpg...
codelabs/in_app_purchases/complete/app/lib/logic/dash_upgrades.dart/0
{ "file_path": "codelabs/in_app_purchases/complete/app/lib/logic/dash_upgrades.dart", "repo_id": "codelabs", "token_count": 594 }
117
### Configuration Files Create `lib/constants.dart` with: ``` const androidPackageId = "your Android package ID"; const appStoreIssuerId = 'App Store Key issuer ID'; const appStoreKeyId = 'App Store Keu ID'; const appStoreSharedSecret = "App Store shared secret"; const bundleId = 'your iOS bundle ID'; const googlePla...
codelabs/in_app_purchases/complete/dart-backend/README.md/0
{ "file_path": "codelabs/in_app_purchases/complete/dart-backend/README.md", "repo_id": "codelabs", "token_count": 223 }
118
const cloudRegion = 'europe-west1'; const storeKeyConsumable = 'dash_consumable_2k'; const storeKeyUpgrade = 'dash_upgrade_3d'; const storeKeySubscription = 'dash_subscription_doubler'; // TODO: Replace by your own server IP const serverIp = '192.168.178.46';
codelabs/in_app_purchases/step_00/app/lib/constants.dart/0
{ "file_path": "codelabs/in_app_purchases/step_00/app/lib/constants.dart", "repo_id": "codelabs", "token_count": 89 }
119
import 'package:dashclicker/main.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('App starts', (tester) async { await tester.pumpWidget(const MyApp()); expect(find.text('Tim Sneath'), findsOneWidget); }); }
codelabs/in_app_purchases/step_00/app/test/widget_test.dart/0
{ "file_path": "codelabs/in_app_purchases/step_00/app/test/widget_test.dart", "repo_id": "codelabs", "token_count": 93 }
120
import 'package:dashclicker/main.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:in_app_purchase/in_app_purchase.dart'; import 'package:in_app_purchase_platform_interface/src/in_app_purchase_platform_addition.dart'; void main() { testWidgets('App starts', (tester) async { IAPConnection.in...
codelabs/in_app_purchases/step_07/app/test/widget_test.dart/0
{ "file_path": "codelabs/in_app_purchases/step_07/app/test/widget_test.dart", "repo_id": "codelabs", "token_count": 530 }
121
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.dashclicker"> <!-- Flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> <uses-permission android:name="android.permission.INTERNET"/> <...
codelabs/in_app_purchases/step_10/app/android/app/src/profile/AndroidManifest.xml/0
{ "file_path": "codelabs/in_app_purchases/step_10/app/android/app/src/profile/AndroidManifest.xml", "repo_id": "codelabs", "token_count": 108 }
122
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../logic/dash_purchases.dart'; import '../logic/firebase_notifier.dart'; import '../model/firebase_state.dart'; import '../model/purchasable_product.dart'; import '../model/store_state.dart'; import '../repo/iap_repo.dart'; import...
codelabs/in_app_purchases/step_10/app/lib/pages/purchase_page.dart/0
{ "file_path": "codelabs/in_app_purchases/step_10/app/lib/pages/purchase_page.dart", "repo_id": "codelabs", "token_count": 1412 }
123
class ProductData { final String productId; final ProductType type; const ProductData(this.productId, this.type); } enum ProductType { subscription, nonSubscription, } const productDataMap = { 'dash_consumable_2k': ProductData( 'dash_consumable_2k', ProductType.nonSubscription, ), 'dash_upgra...
codelabs/in_app_purchases/step_10/dart-backend/lib/products.dart/0
{ "file_path": "codelabs/in_app_purchases/step_10/dart-backend/lib/products.dart", "repo_id": "codelabs", "token_count": 190 }
124
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/namer/step_04_b_behavior/android/gradle.properties/0
{ "file_path": "codelabs/namer/step_04_b_behavior/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
125
name: namer_app description: A new Flutter project. publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 0.0.1+1 environment: sdk: ^3.2.0 dependencies: flutter: sdk: flutter english_words: ^4.0.0 provider: ^6.0.0 dev_dependencies: flutter_test: sdk: flutter flutter...
codelabs/namer/step_04_b_behavior/pubspec.yaml/0
{ "file_path": "codelabs/namer/step_04_b_behavior/pubspec.yaml", "repo_id": "codelabs", "token_count": 157 }
126
#include "Generated.xcconfig"
codelabs/namer/step_05_b_extract/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/namer/step_05_b_extract/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
127
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/namer/step_05_b_extract/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/namer/step_05_b_extract/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
128
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/namer/step_05_c_card_padding/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/namer/step_05_c_card_padding/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
129
include: package:flutter_lints/flutter.yaml linter: rules: avoid_print: false prefer_const_constructors_in_immutables: false prefer_const_constructors: false prefer_const_literals_to_create_immutables: false prefer_final_fields: false unnecessary_breaks: true use_key_in_widget_constructor...
codelabs/namer/step_05_e_text_style/analysis_options.yaml/0
{ "file_path": "codelabs/namer/step_05_e_text_style/analysis_options.yaml", "repo_id": "codelabs", "token_count": 120 }
130
#include "Generated.xcconfig"
codelabs/namer/step_05_g_center_vertical/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/namer/step_05_g_center_vertical/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
131
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/namer/step_05_g_center_vertical/macos/Flutter/Flutter-Debug.xcconfig/0
{ "file_path": "codelabs/namer/step_05_g_center_vertical/macos/Flutter/Flutter-Debug.xcconfig", "repo_id": "codelabs", "token_count": 19 }
132
#import "GeneratedPluginRegistrant.h"
codelabs/namer/step_05_h_center_horizontal/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/namer/step_05_h_center_horizontal/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
133
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/namer/step_05_h_center_horizontal/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/namer/step_05_h_center_horizontal/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
134
package com.example.namer_app import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity()
codelabs/namer/step_06_c_add_like_button/android/app/src/main/kotlin/com/example/namer_app/MainActivity.kt/0
{ "file_path": "codelabs/namer/step_06_c_add_like_button/android/app/src/main/kotlin/com/example/namer_app/MainActivity.kt", "repo_id": "codelabs", "token_count": 36 }
135
import 'package:english_words/english_words.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return ChangeNotifierProvider...
codelabs/namer/step_07_b_convert_to_stateful/lib/main.dart/0
{ "file_path": "codelabs/namer/step_07_b_convert_to_stateful/lib/main.dart", "repo_id": "codelabs", "token_count": 1820 }
136
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/namer/step_07_d_use_selectedindex/android/gradle.properties/0
{ "file_path": "codelabs/namer/step_07_d_use_selectedindex/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
137
#include "Generated.xcconfig"
codelabs/namer/step_08/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/namer/step_08/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
138
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/namer/step_08/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/namer/step_08/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
139
// Copyright 2023 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math'; import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:vector_math/vector_math_64.dart' as v64; import 'orb_shader...
codelabs/next-gen-ui/step_01/lib/orb_shader/orb_shader_painter.dart/0
{ "file_path": "codelabs/next-gen-ui/step_01/lib/orb_shader/orb_shader_painter.dart", "repo_id": "codelabs", "token_count": 1118 }
140
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <window_size/window_size_plugin.h> void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) window_size_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "W...
codelabs/next-gen-ui/step_02_b/linux/flutter/generated_plugin_registrant.cc/0
{ "file_path": "codelabs/next-gen-ui/step_02_b/linux/flutter/generated_plugin_registrant.cc", "repo_id": "codelabs", "token_count": 151 }
141
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/next-gen-ui/step_02_c/android/gradle.properties/0
{ "file_path": "codelabs/next-gen-ui/step_02_c/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
142
// Copyright 2023 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' as ui; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_animate/flutter_animate.da...
codelabs/next-gen-ui/step_02_c/lib/common/shader_effect.dart/0
{ "file_path": "codelabs/next-gen-ui/step_02_c/lib/common/shader_effect.dart", "repo_id": "codelabs", "token_count": 3607 }
143
name: next_gen_ui description: "Building a Next Generation UI in Flutter" publish_to: 'none' version: 0.1.0 environment: sdk: '>=3.3.0-279.2.beta <4.0.0' dependencies: cupertino_icons: ^1.0.6 extra_alignments: ^1.0.0+1 flextras: ^1.0.0 flutter: sdk: flutter flutter_animate: ^4.5.0 focusable_control_...
codelabs/next-gen-ui/step_02_c/pubspec.yaml/0
{ "file_path": "codelabs/next-gen-ui/step_02_c/pubspec.yaml", "repo_id": "codelabs", "token_count": 444 }
144
// Copyright 2023 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #define M_PI 3.14159265 #define M_INVPI 0.31830989 float hash_1d(float v) { float u = 50.0 * sin(v * 3000.0); return 2.0 * fract(2.0 * u * u) - 1.0; }...
codelabs/next-gen-ui/step_03_a/assets/shaders/common/common.glsl/0
{ "file_path": "codelabs/next-gen-ui/step_03_a/assets/shaders/common/common.glsl", "repo_id": "codelabs", "token_count": 189 }
145
// Copyright 2023 The Flutter Authors. 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'; class UiScaler extends StatelessWidget { const UiScaler({ super.key, required this....
codelabs/next-gen-ui/step_03_a/lib/common/ui_scaler.dart/0
{ "file_path": "codelabs/next-gen-ui/step_03_a/lib/common/ui_scaler.dart", "repo_id": "codelabs", "token_count": 251 }
146
// Copyright 2023 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #version 460 core #include "common/common.glsl" #include <flutter/runtime_effect.glsl> uniform vec2 uResolution; uniform float uTime; uniform sampler2D u...
codelabs/next-gen-ui/step_03_b/assets/shaders/ui_glitch.frag/0
{ "file_path": "codelabs/next-gen-ui/step_03_b/assets/shaders/ui_glitch.frag", "repo_id": "codelabs", "token_count": 716 }
147
// Copyright 2023 The Flutter Authors. 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 OrbShaderConfig { const OrbShaderConfig({ this.zoom = 0.3, this.exposure = 0.4, this.roughness...
codelabs/next-gen-ui/step_03_b/lib/orb_shader/orb_shader_config.dart/0
{ "file_path": "codelabs/next-gen-ui/step_03_b/lib/orb_shader/orb_shader_config.dart", "repo_id": "codelabs", "token_count": 1482 }
148
// Copyright 2023 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:math'; import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:flutter_animate/flutter_animate.dart'; ...
codelabs/next-gen-ui/step_03_c/lib/orb_shader/orb_shader_widget.dart/0
{ "file_path": "codelabs/next-gen-ui/step_03_c/lib/orb_shader/orb_shader_widget.dart", "repo_id": "codelabs", "token_count": 2009 }
149
// // Generated file. Do not edit. // import FlutterMacOS import Foundation import window_size func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin")) }
codelabs/next-gen-ui/step_03_c/macos/Flutter/GeneratedPluginRegistrant.swift/0
{ "file_path": "codelabs/next-gen-ui/step_03_c/macos/Flutter/GeneratedPluginRegistrant.swift", "repo_id": "codelabs", "token_count": 76 }
150
// Copyright 2023 The Flutter Authors. 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 '../assets.dart'; import '../styles.dart'; import 'title_screen_ui.dart'; class TitleScreen extends Statef...
codelabs/next-gen-ui/step_04_a/lib/title_screen/title_screen.dart/0
{ "file_path": "codelabs/next-gen-ui/step_04_a/lib/title_screen/title_screen.dart", "repo_id": "codelabs", "token_count": 1609 }
151
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/next-gen-ui/step_04_a/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/next-gen-ui/step_04_a/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
152
include: ../../analysis_options.yaml analyzer: errors: unused_field: ignore unused_element: ignore
codelabs/next-gen-ui/step_04_d/analysis_options.yaml/0
{ "file_path": "codelabs/next-gen-ui/step_04_d/analysis_options.yaml", "repo_id": "codelabs", "token_count": 39 }
153
// Copyright 2023 The Flutter Authors. 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 'ticking_builder.dart'; typedef ReactiveWidgetBuilder = Widget Function( BuildContext context, double ...
codelabs/next-gen-ui/step_04_d/lib/common/reactive_widget.dart/0
{ "file_path": "codelabs/next-gen-ui/step_04_d/lib/common/reactive_widget.dart", "repo_id": "codelabs", "token_count": 315 }
154
// Copyright 2023 The Flutter Authors. 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/material.dart'; class ShaderPainter extends CustomPainter { ShaderPainter(this.shader, {this.update}); fin...
codelabs/next-gen-ui/step_04_e/lib/common/shader_painter.dart/0
{ "file_path": "codelabs/next-gen-ui/step_04_e/lib/common/shader_painter.dart", "repo_id": "codelabs", "token_count": 257 }
155
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "ephemeral/Flutter-Generated.xcconfig"
codelabs/next-gen-ui/step_06/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/next-gen-ui/step_06/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 48 }
156
package com.example.testing_app import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity()
codelabs/testing_codelab/step_05/android/app/src/main/kotlin/com/example/testing_app/MainActivity.kt/0
{ "file_path": "codelabs/testing_codelab/step_05/android/app/src/main/kotlin/com/example/testing_app/MainActivity.kt", "repo_id": "codelabs", "token_count": 35 }
157
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/testing_codelab/step_06/android/gradle.properties/0
{ "file_path": "codelabs/testing_codelab/step_06/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
158
#import "GeneratedPluginRegistrant.h"
codelabs/testing_codelab/step_07/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/testing_codelab/step_07/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
159
// Copyright 2020 The Flutter 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 is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility in the flutter_test pac...
codelabs/testing_codelab/step_07/test/widget_test.dart/0
{ "file_path": "codelabs/testing_codelab/step_07/test/widget_test.dart", "repo_id": "codelabs", "token_count": 240 }
160
// Copyright 2021 The Flutter Authors. 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'; import 'package:testing_app/main.dart'; void main() { group('Te...
codelabs/testing_codelab/step_08/integration_test/app_test.dart/0
{ "file_path": "codelabs/testing_codelab/step_08/integration_test/app_test.dart", "repo_id": "codelabs", "token_count": 502 }
161
include ':app' def localPropertiesFile = new File(rootProject.projectDir, "local.properties") def properties = new Properties() assert localPropertiesFile.exists() localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSd...
codelabs/tfagents-flutter/step0/frontend/android/settings.gradle/0
{ "file_path": "codelabs/tfagents-flutter/step0/frontend/android/settings.gradle", "repo_id": "codelabs", "token_count": 142 }
162
package com.example.frontend import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
codelabs/tfagents-flutter/step2/frontend/android/app/src/main/kotlin/com/example/frontend/MainActivity.kt/0
{ "file_path": "codelabs/tfagents-flutter/step2/frontend/android/app/src/main/kotlin/com/example/frontend/MainActivity.kt", "repo_id": "codelabs", "token_count": 37 }
163
#Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
codelabs/tfagents-flutter/step3/frontend/android/gradle/wrapper/gradle-wrapper.properties/0
{ "file_path": "codelabs/tfagents-flutter/step3/frontend/android/gradle/wrapper/gradle-wrapper.properties", "repo_id": "codelabs", "token_count": 84 }
164
# frontend A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) - [Cookbook: Useful Flutter samples](https:/...
codelabs/tfagents-flutter/step4/frontend/README.md/0
{ "file_path": "codelabs/tfagents-flutter/step4/frontend/README.md", "repo_id": "codelabs", "token_count": 148 }
165
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.network.client</key> <true/> </dict> </plist>
codelabs/tfagents-flutter/step4/frontend/macos/Runner/Release.entitlements/0
{ "file_path": "codelabs/tfagents-flutter/step4/frontend/macos/Runner/Release.entitlements", "repo_id": "codelabs", "token_count": 131 }
166
#import "GeneratedPluginRegistrant.h"
codelabs/tfagents-flutter/step6/frontend/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/tfagents-flutter/step6/frontend/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
167
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/tfagents-flutter/step6/frontend/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/tfagents-flutter/step6/frontend/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
168
include: ../../../analysis_options.yaml analyzer: linter: rules:
codelabs/tfrs-flutter/finished/frontend/analysis_options.yaml/0
{ "file_path": "codelabs/tfrs-flutter/finished/frontend/analysis_options.yaml", "repo_id": "codelabs", "token_count": 26 }
169
buildscript { ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { go...
codelabs/tfrs-flutter/finished/frontend/android/build.gradle/0
{ "file_path": "codelabs/tfrs-flutter/finished/frontend/android/build.gradle", "repo_id": "codelabs", "token_count": 258 }
170
// This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility that Flutter provides. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the value...
codelabs/tfrs-flutter/finished/frontend/test/widget_test.dart/0
{ "file_path": "codelabs/tfrs-flutter/finished/frontend/test/widget_test.dart", "repo_id": "codelabs", "token_count": 207 }
171
from flask import Flask from flask_cors import CORS from flask import jsonify, make_response, request import json, requests import numpy as np RETRIEVAL_URL = "http://localhost:8501/v1/models/retrieval:predict" RANKING_URL = "http://localhost:8501/v1/models/ranking:predict" NUM_OF_CANDIDATES = 10 app = Flask(__name__...
codelabs/tfrs-flutter/step0/backend/recommender.py/0
{ "file_path": "codelabs/tfrs-flutter/step0/backend/recommender.py", "repo_id": "codelabs", "token_count": 209 }
172
#import "GeneratedPluginRegistrant.h"
codelabs/tfrs-flutter/step0/frontend/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/tfrs-flutter/step0/frontend/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
173
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/tfrs-flutter/step0/frontend/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/tfrs-flutter/step0/frontend/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
174
model_config_list { config { name: 'retrieval' base_path: '/models/retrieval/exported-retrieval' model_platform: 'tensorflow' } config { name: 'ranking' base_path: '/models/ranking/exported-ranking' model_platform: 'tensorflow' } }
codelabs/tfrs-flutter/step3/backend/models.config/0
{ "file_path": "codelabs/tfrs-flutter/step3/backend/models.config", "repo_id": "codelabs", "token_count": 109 }
175
<jupyter_start><jupyter_text>Copyright 2022 The TensorFlow Authors.<jupyter_code>#@title 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...
codelabs/tfrs-flutter/step4/backend/retrieval/retrieval.ipynb/0
{ "file_path": "codelabs/tfrs-flutter/step4/backend/retrieval/retrieval.ipynb", "repo_id": "codelabs", "token_count": 2257 }
176
import Cocoa import FlutterMacOS class MainFlutterWindow: NSWindow { override func awakeFromNib() { let flutterViewController = FlutterViewController.init() let windowFrame = self.frame self.contentViewController = flutterViewController self.setFrame(windowFrame, display: true) RegisterGenerated...
codelabs/tfrs-flutter/step4/frontend/macos/Runner/MainFlutterWindow.swift/0
{ "file_path": "codelabs/tfrs-flutter/step4/frontend/macos/Runner/MainFlutterWindow.swift", "repo_id": "codelabs", "token_count": 124 }
177
#include "Generated.xcconfig"
codelabs/tfrs-flutter/step5/frontend/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/tfrs-flutter/step5/frontend/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
178
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/tfrs-flutter/step5/frontend/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/tfrs-flutter/step5/frontend/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
179
<!DOCTYPE html> <html> <head> <!-- If you are serving your web app in a path other than the root, change the href value below to reflect the base path you are serving from. The path provided below has to start and end with a slash "/" in order for it to work correctly. For more details: * ht...
codelabs/tfrs-flutter/step5/frontend/web/index.html/0
{ "file_path": "codelabs/tfrs-flutter/step5/frontend/web/index.html", "repo_id": "codelabs", "token_count": 1568 }
180
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
codelabs/tfserving-flutter/codelab2/finished/android/gradle.properties/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/android/gradle.properties", "repo_id": "codelabs", "token_count": 31 }
181
/// // 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,deprecated_...
codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/google/protobuf/any.pbjson.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/google/protobuf/any.pbjson.dart", "repo_id": "codelabs", "token_count": 398 }
182
/// // Generated code. Do not modify. // source: tensorflow/core/framework/function.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_fie...
codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/tensorflow/core/framework/function.pb.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/tensorflow/core/framework/function.pb.dart", "repo_id": "codelabs", "token_count": 7680 }
183
/// // 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/finished/lib/proto/generated/tensorflow/core/framework/tensor.pbenum.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/tensorflow/core/framework/tensor.pbenum.dart", "repo_id": "codelabs", "token_count": 116 }
184
/// // Generated code. Do not modify. // source: tensorflow_serving/apis/get_model_metadata.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/finished/lib/proto/generated/tensorflow_serving/apis/get_model_metadata.pb.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/tensorflow_serving/apis/get_model_metadata.pb.dart", "repo_id": "codelabs", "token_count": 3886 }
185
/// // 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/finished/lib/proto/generated/tensorflow_serving/apis/prediction_service.pbenum.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/generated/tensorflow_serving/apis/prediction_service.pbenum.dart", "repo_id": "codelabs", "token_count": 119 }
186
syntax = "proto3"; package tensorflow; import "tensorflow/core/framework/tensor_shape.proto"; import "tensorflow/core/framework/types.proto"; option cc_enable_arenas = true; option java_outer_classname = "ResourceHandle"; option java_multiple_files = true; option java_package = "org.tensorflow.framework"; option go_...
codelabs/tfserving-flutter/codelab2/finished/lib/proto/tensorflow/core/framework/resource_handle.proto/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/tensorflow/core/framework/resource_handle.proto", "repo_id": "codelabs", "token_count": 403 }
187
syntax = "proto3"; package tensorflow.serving; option cc_enable_arenas = true; import "tensorflow/core/framework/tensor.proto"; import "tensorflow_serving/apis/model.proto"; // PredictRequest specifies which TensorFlow model to run, as well as // how inputs are mapped to tensors and how outputs are filtered before /...
codelabs/tfserving-flutter/codelab2/finished/lib/proto/tensorflow_serving/apis/predict.proto/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/proto/tensorflow_serving/apis/predict.proto", "repo_id": "codelabs", "token_count": 389 }
188
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/tfserving-flutter/codelab2/finished/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/finished/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
189
/// // Generated code. Do not modify. // source: google/protobuf/wrappers.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 impor...
codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/wrappers.pb.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/wrappers.pb.dart", "repo_id": "codelabs", "token_count": 9645 }
190
/// // Generated code. Do not modify. // source: tensorflow/core/framework/function.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_fie...
codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/function.pbenum.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/function.pbenum.dart", "repo_id": "codelabs", "token_count": 115 }
191
/// // 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.pbjson.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/tensor.pbjson.dart", "repo_id": "codelabs", "token_count": 2858 }
192
/// // Generated code. Do not modify. // source: tensorflow/core/protobuf/saved_object_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_...
codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/saved_object_graph.pb.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/saved_object_graph.pb.dart", "repo_id": "codelabs", "token_count": 23429 }
193
/// // Generated code. Do not modify. // source: tensorflow_serving/apis/get_model_metadata.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/get_model_metadata.pbenum.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/get_model_metadata.pbenum.dart", "repo_id": "codelabs", "token_count": 120 }
194
/// // 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.pbgrpc.dart/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/prediction_service.pbgrpc.dart", "repo_id": "codelabs", "token_count": 2738 }
195
syntax = "proto3"; package tensorflow; import "tensorflow/core/framework/resource_handle.proto"; import "tensorflow/core/framework/tensor_shape.proto"; import "tensorflow/core/framework/types.proto"; option cc_enable_arenas = true; option java_outer_classname = "TensorProtos"; option java_multiple_files = true; opti...
codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/tensor.proto/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/tensor.proto", "repo_id": "codelabs", "token_count": 1039 }
196
syntax = "proto3"; package tensorflow.serving; option cc_enable_arenas = true; import "tensorflow_serving/apis/classification.proto"; import "tensorflow_serving/apis/get_model_metadata.proto"; import "tensorflow_serving/apis/inference.proto"; import "tensorflow_serving/apis/predict.proto"; import "tensorflow_serving/...
codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/prediction_service.proto/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/prediction_service.proto", "repo_id": "codelabs", "token_count": 315 }
197
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/tfserving-flutter/codelab2/starter/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
198
// Microsoft Visual C++ generated resource script. // #pragma code_page(65001) #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" /////////////////////////////////...
codelabs/tfserving-flutter/codelab2/starter/windows/runner/Runner.rc/0
{ "file_path": "codelabs/tfserving-flutter/codelab2/starter/windows/runner/Runner.rc", "repo_id": "codelabs", "token_count": 1035 }
199