text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
---
title: Deprecated API removed after v2.5
description: >
After reaching end of life, the following deprecated APIs
were removed from Flutter.
---
## Summary
In accordance with Flutter's [Deprecation Policy][],
deprecated APIs that reached end of life after the
2.5 stable release have been removed.
All affecte... | website/src/release/breaking-changes/2-5-deprecations.md/0 | {
"file_path": "website/src/release/breaking-changes/2-5-deprecations.md",
"repo_id": "website",
"token_count": 4224
} | 1,251 |
---
title: AndroidX migration
description: How to migrate existing Flutter projects to AndroidX.
---
{{site.alert.note}}
You might be directed to this page if Flutter detects
that your project doesn't use AndroidX.
{{site.alert.end}}
[AndroidX][] is a major improvement
to the original Android Support Library.
It... | website/src/release/breaking-changes/androidx-migration.md/0 | {
"file_path": "website/src/release/breaking-changes/androidx-migration.md",
"repo_id": "website",
"token_count": 1253
} | 1,252 |
---
title: TextField.canRequestFocus Deprecated
description: >
`TextField`'s `canRequestFocus` parameter is deprecated and replaced by the
`canRequestFocus` parameter of its `FocusNode`.
---
## Summary
`TextField.canRequestFocus` is deprecated. The same functionality can be
achieved by setting the `canRequestFocu... | website/src/release/breaking-changes/can-request-focus.md/0 | {
"file_path": "website/src/release/breaking-changes/can-request-focus.md",
"repo_id": "website",
"token_count": 885
} | 1,253 |
---
title: Updated EditableText scroll into view behavior
description: >
Improve EditableText selection scroll into view behavior to always
use the current selection extent.
---
## Summary
The `Editable.onCaretChanged` callback is removed. With this change,
`EditableText` behavior for scrolling the selection into... | website/src/release/breaking-changes/editable-text-scroll-into-view.md/0 | {
"file_path": "website/src/release/breaking-changes/editable-text-scroll-into-view.md",
"repo_id": "website",
"token_count": 313
} | 1,254 |
---
title: Breaking changes and migration guides
short-title: Breaking changes
description: A list of migration guides for breaking changes in Flutter.
---
As described in the [breaking change policy][],
on occasion we publish guides
for migrating code across a breaking change.
To be notified about future breaking ch... | website/src/release/breaking-changes/index.md/0 | {
"file_path": "website/src/release/breaking-changes/index.md",
"repo_id": "website",
"token_count": 5248
} | 1,255 |
---
title: Insecure HTTP connections are disabled by default on iOS and Android
description: >
Accessing a URL with HTTP protocol throws an exception unless
the domain is explicitly allowed by policy.
---
## Summary
If your code tries to open an HTTP connection to a host
on iOS or Android, a `StateException` is n... | website/src/release/breaking-changes/network-policy-ios-android.md/0 | {
"file_path": "website/src/release/breaking-changes/network-policy-ios-android.md",
"repo_id": "website",
"token_count": 1156
} | 1,256 |
---
title: Route and Navigator Refactoring
description: >
Some APIs and function signatures of the
Route and Navigator classes have changed.
---
## Summary
The `Route` class no longer manages its overlay entries in overlay,
and its `install()` method no longer has an `insertionPoint` parameter.
The `isInitialRout... | website/src/release/breaking-changes/route-navigator-refactoring.md/0 | {
"file_path": "website/src/release/breaking-changes/route-navigator-refactoring.md",
"repo_id": "website",
"token_count": 1387
} | 1,257 |
---
title: TextInputClient currentTextEditingValue
description: >
Add a new field to the TextInputClient interface to
get the current TextEditingValue from a client.
---
## Summary
Add a field, `currentTextEditingValue`, to the `TextInputClient`
interface to get the current value of an editable text field
from a ... | website/src/release/breaking-changes/text-input-client-current-value.md/0 | {
"file_path": "website/src/release/breaking-changes/text-input-client-current-value.md",
"repo_id": "website",
"token_count": 1273
} | 1,258 |
---
title: Stay up to date
description: Flutter archive, releases, and breaking changes.
layout: toc
sitemap: false
---
| website/src/release/index.md/0 | {
"file_path": "website/src/release/index.md",
"repo_id": "website",
"token_count": 35
} | 1,259 |
---
title: Flutter 2.0.0 release notes
short-title: 2.0.0 release notes
description: Release notes for Flutter 2.0.0.
---
This page has release notes for 2.0.0.
For information about subsequent bug-fix releases, see
[Hotfixes to the Stable Channel][].
[Hotfixes to the Stable Channel]: https://github.com/flutter/flutt... | website/src/release/release-notes/release-notes-2.0.0.md/0 | {
"file_path": "website/src/release/release-notes/release-notes-2.0.0.md",
"repo_id": "website",
"token_count": 582799
} | 1,260 |
---
title: Flutter's build modes
description: Describes Flutter's build modes and when you should use debug, release, or profile mode.
---
The Flutter tooling supports three modes when compiling your app,
and a headless mode for testing.
You choose a compilation mode depending on where you are in
the development cycle... | website/src/testing/build-modes.md/0 | {
"file_path": "website/src/testing/build-modes.md",
"repo_id": "website",
"token_count": 1361
} | 1,261 |
---
title: Using the debugger
description: How to use DevTools' source-level debugger.
---
{{site.alert.note}}
DevTools hides the Debugger tab if the app was launched
from VS Code because VS Code has a built-in debugger.
{{site.alert.end}}
## Getting started
DevTools includes a full source-level debugger, suppor... | website/src/tools/devtools/debugger.md/0 | {
"file_path": "website/src/tools/devtools/debugger.md",
"repo_id": "website",
"token_count": 885
} | 1,262 |
---
short-title: 2.14.0 release notes
description: Release notes for Dart and Flutter DevTools version 2.14.0.
toc: false
---
{% include_relative release-notes-2.14.0-src.md %}
| website/src/tools/devtools/release-notes/release-notes-2.14.0.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.14.0.md",
"repo_id": "website",
"token_count": 61
} | 1,263 |
---
short-title: 2.22.2 release notes
description: Release notes for Dart and Flutter DevTools version 2.22.2.
toc: false
---
{% include_relative release-notes-2.22.2-src.md %}
| website/src/tools/devtools/release-notes/release-notes-2.22.2.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.22.2.md",
"repo_id": "website",
"token_count": 61
} | 1,264 |
---
short-title: 2.28.3 release notes
description: Release notes for Dart and Flutter DevTools version 2.28.3.
toc: false
---
{% include_relative release-notes-2.28.3-src.md %}
| website/src/tools/devtools/release-notes/release-notes-2.28.3.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.28.3.md",
"repo_id": "website",
"token_count": 61
} | 1,265 |
---
short-title: 2.7.0 release notes
description: Release notes for Dart and Flutter DevTools version 2.7.0.
toc: false
---
{% include_relative release-notes-2.7.0-src.md %}
| website/src/tools/devtools/release-notes/release-notes-2.7.0.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.7.0.md",
"repo_id": "website",
"token_count": 61
} | 1,266 |
---
title: Terms of Service
description: The terms of service for the Flutter website.
---
The Flutter website (the "Website") is hosted by Google. By using and / or
visiting the Website, you consent to be bound by Google's general
[Terms of Service][] and [Privacy Policy][].
The "Flutter" name and the Flutter logo
<... | website/src/tos/index.md/0 | {
"file_path": "website/src/tos/index.md",
"repo_id": "website",
"token_count": 415
} | 1,267 |
---
layout: toc
title: Text
description: Content covering how to add and customize text in Flutter appw.
sitemap: false
---
| website/src/ui/design/text/index.md/0 | {
"file_path": "website/src/ui/design/text/index.md",
"repo_id": "website",
"token_count": 36
} | 1,268 |
---
title: Using slivers to achieve fancy scrolling
description: Where to find information on using slivers to implement fancy scrolling effects, like elastic scrolling, in Flutter.
toc: false
---
A sliver is a portion of a scrollable area that you
can define to behave in a special way.
You can use slivers to achieve ... | website/src/ui/layout/scrolling/slivers.md/0 | {
"file_path": "website/src/ui/layout/scrolling/slivers.md",
"repo_id": "website",
"token_count": 1009
} | 1,269 |
---
title: Material 2 Components widgets
short-title: Material 2
description: >
A catalog of Flutter's widgets implementing the Material 2 design guidelines.
---
{% include docs/catalogpage.html category="Material 2 components" %}
| website/src/ui/widgets/material2.md/0 | {
"file_path": "website/src/ui/widgets/material2.md",
"repo_id": "website",
"token_count": 59
} | 1,270 |
// Copyright 2024 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io';
import 'package:args/command_runner.dart';
final class VerifyFirebaseJsonCommand extends Command<int> {
@overr... | website/tool/flutter_site/lib/src/commands/verify_firebase_json.dart/0 | {
"file_path": "website/tool/flutter_site/lib/src/commands/verify_firebase_json.dart",
"repo_id": "website",
"token_count": 1665
} | 1,271 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/adaptive_app/step_07/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/adaptive_app/step_07/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 0 |
#include "Generated.xcconfig"
| codelabs/animated-responsive-layout/step_07/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/animated-responsive-layout/step_07/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 1 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/animated-responsive-layout/step_07/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/animated-responsive-layout/step_07/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 2 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/final/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/final/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 3 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_02/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_02/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 4 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_04/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_04/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 5 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/boring_to_beautiful/step_06/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/boring_to_beautiful/step_06/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 6 |
include: ../../analysis_options.yaml
| codelabs/brick_breaker/step_05/analysis_options.yaml/0 | {
"file_path": "codelabs/brick_breaker/step_05/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 7 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/brick_breaker/step_05/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/brick_breaker/step_05/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 8 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/brick_breaker/step_08/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/brick_breaker/step_08/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 9 |
import 'package:flutter/material.dart';
class ScoreCard extends StatelessWidget {
const ScoreCard({
super.key,
required this.score,
});
final ValueNotifier<int> score;
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<int>(
valueListenable: score,
builder:... | codelabs/brick_breaker/step_10/lib/src/widgets/score_card.dart/0 | {
"file_path": "codelabs/brick_breaker/step_10/lib/src/widgets/score_card.dart",
"repo_id": "codelabs",
"token_count": 258
} | 10 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/brick_breaker/step_10/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/brick_breaker/step_10/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 11 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/dart-patterns-and-records/step_05/android/gradle.properties/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_05/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 12 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_07_a/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_a/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 13 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_07_a/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_a/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 14 |
#import "GeneratedPluginRegistrant.h"
| codelabs/dart-patterns-and-records/step_07_b/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_b/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 15 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/dart-patterns-and-records/step_08/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_08/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 16 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/dart-patterns-and-records/step_11_a/android/gradle.properties/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_11_a/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 17 |
#include "Generated.xcconfig"
| codelabs/deeplink_cookbook/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/deeplink_cookbook/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 18 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/deeplink_cookbook/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/deeplink_cookbook/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 19 |
/*
* Duktape public API for Duktape 2.7.0.
*
* See the API reference for documentation on call semantics. The exposed,
* supported API is between the "BEGIN PUBLIC API" and "END PUBLIC API"
* comments. Other parts of the header are Duktape internal and related to
* e.g. platform/compiler/feature detection.... | codelabs/ffigen_codelab/step_05/src/duktape.h/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/src/duktape.h",
"repo_id": "codelabs",
"token_count": 34278
} | 20 |
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'app.dart';
import 'firebase_options.dart';
// TODO(codelab user): Get API key
const clientId = 'YOUR_CLIENT_ID';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
opti... | codelabs/firebase-auth-flutterfire-ui/complete/lib/main.dart/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/complete/lib/main.dart",
"repo_id": "codelabs",
"token_count": 137
} | 21 |
{
"indexes": [],
"fieldOverrides": []
}
| codelabs/firebase-auth-flutterfire-ui/start/firestore.indexes.json/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/start/firestore.indexes.json",
"repo_id": "codelabs",
"token_count": 21
} | 22 |
{"kind":"identitytoolkit#DownloadAccountResponse","users":[]}
| codelabs/firebase-emulator-suite/complete/emulators_data/auth_export/accounts.json/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/emulators_data/auth_export/accounts.json",
"repo_id": "codelabs",
"token_count": 16
} | 23 |
class Entry {
final String date;
final String text;
final String title;
Entry({
required this.date,
required this.text,
required this.title,
});
}
| codelabs/firebase-emulator-suite/complete/lib/entry.dart/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/lib/entry.dart",
"repo_id": "codelabs",
"token_count": 58
} | 24 |
import 'dart:async';
import 'entry.dart';
class AppState {
AppState() {
_entriesStreamController = StreamController.broadcast(onListen: () {
_entriesStreamController.add([
Entry(
date: '10/09/2022',
text: lorem,
title: '[Example] My Journal Entry',
)
]);... | codelabs/firebase-emulator-suite/start/lib/app_state.dart/0 | {
"file_path": "codelabs/firebase-emulator-suite/start/lib/app_state.dart",
"repo_id": "codelabs",
"token_count": 540
} | 25 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/firebase-get-to-know-flutter/step_02/android/gradle.properties/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_02/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 26 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/firebase-get-to-know-flutter/step_04/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_04/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 27 |
name: GitHub Desktop Client
steps:
- name: Rebuild window_to_front
steps:
- name: Remove generated code
rmdir: window_to_front
- name: Create window_to_front
flutter: create -t plugin --platforms=linux,macos,windows window_to_front
- name: Update dependencies
path: window... | codelabs/github-client/codelab_rebuild.yaml/0 | {
"file_path": "codelabs/github-client/codelab_rebuild.yaml",
"repo_id": "codelabs",
"token_count": 25762
} | 28 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/github-client/step_03/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/github-client/step_03/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 29 |
include: ../../analysis_options.yaml
| codelabs/github-client/step_04/analysis_options.yaml/0 | {
"file_path": "codelabs/github-client/step_04/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 30 |
include: ../../analysis_options.yaml
| codelabs/github-client/step_05/analysis_options.yaml/0 | {
"file_path": "codelabs/github-client/step_05/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 31 |
include: ../../analysis_options.yaml
| codelabs/github-client/step_06/analysis_options.yaml/0 | {
"file_path": "codelabs/github-client/step_06/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 32 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import url_launcher_macos
import window_to_front
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
WindowToFrontPlugin.register(with: re... | codelabs/github-client/step_06/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "codelabs/github-client/step_06/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "codelabs",
"token_count": 116
} | 33 |
include: ../../analysis_options.yaml
| codelabs/github-client/step_07/analysis_options.yaml/0 | {
"file_path": "codelabs/github-client/step_07/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 34 |
// 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/windows/window_to_front_plugin.h/0 | {
"file_path": "codelabs/github-client/window_to_front/windows/window_to_front_plugin.h",
"repo_id": "codelabs",
"token_count": 513
} | 35 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/google-maps-in-flutter/step_4/android/gradle.properties/0 | {
"file_path": "codelabs/google-maps-in-flutter/step_4/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 36 |
#include "Generated.xcconfig"
| codelabs/haiku_generator/step0/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step0/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 37 |
#include "Generated.xcconfig"
| codelabs/haiku_generator/step2/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/haiku_generator/step2/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 38 |
import WidgetKit
import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> NewsArticleEntry {
NewsArticleEntry(date: Date(), title: "Placholder Title", description: "Placholder description", filename: "No screenshot available", displaySize: context.displaySize)
}
f... | codelabs/homescreen_codelab/step_06/ios/NewsWidgets/NewsWidgets.swift/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/ios/NewsWidgets/NewsWidgets.swift",
"repo_id": "codelabs",
"token_count": 1378
} | 39 |
import 'package:firebase_backend_dart/google_play_purchase_handler.dart';
import 'package:firebase_backend_dart/products.dart';
import 'package:test/test.dart';
import '../bin/server.dart';
void main() {
test('extractOrderId with subscription suffix', () {
final orderId = extractOrderId('googleplay_GPA.3391-735... | codelabs/in_app_purchases/complete/dart-backend/test/firebase_backend_dart_test.dart/0 | {
"file_path": "codelabs/in_app_purchases/complete/dart-backend/test/firebase_backend_dart_test.dart",
"repo_id": "codelabs",
"token_count": 489
} | 40 |
#include "Generated.xcconfig"
| codelabs/namer/step_03/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_03/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 41 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_03/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_03/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 42 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_04_a_widget/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_04_a_widget/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 43 |
#include "Generated.xcconfig"
| codelabs/namer/step_05_c_card_padding/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_c_card_padding/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 44 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_05_c_card_padding/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_c_card_padding/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 45 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_05_d_theme/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_05_d_theme/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 46 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_05_d_theme/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_d_theme/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 47 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/namer/step_06_c_add_like_button/android/gradle.properties/0 | {
"file_path": "codelabs/namer/step_06_c_add_like_button/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 48 |
#include "Generated.xcconfig"
| codelabs/namer/step_07_b_convert_to_stateful/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 49 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_07_b_convert_to_stateful/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 50 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_07_c_add_selectedindex/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_c_add_selectedindex/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 51 |
// 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';
class TitleScreen extends StatelessWidget {
const TitleScreen({super.key});
@overri... | codelabs/next-gen-ui/step_02_b/lib/title_screen/title_screen.dart/0 | {
"file_path": "codelabs/next-gen-ui/step_02_b/lib/title_screen/title_screen.dart",
"repo_id": "codelabs",
"token_count": 735
} | 52 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_02_b/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_02_b/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 53 |
#import "GeneratedPluginRegistrant.h"
| codelabs/next-gen-ui/step_02_c/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/next-gen-ui/step_02_c/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 54 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_04_c/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_04_c/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 55 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/testing_codelab/step_05/android/gradle.properties/0 | {
"file_path": "codelabs/testing_codelab/step_05/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 56 |
include: ../../analysis_options.yaml
| codelabs/testing_codelab/step_08/analysis_options.yaml/0 | {
"file_path": "codelabs/testing_codelab/step_08/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 57 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/testing_codelab/step_08/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/testing_codelab/step_08/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 58 |
include: ../../../analysis_options.yaml
analyzer:
linter:
rules:
- use_super_parameters
| codelabs/tfagents-flutter/finished/frontend/analysis_options.yaml/0 | {
"file_path": "codelabs/tfagents-flutter/finished/frontend/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 38
} | 59 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/tfagents-flutter/step2/frontend/android/gradle.properties/0 | {
"file_path": "codelabs/tfagents-flutter/step2/frontend/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 60 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfrs-flutter/step0/frontend/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step0/frontend/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 61 |
#include "Generated.xcconfig"
| codelabs/tfrs-flutter/step2/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step2/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 62 |
#import "GeneratedPluginRegistrant.h"
| codelabs/tfrs-flutter/step4/frontend/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/tfrs-flutter/step4/frontend/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 63 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfrs-flutter/step4/frontend/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step4/frontend/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 64 |
import 'dart:async';
import 'dart:convert';
import 'dart:io' show Platform;
import 'package:fixnum/fixnum.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:grpc/grpc.dart';
import 'package:http/http.dart' as http;
import 'proto/generated/tensorflow/... | codelabs/tfserving-flutter/codelab2/finished/lib/main.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/finished/lib/main.dart",
"repo_id": "codelabs",
"token_count": 4673
} | 65 |
#!/bin/bash
# This script generates the client stub for TF Serving
touch generated
rm -rf generated
mkdir generated
protoc -I./ ./tensorflow_serving/apis/input.proto --dart_out=grpc:./generated
protoc -I./ ./tensorflow_serving/apis/regression.proto --dart_out=grpc:./generated
protoc -I./ ./tensorflow_serving/apis/pre... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generate_grpc_stub_dart.sh/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generate_grpc_stub_dart.sh",
"repo_id": "codelabs",
"token_count": 956
} | 66 |
///
// 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.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/full_type.pb.dart",
"repo_id": "codelabs",
"token_count": 2062
} | 67 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/resource_handle.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_fi... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/resource_handle.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/resource_handle.pbenum.dart",
"repo_id": "codelabs",
"token_count": 117
} | 68 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/versions.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/versions.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/versions.pbjson.dart",
"repo_id": "codelabs",
"token_count": 508
} | 69 |
///
// 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.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/classification.pb.dart",
"repo_id": "codelabs",
"token_count": 5779
} | 70 |
///
// Generated code. Do not modify.
// source: tensorflow_serving/apis/predict.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/tensorflow_serving/apis/predict.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/predict.pbenum.dart",
"repo_id": "codelabs",
"token_count": 117
} | 71 |
syntax = "proto3";
package tensorflow;
import "tensorflow/core/framework/function.proto";
import "tensorflow/core/framework/node_def.proto";
import "tensorflow/core/framework/versions.proto";
option cc_enable_arenas = true;
option java_outer_classname = "GraphProtos";
option java_multiple_files = true;
option java_p... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/graph.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/graph.proto",
"repo_id": "codelabs",
"token_count": 679
} | 72 |
// This file contains messages for various machine learning inferences
// such as regression and classification.
//
// In many applications more than one type of inference is desired for a single
// input. For example, given meteorologic data an application may want to
// perform a classification to determine if we sh... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/inference.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/inference.proto",
"repo_id": "codelabs",
"token_count": 541
} | 73 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfserving-flutter/codelab2/starter/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 74 |
// Copyright 2023 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 'package:json_annotation/json_annotation.dart';
part 'client_secret.g.dart';
@JsonSerializable()
class ClientSecret {
final ClientSecretInstalled i... | codelabs/tooling/claat_export_images/lib/client_secret.dart/0 | {
"file_path": "codelabs/tooling/claat_export_images/lib/client_secret.dart",
"repo_id": "codelabs",
"token_count": 505
} | 75 |
# Codelab Rebuild tooling
This tool enables the automated rebuilding of the codelabs in this
repository via a `yaml` configuration file.
## Installing the `codelab_rebuild` tool
To make it easy to use this tool, you can install the tool in your
global pub executable cache by running the following command from this
p... | codelabs/tooling/codelab_rebuild/README.md/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/README.md",
"repo_id": "codelabs",
"token_count": 710
} | 76 |
include: ../../analysis_options.yaml
| codelabs/webview_flutter/step_07/analysis_options.yaml/0 | {
"file_path": "codelabs/webview_flutter/step_07/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 77 |
package com.example.code_size_images
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| devtools/case_study/code_size/optimized/code_size_images/android/app/src/main/kotlin/com/example/code_size_images/MainActivity.kt/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/android/app/src/main/kotlin/com/example/code_size_images/MainActivity.kt",
"repo_id": "devtools",
"token_count": 40
} | 78 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.