text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
---
title: Flutter for Android developers
description: Learn how to apply Android developer knowledge when building Flutter apps.
---
<?code-excerpt path-base="get-started/flutter-for/android_devs"?>
This document is meant for Android developers looking to apply their
existing Android knowledge to build mobile apps w... | website/src/get-started/flutter-for/android-devs.md/0 | {
"file_path": "website/src/get-started/flutter-for/android-devs.md",
"repo_id": "website",
"token_count": 23120
} | 1,386 |
{{site.alert.warning}}
The Flutter tool might occasionally download resources
from Google servers. By downloading or using the
Flutter SDK you agree to the [Google Terms of Service][].
For example, when installed from GitHub
(as opposed to from a prepackaged archive),
the Flutter tool downloads the Dart SD... | website/src/get-started/install/_deprecated/_analytics.md/0 | {
"file_path": "website/src/get-started/install/_deprecated/_analytics.md",
"repo_id": "website",
"token_count": 446
} | 1,387 |
---
title: Start building Flutter web apps on ChromeOS
description: Configure your system to develop Flutter web apps on ChromeOS.
short-title: Web app
target: Web
config: ChromeOSWeb
devos: ChromeOS
next:
title: Create a test app
path: /get-started/test-drive
---
{% include docs/install/reqs/linux/base.md
os=p... | website/src/get-started/install/chromeos/web.md/0 | {
"file_path": "website/src/get-started/install/chromeos/web.md",
"repo_id": "website",
"token_count": 259
} | 1,388 |
---
title: Learn more
description: More resources to help you learn Flutter.
prev:
title: Write your first Flutter app
path: /get-started/codelab
---
Learn more about the Flutter framework from the following pages:
## Flutter basics
* [Introduction to Flutter's UI][]
* [Building layouts][] tutorial
* [Add intera... | website/src/get-started/learn-more.md/0 | {
"file_path": "website/src/get-started/learn-more.md",
"repo_id": "website",
"token_count": 608
} | 1,389 |
---
title: Impeller rendering engine
description: What is Impeller and how to enable it?
---
## What is Impeller?
Impeller provides a new rendering runtime for Flutter.
The Flutter team's believes this solves Flutter's
[early-onset jank][] issue.
Impeller precompiles a [smaller, simpler set of shaders][]
at Engine bu... | website/src/perf/impeller.md/0 | {
"file_path": "website/src/perf/impeller.md",
"repo_id": "website",
"token_count": 1799
} | 1,390 |
---
title: Add Android devtools for Flutter from Web on Linux start
description: Configure your Linux system to develop Flutter mobile apps for Android.
short-title: Starting from Web on Linux
---
To add Android as a Flutter app target for Linux, follow this procedure.
## Install Android Studio
1. Allocate a minimum... | website/src/platform-integration/android/install-android/install-android-from-web-on-linux.md/0 | {
"file_path": "website/src/platform-integration/android/install-android/install-android-from-web-on-linux.md",
"repo_id": "website",
"token_count": 407
} | 1,391 |
---
title: Add macOS devtools to Flutter from web start
description: Configure your system to develop Flutter mobile apps on macOS.
short-title: Starting from web
---
To add macOS desktop as a Flutter app target, follow this procedure.
This procedure presumes you installed [Xcode][] {{site.appnow.xcode}}
when your Fl... | website/src/platform-integration/macos/install-macos/install-macos-from-ios.md/0 | {
"file_path": "website/src/platform-integration/macos/install-macos/install-macos-from-ios.md",
"repo_id": "website",
"token_count": 196
} | 1,392 |
---
title: Add Web devtools to Flutter from Windows start
description: Configure your system to develop Flutter web apps on Windows.
short-title: Starting from Windows desktop
---
To add Web as a Flutter app target for Windows desktop, follow this procedure.
## Configure Chrome as the web DevTools tools
{% include d... | website/src/platform-integration/web/install-web/install-web-from-windows-desktop.md/0 | {
"file_path": "website/src/platform-integration/web/install-web/install-web-from-windows-desktop.md",
"repo_id": "website",
"token_count": 138
} | 1,393 |
---
title: Flutter widget index
description: An alphabetical list of Flutter widgets.
short-title: Widgets
show_breadcrumbs: false
---
{% assign sorted = site.data.catalog.widgets | sort:'name' -%}
This is an alphabetical list of nearly every widget that is bundled with
Flutter. You can also [browse widgets by catego... | website/src/reference/widgets.md/0 | {
"file_path": "website/src/reference/widgets.md",
"repo_id": "website",
"token_count": 508
} | 1,394 |
---
title: showAutocorrectionPromptRect method added to TextInputClient
description: >
A new method, void showAutocorrectionPromptRect(int start, int end),
was added to the TextInputClient interface
---
## Summary
A new method,`void showAutocorrectionPromptRect(int start, int end)`,
was added to the `TextInputC... | website/src/release/breaking-changes/add-showAutocorrectionPromptRect.md/0 | {
"file_path": "website/src/release/breaking-changes/add-showAutocorrectionPromptRect.md",
"repo_id": "website",
"token_count": 901
} | 1,395 |
---
title: Default Scrollbars on Desktop
description: >
ScrollBehaviors will now automatically build Scrollbars on Desktop platforms.
---
## Summary
`ScrollBehavior`s now automatically apply `Scrollbar`s to
scrolling widgets on desktop platforms - Mac, Windows and Linux.
## Context
Prior to this change, `Scrollba... | website/src/release/breaking-changes/default-desktop-scrollbars.md/0 | {
"file_path": "website/src/release/breaking-changes/default-desktop-scrollbars.md",
"repo_id": "website",
"token_count": 2362
} | 1,396 |
---
title: The new Form, FormField auto-validation API
description: Gives more control in how to auto validate a Form and a FormField.
---
## Summary
The previous auto validation API for the `Form` and
`FormField` widgets didn't control when auto validation
should occur. So the auto validation for these widgets
alway... | website/src/release/breaking-changes/form-field-autovalidation-api.md/0 | {
"file_path": "website/src/release/breaking-changes/form-field-autovalidation-api.md",
"repo_id": "website",
"token_count": 833
} | 1,397 |
---
title: Migration guide for material localized strings
description: >
ReorderableListView's localized strings are moved from
material localizations to widgets localizations.
---
## Summary
`ReorderableListView`'s localized strings were moved from
material localizations to widgets localizations.
These strings w... | website/src/release/breaking-changes/material-localized-strings.md/0 | {
"file_path": "website/src/release/breaking-changes/material-localized-strings.md",
"repo_id": "website",
"token_count": 739
} | 1,398 |
---
title: Supporting the new Android plugins APIs
description: How to update a plugin using the old APIs to support the new APIs.
---
<?code-excerpt path-base="development/plugin_api_migration"?>
{{site.alert.note}}
You might be directed to this page if the framework detects that
your app uses a plugin based on ... | website/src/release/breaking-changes/plugin-api-migration.md/0 | {
"file_path": "website/src/release/breaking-changes/plugin-api-migration.md",
"repo_id": "website",
"token_count": 4497
} | 1,399 |
---
title: Migrate `of` to non-nullable return values, and add `maybeOf`
description: >
To eliminate nullOk parameters to help with API sanity
in the face of null safety.
---
## Summary
This migration guide describes conversion of code that uses various static `of`
functions to retrieve information from a context... | website/src/release/breaking-changes/supplemental-maybeOf-migration.md/0 | {
"file_path": "website/src/release/breaking-changes/supplemental-maybeOf-migration.md",
"repo_id": "website",
"token_count": 2285
} | 1,400 |
---
title: Windows build path changed to add the target architecture
description: >-
In preparation for supporting Windows on Arm64,
the Windows build path was updated to include the target architecture.
---
## Summary
Built executables for Flutter Windows apps are now located in architecture
dependent folders.
... | website/src/release/breaking-changes/windows-build-architecture.md/0 | {
"file_path": "website/src/release/breaking-changes/windows-build-architecture.md",
"repo_id": "website",
"token_count": 425
} | 1,401 |
---
title: Flutter 1.17.0 release notes
short-title: 1.17.0 release notes
description: Release notes for Flutter 1.17.0.
---
## Merged pull requests by label
### Merged PRs by labels for `flutter/flutter`
#### tool - 435 pull request(s)
[50581](https://github.com/flutter/flutter/pull/50581) Implements --machine f... | website/src/release/release-notes/release-notes-1.17.0.md/0 | {
"file_path": "website/src/release/release-notes/release-notes-1.17.0.md",
"repo_id": "website",
"token_count": 269863
} | 1,402 |
---
title: Flutter News Toolkit
description: Learn more about creating a newsfeed app in Flutter.
---
The Flutter News Toolkit enables you to accelerate
development of a mobile news app.
The toolkit assists you in building a customized
template app with prebuilt features required
for most news apps, such authenticatio... | website/src/resources/news-toolkit.md/0 | {
"file_path": "website/src/resources/news-toolkit.md",
"repo_id": "website",
"token_count": 499
} | 1,403 |
---
title: Plugins in Flutter tests
short-title: Plugin tests
description: Adding plugin as part of your Flutter tests.
---
{{site.alert.note}}
To learn how to avoid crashes from a plugin when
testing your Flutter app, read on.
To learn how to test your plugin code, check out
[Testing plugins][].
{{site.alert.... | website/src/testing/plugins-in-tests.md/0 | {
"file_path": "website/src/testing/plugins-in-tests.md",
"repo_id": "website",
"token_count": 1340
} | 1,404 |
---
title: Android Studio and IntelliJ
description: >
How to develop Flutter apps in Android Studio or other IntelliJ products.
---
<ul class="nav nav-tabs" id="ide" role="tablist">
<li class="nav-item">
<a class="nav-link active" role="tab" aria-selected="true">Android Studio and IntelliJ</a>
</li>
<li cl... | website/src/tools/android-studio.md/0 | {
"file_path": "website/src/tools/android-studio.md",
"repo_id": "website",
"token_count": 4486
} | 1,405 |
# DevTools 2.12.1 release notes
The 2.12.1 release of the Dart and Flutter DevTools
includes the following changes among other general improvements.
To learn more about DevTools, check out the
[DevTools overview](https://docs.flutter.dev/tools/devtools/overview).
## General updates
* This release included a lot of c... | website/src/tools/devtools/release-notes/release-notes-2.12.1-src.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.12.1-src.md",
"repo_id": "website",
"token_count": 355
} | 1,406 |
# DevTools 2.19.0 release notes
The 2.19.0 release of the Dart and Flutter DevTools
includes the following changes among other general improvements.
To learn more about DevTools, check out the
[DevTools overview](https://docs.flutter.dev/tools/devtools/overview).
## Performance updates
* Added a button to toggle the... | website/src/tools/devtools/release-notes/release-notes-2.19.0-src.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.19.0-src.md",
"repo_id": "website",
"token_count": 497
} | 1,407 |
# DevTools 2.27.0 release notes
The 2.27.0 release of the Dart and Flutter DevTools
includes the following changes among other general improvements.
To learn more about DevTools, check out the
[DevTools overview](https://docs.flutter.dev/tools/devtools/overview).
## Network profiler updates
- Fix a crash with large ... | website/src/tools/devtools/release-notes/release-notes-2.27.0-src.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.27.0-src.md",
"repo_id": "website",
"token_count": 225
} | 1,408 |
# DevTools 2.31.0 release notes
The 2.31.0 release of the Dart and Flutter DevTools
includes the following changes among other general improvements.
To learn more about DevTools, check out the
[DevTools overview](https://docs.flutter.dev/tools/devtools/overview).
## General updates
* Added a new feature for deep lin... | website/src/tools/devtools/release-notes/release-notes-2.31.0-src.md/0 | {
"file_path": "website/src/tools/devtools/release-notes/release-notes-2.31.0-src.md",
"repo_id": "website",
"token_count": 838
} | 1,409 |
---
title: Flutter fix
description: Keep your code up to date with the help of the Flutter Fix feature.
---
As Flutter continues to evolve, we provide a tool to help you clean up
deprecated APIs from your codebase. The tool ships as part of Flutter, and
suggests changes that you might want to make to your code. The to... | website/src/tools/flutter-fix.md/0 | {
"file_path": "website/src/tools/flutter-fix.md",
"repo_id": "website",
"token_count": 755
} | 1,410 |
---
title: Animations tutorial
short-title: Tutorial
description: A tutorial showing how to build explicit animations in Flutter.
diff2html: true
---
{% assign api = '{{site.api}}/flutter' -%}
{% capture examples -%} {{site.repo.this}}/tree/{{site.branch}}/examples {%- endcapture -%}
<?code-excerpt path-base="animati... | website/src/ui/animations/tutorial.md/0 | {
"file_path": "website/src/ui/animations/tutorial.md",
"repo_id": "website",
"token_count": 10580
} | 1,411 |
---
title: Understanding constraints
description: Flutter's model for widget constraints, sizing, positioning, and how they interact.
toc: false
js:
- defer: true
url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js
---
<?code-excerpt path-base="layout/constraints/"?>
<img src='/assets/images/docs/ui/lay... | website/src/ui/layout/constraints.md/0 | {
"file_path": "website/src/ui/layout/constraints.md",
"repo_id": "website",
"token_count": 23974
} | 1,412 |
---
title: Basic widgets
short-title: Basics
description: A catalog of Flutter's basic widgets.
---
{% include docs/catalogpage.html category="Basics" %}
| website/src/ui/widgets/basics.md/0 | {
"file_path": "website/src/ui/widgets/basics.md",
"repo_id": "website",
"token_count": 46
} | 1,413 |
// 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:io';
import 'package:args/command_runner.dart';
import 'package:path/path.dart' as path;
import '../utils.dart';
final class AnalyzeDartCom... | website/tool/flutter_site/lib/src/commands/analyze_dart.dart/0 | {
"file_path": "website/tool/flutter_site/lib/src/commands/analyze_dart.dart",
"repo_id": "website",
"token_count": 645
} | 1,414 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/adaptive_app/step_07/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/adaptive_app/step_07/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 0 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/animated-responsive-layout/step_04/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/animated-responsive-layout/step_04/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 1 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/animated-responsive-layout/step_05/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/animated-responsive-layout/step_05/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 2 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/brick_breaker/step_03/android/gradle.properties/0 | {
"file_path": "codelabs/brick_breaker/step_03/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 3 |
export 'ball.dart';
export 'play_area.dart';
| codelabs/brick_breaker/step_05/lib/src/components/components.dart/0 | {
"file_path": "codelabs/brick_breaker/step_05/lib/src/components/components.dart",
"repo_id": "codelabs",
"token_count": 18
} | 4 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/brick_breaker/step_08/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/brick_breaker/step_08/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 5 |
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
class OverlayScreen extends StatelessWidget {
const OverlayScreen({
super.key,
required this.title,
required this.subtitle,
});
final String title;
final String subtitle;
@override
Widget build(Buil... | codelabs/brick_breaker/step_10/lib/src/widgets/overlay_screen.dart/0 | {
"file_path": "codelabs/brick_breaker/step_10/lib/src/widgets/overlay_screen.dart",
"repo_id": "codelabs",
"token_count": 463
} | 6 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/brick_breaker/step_10/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/brick_breaker/step_10/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 7 |
#include "Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_07_a/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_a/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 8 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/dart-patterns-and-records/step_07_b/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_07_b/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 9 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/dart-patterns-and-records/step_08/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/dart-patterns-and-records/step_08/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 10 |
#include "Generated.xcconfig"
| codelabs/deeplink_cookbook/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/deeplink_cookbook/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 11 |
/*
* Single source autogenerated distributable for Duktape 2.7.0.
*
* Git commit 03d4d728f8365021de6955c649e6dcd05dcca99f (03d4d72-dirty).
* Git branch HEAD.
*
* See Duktape AUTHORS.rst and LICENSE.txt for copyright and
* licensing information.
*/
/* LICENSE.txt */
/*
* ===============
* Duktape license... | codelabs/ffigen_codelab/step_05/src/duktape.c/0 | {
"file_path": "codelabs/ffigen_codelab/step_05/src/duktape.c",
"repo_id": "codelabs",
"token_count": 1777493
} | 12 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/ffigen_codelab/step_06/example/android/gradle.properties/0 | {
"file_path": "codelabs/ffigen_codelab/step_06/example/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 13 |
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:flutter/material.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
actions: [
IconButton(
... | codelabs/firebase-auth-flutterfire-ui/complete/lib/home.dart/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/complete/lib/home.dart",
"repo_id": "codelabs",
"token_count": 1022
} | 14 |
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
}
}
| codelabs/firebase-auth-flutterfire-ui/start/firebase.json/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/start/firebase.json",
"repo_id": "codelabs",
"token_count": 44
} | 15 |
import 'package:flutter/material.dart';
import 'app.dart';
// TODO(codelab user): Get API key
const clientId = 'YOUR_CLIENT_ID';
void main() async {
runApp(const MyApp());
}
| codelabs/firebase-auth-flutterfire-ui/start/lib/main.dart/0 | {
"file_path": "codelabs/firebase-auth-flutterfire-ui/start/lib/main.dart",
"repo_id": "codelabs",
"token_count": 68
} | 16 |
// Generated file.
//
// If you wish to remove Flutter's multidex support, delete this entire file.
//
// Modifications to this file should be done in a copy under a different name
// as this file may be regenerated.
package io.flutter.app;
import android.app.Application;
import android.content.Context;
import androi... | codelabs/firebase-emulator-suite/complete/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java",
"repo_id": "codelabs",
"token_count": 191
} | 17 |
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'entry.dart';
class AppState {
AppState() {
_entriesStreamController = StreamController.broadcast(onListen: () {
_entriesStreamController.add([
Entry(
da... | codelabs/firebase-emulator-suite/complete/lib/app_state.dart/0 | {
"file_path": "codelabs/firebase-emulator-suite/complete/lib/app_state.dart",
"repo_id": "codelabs",
"token_count": 838
} | 18 |
include: ../../analysis_options.yaml
| codelabs/firebase-get-to-know-flutter/step_02/analysis_options.yaml/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_02/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 19 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/firebase-get-to-know-flutter/step_04/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/firebase-get-to-know-flutter/step_04/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 20 |
# Flutter Github Client
A Flutter desktop Github client using [the `github` library].
This repository is the code behind the
[Write a Flutter desktop application] codelab.
[the `github` library]: https://pub.dev/packages/github
[Write a Flutter desktop application]: https://codelabs.developers.google.com/codelabs/fl... | codelabs/github-client/README.md/0 | {
"file_path": "codelabs/github-client/README.md",
"repo_id": "codelabs",
"token_count": 160
} | 21 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/github-client/step_03/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/github-client/step_03/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 22 |
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <url_launcher_windows/url_launcher_windows.h>
#include <window_to_front/window_to_front_plugin_c_api.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
UrlLauncherWindowsRegisterWithRegistrar(
... | codelabs/github-client/step_06/windows/flutter/generated_plugin_registrant.cc/0 | {
"file_path": "codelabs/github-client/step_06/windows/flutter/generated_plugin_registrant.cc",
"repo_id": "codelabs",
"token_count": 173
} | 23 |
// 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/window_to_front/windows/window_to_front_plugin.cpp/0 | {
"file_path": "codelabs/github-client/window_to_front/windows/window_to_front_plugin.cpp",
"repo_id": "codelabs",
"token_count": 944
} | 24 |
import '../../domain/repositories/abstract/poem_repository.dart';
import 'dart:convert';
import 'package:http/http.dart' as http;
class PoemRepositoryImpl implements PoemRepository {
PoemRepositoryImpl();
@override
Future<String> getPoems(String productName) async {
// TODO: Replace YOUR_API_KEY with your A... | codelabs/haiku_generator/finished/lib/data/repositories/poem_repository_impl.dart/0 | {
"file_path": "codelabs/haiku_generator/finished/lib/data/repositories/poem_repository_impl.dart",
"repo_id": "codelabs",
"token_count": 786
} | 25 |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widget_container"
style="@style/Widget.Android.AppWidget.Container"
android:layout_width="wrap_content"
a... | codelabs/homescreen_codelab/step_06/android/app/src/main/res/layout/news_widget.xml/0 | {
"file_path": "codelabs/homescreen_codelab/step_06/android/app/src/main/res/layout/news_widget.xml",
"repo_id": "codelabs",
"token_count": 1004
} | 26 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/in_app_purchases/complete/app/android/gradle.properties/0 | {
"file_path": "codelabs/in_app_purchases/complete/app/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 27 |
#include "Generated.xcconfig"
| codelabs/namer/step_03/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_03/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 28 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_03/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_03/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 29 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_04_a_widget/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_04_a_widget/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 30 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_04_a_widget/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_04_a_widget/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 31 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/namer/step_05_g_center_vertical/android/gradle.properties/0 | {
"file_path": "codelabs/namer/step_05_g_center_vertical/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 32 |
#include "Generated.xcconfig"
| codelabs/namer/step_05_i_optional_changes/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_i_optional_changes/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 33 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_05_i_optional_changes/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_05_i_optional_changes/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 34 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_06_a_business_logic/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/namer/step_06_a_business_logic/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 35 |
#include "Generated.xcconfig"
| codelabs/namer/step_07_b_convert_to_stateful/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 36 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/namer/step_07_b_convert_to_stateful/macos/Flutter/Flutter-Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_b_convert_to_stateful/macos/Flutter/Flutter-Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 37 |
#import "GeneratedPluginRegistrant.h"
| codelabs/namer/step_07_c_add_selectedindex/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/namer/step_07_c_add_selectedindex/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 38 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/namer/step_07_c_add_selectedindex/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/namer/step_07_c_add_selectedindex/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 39 |
import 'package:flutter_test/flutter_test.dart';
import 'package:namer_app/main.dart';
void main() {
testWidgets('Follows a11y guidelines', (WidgetTester tester) async {
// #docregion insideTest
final SemanticsHandle handle = tester.ensureSemantics();
await tester.pumpWidget(MyApp());
// Checks that... | codelabs/namer/step_08/test/a11y_test.dart/0 | {
"file_path": "codelabs/namer/step_08/test/a11y_test.dart",
"repo_id": "codelabs",
"token_count": 343
} | 40 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_02_b/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_02_b/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 41 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/next-gen-ui/step_03_b/android/gradle.properties/0 | {
"file_path": "codelabs/next-gen-ui/step_03_b/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 42 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/next-gen-ui/step_04_d/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/next-gen-ui/step_04_d/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 43 |
#import "GeneratedPluginRegistrant.h"
| codelabs/next-gen-ui/step_04_e/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/next-gen-ui/step_04_e/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 44 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/next-gen-ui/step_05_b/android/gradle.properties/0 | {
"file_path": "codelabs/next-gen-ui/step_05_b/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 45 |
include: ../../analysis_options.yaml
| codelabs/testing_codelab/step_05/analysis_options.yaml/0 | {
"file_path": "codelabs/testing_codelab/step_05/analysis_options.yaml",
"repo_id": "codelabs",
"token_count": 12
} | 46 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfagents-flutter/step4/frontend/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step4/frontend/macos/Runner/Configs/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 47 |
#include "Generated.xcconfig"
| codelabs/tfagents-flutter/step5/frontend/ios/Flutter/Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step5/frontend/ios/Flutter/Release.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 48 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfagents-flutter/step5/frontend/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfagents-flutter/step5/frontend/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 49 |
#include "Generated.xcconfig"
| codelabs/tfrs-flutter/step2/frontend/ios/Flutter/Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step2/frontend/ios/Flutter/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 12
} | 50 |
#include "ephemeral/Flutter-Generated.xcconfig"
| codelabs/tfrs-flutter/step2/frontend/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step2/frontend/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "codelabs",
"token_count": 19
} | 51 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| codelabs/tfrs-flutter/step4/frontend/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "codelabs/tfrs-flutter/step4/frontend/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "codelabs",
"token_count": 32
} | 52 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| codelabs/tfrs-flutter/step5/frontend/android/gradle.properties/0 | {
"file_path": "codelabs/tfrs-flutter/step5/frontend/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 31
} | 53 |
#import "GeneratedPluginRegistrant.h"
| codelabs/tfserving-flutter/codelab2/finished/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/finished/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 54 |
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/starter/lib/main.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/main.dart",
"repo_id": "codelabs",
"token_count": 3375
} | 55 |
///
// Generated code. Do not modify.
// source: tensorflow/core/framework/attr_value.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_f... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/attr_value.pbjson.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/attr_value.pbjson.dart",
"repo_id": "codelabs",
"token_count": 3006
} | 56 |
///
// 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.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/resource_handle.pb.dart",
"repo_id": "codelabs",
"token_count": 3975
} | 57 |
///
// 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.pbenum.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow/core/framework/versions.pbenum.dart",
"repo_id": "codelabs",
"token_count": 115
} | 58 |
///
// 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.pb.dart/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/generated/tensorflow_serving/apis/predict.pb.dart",
"repo_id": "codelabs",
"token_count": 2985
} | 59 |
syntax = "proto3";
package tensorflow;
import "tensorflow/core/framework/attr_value.proto";
import "tensorflow/core/framework/node_def.proto";
import "tensorflow/core/framework/op_def.proto";
option cc_enable_arenas = true;
option java_outer_classname = "FunctionProtos";
option java_multiple_files = true;
option jav... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/function.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow/core/framework/function.proto",
"repo_id": "codelabs",
"token_count": 1759
} | 60 |
syntax = "proto3";
package tensorflow.serving;
option cc_enable_arenas = true;
import "google/protobuf/any.proto";
import "tensorflow/core/protobuf/meta_graph.proto";
import "tensorflow_serving/apis/model.proto";
// Message returned for "signature_def" field.
message SignatureDefMap {
map<string, SignatureDef> sig... | codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/get_model_metadata.proto/0 | {
"file_path": "codelabs/tfserving-flutter/codelab2/starter/lib/proto/tensorflow_serving/apis/get_model_metadata.proto",
"repo_id": "codelabs",
"token_count": 298
} | 61 |
// 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:googleapis/docs/v1.dart' as gdoc;
List<Uri> claatImageUris(gdoc.Document document) {
List<Uri> uris = [];
for (final MapEntry(:value) in ... | codelabs/tooling/claat_export_images/lib/claat_export_images.dart/0 | {
"file_path": "codelabs/tooling/claat_export_images/lib/claat_export_images.dart",
"repo_id": "codelabs",
"token_count": 240
} | 62 |
{
// 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": "codelab_rebuild",
"request... | codelabs/tooling/codelab_rebuild/.vscode/launch.json/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/.vscode/launch.json",
"repo_id": "codelabs",
"token_count": 232
} | 63 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/webview_flutter/step_06/android/gradle.properties/0 | {
"file_path": "codelabs/webview_flutter/step_06/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 64 |
// 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,
}
class Menu ext... | codelabs/webview_flutter/step_08/lib/src/menu.dart/0 | {
"file_path": "codelabs/webview_flutter/step_08/lib/src/menu.dart",
"repo_id": "codelabs",
"token_count": 343
} | 65 |
#import "GeneratedPluginRegistrant.h"
| codelabs/webview_flutter/step_09/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "codelabs/webview_flutter/step_09/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "codelabs",
"token_count": 13
} | 66 |
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
| codelabs/webview_flutter/step_12/android/gradle.properties/0 | {
"file_path": "codelabs/webview_flutter/step_12/android/gradle.properties",
"repo_id": "codelabs",
"token_count": 30
} | 67 |
## DevTools Documentation - How To Guide
The documentation for Dart & Flutter DevTools lives on [flutter.dev](https://docs.flutter.dev/development/tools/devtools/overview).
Our docs are written and pushed up to the [flutter/website](https://docs.flutter.dev/development/tools/devtools/overview)
repo by the Flutter DevR... | devtools/DOCUMENTATION.md/0 | {
"file_path": "devtools/DOCUMENTATION.md",
"repo_id": "devtools",
"token_count": 483
} | 68 |
#include "Generated.xcconfig"
| devtools/case_study/code_size/optimized/code_size_images/ios/Flutter/Release.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/ios/Flutter/Release.xcconfig",
"repo_id": "devtools",
"token_count": 12
} | 69 |
name: code_size_images
description: A Flutter project demonstrating code size issues with images.
publish_to: none
environment:
sdk: ^3.0.0
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- assets/
| devtools/case_study/code_size/optimized/code_size_images/pubspec.yaml/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/pubspec.yaml",
"repo_id": "devtools",
"token_count": 109
} | 70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.