text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
package com.example.ffigen_app_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| codelabs/ffigen_codelab/step_03/example/android/app/src/main/kotlin/com/example/ffigen_app_example/MainActivity.kt/0 | {
"file_path": "codelabs/ffigen_codelab/step_03/example/android/app/src/main/kotlin/com/example/ffigen_app_example/MainActivity.kt",
"repo_id": "codelabs",
"token_count": 38
} | 39 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "example",
"cwd": "example"... | codelabs/ffigen_codelab/step_05/.vscode/launch.json/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/.vscode/launch.json",
"repo_id": "codelabs",
"token_count": 179
} | 40 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint ffigen_app.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'ffigen_app'
s.version = '0.0.1'
s.summary = 'A new Flutter FFI plugin project.'
s.descripti... | codelabs/ffigen_codelab/step_05/ios/ffigen_app.podspec/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/ios/ffigen_app.podspec",
"repo_id": "codelabs",
"token_count": 478
} | 41 |
// Relative import to be able to reuse the C sources.
// See the comment in ../ffigen_app.podspec for more information.
#include "../../src/duktape.c"
| codelabs/ffigen_codelab/step_06/ios/Classes/duktape.c/0 | {
"file_path": "codelabs/ffigen_codelab/step_06/ios/Classes/duktape.c",
"repo_id": "codelabs",
"token_count": 46
} | 42 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/firebase-auth-flutterfire-ui/start/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/start/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 43 |
{
"indexes": [],
"fieldOverrides": []
}
| codelabs/firebase-emulator-suite/complete/firestore.indexes.json/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/firestore.indexes.json",
"repo_id": "codelabs",
"token_count": 21
} | 44 |
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'app_state.dart';
class LoggedOutView extends StatelessWidget {
final AppState state;
const LoggedOutView({super.key, required this.state});
@override
Widget build(BuildContext context) {
return Scaffold(
appBa... | codelabs/firebase-emulator-suite/complete/lib/logged_out_view.dart/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/lib/logged_out_view.dart",
"repo_id": "codelabs",
"token_count": 602
} | 45 |
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildD... | codelabs/firebase-emulator-suite/start/android/build.gradle/0 | {
"file_path": "codelabs/firebase-emulator-suite/start/android/build.gradle",
"repo_id": "codelabs",
"token_count": 232
} | 46 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/firebase-get-to-know-flutter/step_02/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_02/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 47 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
import 'guest_book_message.dart';
import 'src/widgets.dart';
class GuestBook extends Statef... | codelabs/firebase-get-to-know-flutter/step_09/lib/guest_book.dart/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_09/lib/guest_book.dart",
"repo_id": "codelabs",
"token_count": 1260
} | 48 |
// Copyright 2022 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/window_to_front/lib/window_to_front_platform_interface.dart/0 | {
"file_path": "codelabs/github-client/window_to_front/lib/window_to_front_platform_interface.dart",
"repo_id": "codelabs",
"token_count": 406
} | 49 |
/*
* 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/src/locations.dart/0 | {
"file_path": "codelabs/google-maps-in-flutter/step_5/lib/src/locations.dart",
"repo_id": "codelabs",
"token_count": 1036
} | 50 |
import 'package:flutter/material.dart';
LinearGradient shimmerGradient = const LinearGradient(
colors: <Color>[
Color(0xFFEBEBF4),
Color(0xFFF4F4F4),
Color(0xFFEBEBF4),
],
stops: <double>[
0.1,
0.3,
0.4,
],
begin: Alignment(-1.0, -0.3),
end: Alignment(1.0, 0.3),
);
| codelabs/haiku_generator/finished/lib/widgets/shimmer_gradient.dart/0 | {
"file_path": "codelabs/haiku_generator/finished/lib/widgets/shimmer_gradient.dart",
"repo_id": "codelabs",
"token_count": 149
} | 51 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/haiku_generator/finished/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/finished/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 52 |
import '../data/repositories/poem_repository_impl.dart';
import '../domain/repositories/abstract/poem_repository.dart';
class PoemController {
final PoemRepository poemRepository = PoemRepositoryImpl();
Future<String> getPoem(String productName) {
return poemRepository.getPoems(productName);
}
}
| codelabs/haiku_generator/step0/lib/controller/poem_controller.dart/0 | {
"file_path": "codelabs/haiku_generator/step0/lib/controller/poem_controller.dart",
"repo_id": "codelabs",
"token_count": 107
} | 53 |
// 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 package. 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... | codelabs/haiku_generator/step0/test/widget_test.dart/0 | {
"file_path": "codelabs/haiku_generator/step0/test/widget_test.dart",
"repo_id": "codelabs",
"token_count": 238
} | 54 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/haiku_generator/step1/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step1/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 55 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/haiku_generator/step3/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step3/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 56 |
<?xml version="1.0" encoding="utf-8"?><!--
Background for views inside widgets to make the rounded corners based on the
appWidgetInnerRadius attribute value
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="?attr/appWidgetInnerRadius" />
... | codelabs/homescreen_codelab/step_04/android/app/src/main/res/drawable-v21/app_widget_inner_view_background.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/drawable-v21/app_widget_inner_view_background.xml",
"repo_id": "codelabs",
"token_count": 123
} | 57 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Refer to App Widget Documentation for margin information
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
-->
<dimen name="widget_margin">0dp</dimen>
</resources> | codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/dimens.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_04/android/app/src/main/res/values/dimens.xml",
"repo_id": "codelabs",
"token_count": 88
} | 58 |
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
| codelabs/homescreen_codelab/step_04/ios/NewsWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json/0 | {
"file_path": "codelabs/homescreen_codelab/step_04/ios/NewsWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json",
"repo_id": "codelabs",
"token_count": 97
} | 59 |
<?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>UIAppFonts</key>
<array>
<string>HanaleiFill-Regular.ttf</string>
</array>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifie... | codelabs/homescreen_codelab/step_05/ios/NewsWidgets/Info.plist/0 | {
"file_path": "codelabs/homescreen_codelab/step_05/ios/NewsWidgets/Info.plist",
"repo_id": "codelabs",
"token_count": 183
} | 60 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Having themes.xml for night-v31 because of the priority order of the resource qualifiers.
-->
<style name="Theme.Android.AppWidgetContainerParent" parent="@android:style/Theme.DeviceDefault.DayNight">
<item name="appWidgetRadius">@android:d... | codelabs/homescreen_codelab/step_06/android/app/src/main/res/values-night-v31/themes.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/android/app/src/main/res/values-night-v31/themes.xml",
"repo_id": "codelabs",
"token_count": 167
} | 61 |
#import "GeneratedPluginRegistrant.h"
| codelabs/homescreen_codelab/step_06/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 62 |
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:google_sign_in/google_sign_in.dart';
impo... | codelabs/in_app_purchases/complete/app/lib/logic/firebase_notifier.dart/0 | {
"file_path": "codelabs/in_app_purchases/complete/app/lib/logic/firebase_notifier.dart",
"repo_id": "codelabs",
"token_count": 824
} | 63 |
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
linter:
rules:
avoid_types_on_closure_parameters: true
avoid_void_async: true
cancel_subscriptions: true
close_sinks: true
directives_ordering: true
package_api_docs: true
pack... | codelabs/in_app_purchases/complete/dart-backend/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/complete/dart-backend/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 217
} | 64 |
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : FlutterAppDelegate
@end
| codelabs/in_app_purchases/step_00/app/ios/Runner/AppDelegate.h/0 | {
"file_path": "codelabs/in_app_purchases/step_00/app/ios/Runner/AppDelegate.h",
"repo_id": "codelabs",
"token_count": 41
} | 65 |
// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
/// Default [FirebaseOpti... | codelabs/in_app_purchases/step_00/app/lib/firebase_options.dart/0 | {
"file_path": "codelabs/in_app_purchases/step_00/app/lib/firebase_options.dart",
"repo_id": "codelabs",
"token_count": 831
} | 66 |
# Defines what ignore for gcloud deploy
# Files and directories created by pub.
.dart_tool/
.packages
# Conventional directory for build output.
build/
| codelabs/in_app_purchases/step_00/dart-backend/.gcloudignore/0 | {
"file_path": "codelabs/in_app_purchases/step_00/dart-backend/.gcloudignore",
"repo_id": "codelabs",
"token_count": 43
} | 67 |
include: ../../../analysis_options.yaml
| codelabs/in_app_purchases/step_10/app/analysis_options.yaml/0 | {
"file_path": "codelabs/in_app_purchases/step_10/app/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 13
} | 68 |
buildscript {
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.... | codelabs/in_app_purchases/step_10/app/android/build.gradle/0 | {
"file_path": "codelabs/in_app_purchases/step_10/app/android/build.gradle",
"repo_id": "codelabs",
"token_count": 286
} | 69 |
#import "GeneratedPluginRegistrant.h"
| codelabs/in_app_purchases/step_10/app/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/in_app_purchases/step_10/app/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 70 |
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/cupertino.dart';
import '../constants.dart';
import '../logic/firebase_notifier.dart';
import '../model/past_purchase.dart';
class IAPRepo extends ChangeNotifier {
... | codelabs/in_app_purchases/step_10/app/lib/repo/iap_repo.dart/0 | {
"file_path": "codelabs/in_app_purchases/step_10/app/lib/repo/iap_repo.dart",
"repo_id": "codelabs",
"token_count": 781
} | 71 |
import 'products.dart';
/// Generic purchase handler,
/// must be implemented for Google Play and Apple Store
abstract class PurchaseHandler {
/// Verify if purchase is valid and update the database
Future<bool> verifyPurchase({
required String userId,
required ProductData productData,
required String ... | codelabs/in_app_purchases/step_10/dart-backend/lib/purchase_handler.dart/0 | {
"file_path": "codelabs/in_app_purchases/step_10/dart-backend/lib/purchase_handler.dart",
"repo_id": "codelabs",
"token_count": 401
} | 72 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:namer_app/main.dart';
void main() {
testWidgets('App starts', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
expect(find.text('A random AWESOME idea:'), findsOneWidget);
});
t... | codelabs/namer/step_04_b_behavior/test/widget_test.dart/0 | {
"file_path": "codelabs/namer/step_04_b_behavior/test/widget_test.dart",
"repo_id": "codelabs",
"token_count": 671
} | 73 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/namer/step_05_e_text_style/android/gradle.properties/0 | {
"file_path": "codelabs/namer/step_05_e_text_style/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 74 |
#include "Generated.xcconfig"
| codelabs/namer/step_05_g_center_vertical/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_g_center_vertical/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 75 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_05_g_center_vertical/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_g_center_vertical/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 76 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_05_h_center_horizontal/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_h_center_horizontal/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 77 |
#include "Generated.xcconfig"
| codelabs/namer/step_06_c_add_like_button/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_c_add_like_button/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 78 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_06_c_add_like_button/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_c_add_like_button/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 79 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_07_a_split_my_home_page/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_07_a_split_my_home_page/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 80 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_07_a_split_my_home_page/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_a_split_my_home_page/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 81 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_01/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_01/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 82 |
// 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';
class AssetPaths {
/// Images
static const String _images = 'assets/images';
static const String titleBgBase = '$_images/bg-base.... | codelabs/next-gen-ui/step_02_b/lib/assets.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_02_b/lib/assets.dart",
"repo_id": "codelabs",
"token_count": 595
} | 83 |
package com.example.next_gen_ui
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| codelabs/next-gen-ui/step_03_a/android/app/src/main/kotlin/com/example/next_gen_ui/MainActivity.kt/0 | {
"file_path": "codelabs/next-gen-ui/step_03_a/android/app/src/main/kotlin/com/example/next_gen_ui/MainActivity.kt",
"repo_id": "codelabs",
"token_count": 37
} | 84 |
// 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>
#define RAY_STEPS 30
uniform vec2 uResolution;
uniform vec4 uPack... | codelabs/next-gen-ui/step_03_a/assets/shaders/orb_shader.frag/0 | {
"file_path": "codelabs/next-gen-ui/step_03_a/assets/shaders/orb_shader.frag",
"repo_id": "codelabs",
"token_count": 4116
} | 85 |
// 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 TextStyles {
static const _font1 = TextStyle(fontFamily: 'Exo', color: Colors.white);
static TextStyle ... | codelabs/next-gen-ui/step_03_c/lib/styles.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_03_c/lib/styles.dart",
"repo_id": "codelabs",
"token_count": 396
} | 86 |
// 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:extra_alignments/extra_alignments.dart';
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
imp... | codelabs/next-gen-ui/step_04_a/lib/title_screen/title_screen_ui.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_04_a/lib/title_screen/title_screen_ui.dart",
"repo_id": "codelabs",
"token_count": 3643
} | 87 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_04_a/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_04_a/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 88 |
#import "GeneratedPluginRegistrant.h"
| codelabs/next-gen-ui/step_04_b/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/next-gen-ui/step_04_b/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 89 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/next-gen-ui/step_04_d/android/gradle.properties/0 | {
"file_path": "codelabs/next-gen-ui/step_04_d/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 90 |
#
# Generated file, do not edit.
#
list(APPEND FLUTTER_PLUGIN_LIST
window_size
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
target_link_libraries(${BINARY_NAME... | codelabs/next-gen-ui/step_04_d/linux/flutter/generated_plugins.cmake/0 | {
"file_path": "codelabs/next-gen-ui/step_04_d/linux/flutter/generated_plugins.cmake",
"repo_id": "codelabs",
"token_count": 317
} | 91 |
// 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 'package:flutter/scheduler.dart';
class TickingBuilder extends StatefulWidget {
const TickingBuilder({sup... | codelabs/next-gen-ui/step_04_e/lib/common/ticking_builder.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_04_e/lib/common/ticking_builder.dart",
"repo_id": "codelabs",
"token_count": 335
} | 92 |
// 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:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:flutter_anim... | codelabs/next-gen-ui/step_05_a/lib/main.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_05_a/lib/main.dart",
"repo_id": "codelabs",
"token_count": 409
} | 93 |
# 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.
name: testing_app
description: "App behind Flutter testing codelab."
publish_to: 'none'
version: 0.1.0
environment:
sdk: '>=3.3.0-279.2.beta <4.0.0'
depen... | codelabs/testing_codelab/step_05/pubspec.yaml/0 | {
"file_path": "codelabs/testing_codelab/step_05/pubspec.yaml",
"repo_id": "codelabs",
"token_count": 242
} | 94 |
// 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.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'p... | codelabs/testing_codelab/step_08/integration_test/perf_test.dart/0 | {
"file_path": "codelabs/testing_codelab/step_08/integration_test/perf_test.dart",
"repo_id": "codelabs",
"token_count": 358
} | 95 |
#include "Generated.xcconfig"
| codelabs/tfagents-flutter/step2/frontend/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step2/frontend/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 96 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfagents-flutter/step2/frontend/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step2/frontend/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 97 |
include: ../../../analysis_options.yaml
analyzer:
errors:
unused_import: ignore
unused_field: ignore
unused_local_variable: ignore
linter:
rules:
- use_super_parameters | codelabs/tfagents-flutter/step4/frontend/analysis_options.yaml/0 | {
"file_path": "codelabs/tfagents-flutter/step4/frontend/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 70
} | 98 |
# Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | codelabs/tfagents-flutter/step5/backend/training.py/0 | {
"file_path": "codelabs/tfagents-flutter/step5/backend/training.py",
"repo_id": "codelabs",
"token_count": 2917
} | 99 |
import 'dart:convert';
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:http/http.dart' as http;
class Inputs {
final List<double> _boardState;
Inputs(this._boardState);
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{... | codelabs/tfagents-flutter/step6/frontend/lib/game_agent.dart/0 | {
"file_path": "codelabs/tfagents-flutter/step6/frontend/lib/game_agent.dart",
"repo_id": "codelabs",
"token_count": 559
} | 100 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfagents-flutter/step6/frontend/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step6/frontend/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 101 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/tfrs-flutter/finished/frontend/android/gradle.properties/0 | {
"file_path": "codelabs/tfrs-flutter/finished/frontend/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 102 |
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
void main() => runApp(const RecommenderDemo());
class RecommenderDemo extends StatefulWidget {
const RecommenderDemo({super.key});
@override
State<RecommenderDemo> createState() => _Re... | codelabs/tfrs-flutter/step0/frontend/lib/main.dart/0 | {
"file_path": "codelabs/tfrs-flutter/step0/frontend/lib/main.dart",
"repo_id": "codelabs",
"token_count": 2208
} | 103 |
# Fullstack demo of a recommendation engine
This folder contains the code for [TensorFlow Recommenders](https://www.tensorflow.org/recommenders) + Flutter codelab. | codelabs/tfrs-flutter/step1/README.md/0 | {
"file_path": "codelabs/tfrs-flutter/step1/README.md",
"repo_id": "codelabs",
"token_count": 43
} | 104 |
package com.example.recommend_products
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| codelabs/tfrs-flutter/step3/frontend/android/app/src/main/kotlin/com/example/recommend_products/MainActivity.kt/0 | {
"file_path": "codelabs/tfrs-flutter/step3/frontend/android/app/src/main/kotlin/com/example/recommend_products/MainActivity.kt",
"repo_id": "codelabs",
"token_count": 39
} | 105 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfrs-flutter/step3/frontend/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step3/frontend/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 106 |
#include "Generated.xcconfig"
| codelabs/tfrs-flutter/step5/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step5/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 107 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfserving-flutter/codelab2/finished/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/finished/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 108 |
///
// 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
| codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/wrappers.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/google/protobuf/wrappers.pbenum.dart",
"repo_id": "codelabs",
"token_count": 114
} | 109 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/tensor_shape.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/core/framework/tensor_shape.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/tensor_shape.pb.dart",
"repo_id": "codelabs",
"token_count": 2679
} | 110 |
///
// 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.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/protobuf/saved_object_graph.pbenum.dart",
"repo_id": "codelabs",
"token_count": 575
} | 111 |
///
// 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.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/get_model_metadata.pbjson.dart",
"repo_id": "codelabs",
"token_count": 2013
} | 112 |
///
// 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.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/prediction_service.pbjson.dart",
"repo_id": "codelabs",
"token_count": 177
} | 113 |
// Protocol buffer representing the shape of tensors.
syntax = "proto3";
option cc_enable_arenas = true;
option java_outer_classname = "TensorShapeProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.framework";
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/frame... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/tensor_shape.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/tensor_shape.proto",
"repo_id": "codelabs",
"token_count": 517
} | 114 |
syntax = "proto3";
option cc_enable_arenas = true;
import "tensorflow_serving/apis/input.proto";
import "tensorflow_serving/apis/model.proto";
package tensorflow.serving;
// Regression result for a single item (tensorflow.Example).
message Regression {
float value = 1;
}
// Contains one result per input example,... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/regression.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/regression.proto",
"repo_id": "codelabs",
"token_count": 248
} | 115 |
[
"test/data/exports/17L9jk2dhTFrdEqyLb6Wxhq0NeRrtzpQLLJv09qROsA8.json",
"test/data/exports/1CdlksSvxBE2XRBVZtOKpfMUO68OLJDLdQc7mxN_zABg.json",
"test/data/exports/1EQtDsZv6vkvgreuOrF0KMo6kiKJ-534DShEFGankv20.json",
"test/data/exports/1MfCrv1w6aK7SLq9gmjJwXCJFQ-AX9NWJit2gq-v2Xx8.json",
"test/data/exp... | codelabs/tooling/claat_export_images/test/data/data.json/0 | {
"file_path": "codelabs/tooling/claat_export_images/test/data/data.json",
"repo_id": "codelabs",
"token_count": 398
} | 116 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'blueprint.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Blueprint _$BlueprintFromJson(Map json) => $checkedCreate(
... | codelabs/tooling/codelab_rebuild/lib/src/blueprint.g.dart/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/lib/src/blueprint.g.dart",
"repo_id": "codelabs",
"token_count": 3301
} | 117 |
package com.example.webview_in_flutter
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| codelabs/webview_flutter/step_07/android/app/src/main/kotlin/com/example/webview_in_flutter/MainActivity.kt/0 | {
"file_path": "codelabs/webview_flutter/step_07/android/app/src/main/kotlin/com/example/webview_in_flutter/MainActivity.kt",
"repo_id": "codelabs",
"token_count": 42
} | 118 |
include: ../../analysis_options.yaml
| codelabs/webview_flutter/step_09/analysis_options.yaml/0 | {
"file_path": "codelabs/webview_flutter/step_09/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 119 |
// Copyright 2022 The Flutter Authors. 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:webview_flutter/webview_flutter.dart';
enum _MenuOptions {
navigationDelegate,
userAgent,
ja... | codelabs/webview_flutter/step_10/lib/src/menu.dart/0 | {
"file_path": "codelabs/webview_flutter/step_10/lib/src/menu.dart",
"repo_id": "codelabs",
"token_count": 851
} | 120 |
#import "GeneratedPluginRegistrant.h"
| codelabs/webview_flutter/step_11/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/webview_flutter/step_11/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 121 |
#include "ephemeral/Flutter-Generated.xcconfig"
| devtools/case_study/code_size/optimized/code_size_images/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "devtools",
"token_count": 19
} | 122 |
{
"name": "code_size_images",
"short_name": "code_size_images",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A flutter project demonstrating code size issues with images",
"orientation": "portrait-primary",
"prefe... | devtools/case_study/code_size/optimized/code_size_images/web/manifest.json/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/web/manifest.json",
"repo_id": "devtools",
"token_count": 314
} | 123 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| devtools/case_study/code_size/optimized/code_size_package/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_package/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "devtools",
"token_count": 32
} | 124 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "leaking_counter_1",
"reque... | devtools/case_study/memory_leaks/leaking_counter_1/.vscode/launch.json/0 | {
"file_path": "devtools/case_study/memory_leaks/leaking_counter_1/.vscode/launch.json",
"repo_id": "devtools",
"token_count": 265
} | 125 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="github.nisrulz.usingtabs">
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, et... | devtools/case_study/memory_leaks/memory_leak_app/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/android/app/src/main/AndroidManifest.xml",
"repo_id": "devtools",
"token_count": 583
} | 126 |
#include "Generated.xcconfig"
| devtools/case_study/memory_leaks/memory_leak_app/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/ios/Flutter/Debug.xcconfig",
"repo_id": "devtools",
"token_count": 12
} | 127 |
// 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 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import '../common.dart';
im... | devtools/case_study/memory_leaks/memory_leak_app/lib/tabs/http_data.dart/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/lib/tabs/http_data.dart",
"repo_id": "devtools",
"token_count": 1908
} | 128 |
theme: jekyll-theme-primer
# This should match the path where the live deployment is, so `jekyll serve`
# puts the local version at the same relative path.
baseurl: /devtools
title: DevTools (preview)
# Set the repository so that site.github.xxx works when serving locally.
repository: flutter/devtools
kramdown:
parse... | devtools/docs/_config.yml/0 | {
"file_path": "devtools/docs/_config.yml",
"repo_id": "devtools",
"token_count": 114
} | 129 |
{
// Set of configurations to launch devtools_app from VSCode.
//
// The configurations will be picked up by VSCode if the opened folder is devtools_app.
// To access them in VSCode, select the tab "Run and Debug".
//
// Use IntelliSense to learn about possible attributes.
// Hover to view d... | devtools/packages/devtools_app/.vscode/launch.json/0 | {
"file_path": "devtools/packages/devtools_app/.vscode/launch.json",
"repo_id": "devtools",
"token_count": 1056
} | 130 |
// 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.
// Note: this test was modeled after the example test from Flutter Gallery:
// https://github.com/flutter/gallery/blob/master/test_benchmarks/web_bundle_s... | devtools/packages/devtools_app/benchmark/web_bundle_size_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/benchmark/web_bundle_size_test.dart",
"repo_id": "devtools",
"token_count": 1283
} | 131 |
// 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:devtools_shared/devtools_test_utils.dart';
import 'test_infra/run/_in_file_args.dart';
import 'test_infra/run/_utils.dart';
import 'test_... | devtools/packages/devtools_app/integration_test/run_tests.dart/0 | {
"file_path": "devtools/packages/devtools_app/integration_test/run_tests.dart",
"repo_id": "devtools",
"token_count": 684
} | 132 |
// 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.
// ignore_for_file: avoid_print
import 'dart:async';
import 'dart:convert';
import 'package:args/args.dart';
import 'package:devtools_shared/devtools_te... | devtools/packages/devtools_app/integration_test/test_infra/run/run_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/integration_test/test_infra/run/run_test.dart",
"repo_id": "devtools",
"token_count": 1619
} | 133 |
// 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:devtools_app_shared/utils.dart';
import 'package:devtools_shared/devtools_extensions.dart';
import 'package:flutter/foundation.dart';
impo... | devtools/packages/devtools_app/lib/src/extensions/extension_service.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/extensions/extension_service.dart",
"repo_id": "devtools",
"token_count": 2327
} | 134 |
// 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:async';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:devtools_shared/devto... | devtools/packages/devtools_app/lib/src/screens/app_size/app_size_screen.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/app_size/app_size_screen.dart",
"repo_id": "devtools",
"token_count": 8568
} | 135 |
// 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:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.dart';
import 'package:vm_service/vm_service.dar... | devtools/packages/devtools_app/lib/src/screens/debugger/program_explorer_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/debugger/program_explorer_controller.dart",
"repo_id": "devtools",
"token_count": 5235
} | 136 |
// 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:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../shared/analytics/analytics.dart... | devtools/packages/devtools_app/lib/src/screens/inspector/inspector_screen_details_tab.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/inspector/inspector_screen_details_tab.dart",
"repo_id": "devtools",
"token_count": 1614
} | 137 |
// 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:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../shared/common_widgets.dart';
im... | devtools/packages/devtools_app/lib/src/screens/logging/_log_details.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/logging/_log_details.dart",
"repo_id": "devtools",
"token_count": 1214
} | 138 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.