text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
import 'dart:io' show Platform; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:universal_platform/universal_platform.dart'; class DeviceType { // Syntax sugar, proxy the UniversalPlatform methods so our views can r...
website/examples/ui/layout/adaptive_app_demos/lib/global/device_type.dart/0
{ "file_path": "website/examples/ui/layout/adaptive_app_demos/lib/global/device_type.dart", "repo_id": "website", "token_count": 795 }
1,212
{% comment %} Embeds breadcrumb RDFa, follows ARIA guidelines. References: - https://developers.google.com/search/docs/data-types/breadcrumb - https://schema.org/BreadcrumbList - https://www.w3.org/TR/wai-aria-practices/examples/breadcrumb/index.html - https://search.google.com/structured-data/testing-tool {% endcommen...
website/src/_includes/breadcrumbs.html/0
{ "file_path": "website/src/_includes/breadcrumbs.html", "repo_id": "website", "token_count": 541 }
1,213
{{site.alert.note}} If you want to use the [GNU Project Debugger][] to debug the Flutter engine running within an Android app process, check out [`flutter_gdb`][]. {{site.alert.end}} [GNU Project Debugger]: https://www.sourceware.org/gdb/ [`flutter_gdb`]: {{site.repo.engine}}/blob/main/sky/tools/flutter_gdb ###...
website/src/_includes/docs/debug/debug-flow-android.md/0
{ "file_path": "website/src/_includes/docs/debug/debug-flow-android.md", "repo_id": "website", "token_count": 1055 }
1,214
#### Set up the Android emulator {% include docs/help-link.md location='android-emulator' section='#android-setup' %} {% assign devos = include.devos %} {% assign target = include.target %} {% assign compiler = include.compiler %} {% assign attempt = include.attempt %} {% case devos %} {% when 'Windows','Linux' -%} ...
website/src/_includes/docs/install/devices/android-emulator.md/0
{ "file_path": "website/src/_includes/docs/install/devices/android-emulator.md", "repo_id": "website", "token_count": 831 }
1,215
<img src='/assets/images/docs/get-started/hot-reload.svg' alt='lightning bolt' style="height: 1.6rem" class="bg-dark p-1">
website/src/_includes/docs/install/test-drive/hot-reload-icon.md/0
{ "file_path": "website/src/_includes/docs/install/test-drive/hot-reload-icon.md", "repo_id": "website", "token_count": 63 }
1,216
{% if include.next or include.prev -%} {% if include.next and include.prev -%} {% assign nav_class = 'site-nextprev-nav' -%} {% else -%} {% assign nav_class = 'site-nextprev-nav__single' -%} {% endif -%} <nav class="{{nav_class}}"> <ul> {% if include.prev.path -%} <li class="prev"> ...
website/src/_includes/next-prev-nav.html/0
{ "file_path": "website/src/_includes/next-prev-nav.html", "repo_id": "website", "token_count": 293 }
1,217
# Copyright (c) 2018, the project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. require 'liquid/tag/parser' # https://github.com/envygeeks/liquid-tag-parser require_relative 'code_diff_core' ...
website/src/_plugins/code_diff.rb/0
{ "file_path": "website/src/_plugins/code_diff.rb", "repo_id": "website", "token_count": 280 }
1,218
// Overrides for printing so only page content is printed @media print { // Ignore navigation elements and other non-necessary interactive ones .site-header, .subnav, .site-footer, .site-sidebar, .navbar, #site-toc--side, #page-github-links, #cookie-notice, .site-banner, .code-excerpt__copy-btn, .breadcrumb { ...
website/src/_sass/base/_print-overrides.scss/0
{ "file_path": "website/src/_sass/base/_print-overrides.scss", "repo_id": "website", "token_count": 314 }
1,219
@use '../base/variables' as *; @use '../vendor/bootstrap'; .landing-page { background-color: $site-color-codeblock-bg; h2 { font-size: 2rem; margin-top: 0; @include bootstrap.media-breakpoint-up(lg) { font-size: 2.25rem; } @include bootstrap.media-breakpoint-up(xl) { font-size: 2.7...
website/src/_sass/pages/_landing-page.scss/0
{ "file_path": "website/src/_sass/pages/_landing-page.scss", "repo_id": "website", "token_count": 1678 }
1,220
--- title: Integrate a Flutter module into your iOS project short-title: Integrate Flutter description: Learn how to integrate a Flutter module into your existing iOS project. --- Flutter UI components can be incrementally added into your existing iOS application as embedded frameworks. There are a few ways to embed F...
website/src/add-to-app/ios/project-setup.md/0
{ "file_path": "website/src/add-to-app/ios/project-setup.md", "repo_id": "website", "token_count": 5683 }
1,221
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="content" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="407px" height="739.32px" viewBox="0 0 407 739.32" e...
website/src/assets/images/branding/flutter/logo+text/vertical/white.svg/0
{ "file_path": "website/src/assets/images/branding/flutter/logo+text/vertical/white.svg", "repo_id": "website", "token_count": 3951 }
1,222
<svg xmlns="http://www.w3.org/2000/svg"> <symbol id="youtube" viewBox="0 0 192 192" fill="currentColor"> <path d="M78 69.831v52.338L124 96Zm102.322 68.806c-2.024 7.622-7.988 13.624-15.56 15.661C151.037 158 96 158 96 158s-55.037 0-68.762-3.702c-7.572-2.037-13.536-8.039-15.56-15.66C8 124.822 8 96 8 96s0-28.82...
website/src/assets/images/social/youtube.svg/0
{ "file_path": "website/src/assets/images/social/youtube.svg", "repo_id": "website", "token_count": 295 }
1,223
--- title: Animation description: A catalog of recipes for adding animations to your Flutter app. --- {% include docs/cookbook-group-index.md %}
website/src/cookbook/animation/index.md/0
{ "file_path": "website/src/cookbook/animation/index.md", "repo_id": "website", "token_count": 41 }
1,224
--- title: Effects description: A catalog of recipes for adding effects to your Flutter app. --- {% include docs/cookbook-group-index.md %}
website/src/cookbook/effects/index.md/0
{ "file_path": "website/src/cookbook/effects/index.md", "repo_id": "website", "token_count": 41 }
1,225
--- title: Implement swipe to dismiss description: How to implement swiping to dismiss or delete. diff2html: true js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/gestures/dismissible"?> The "swipe to dismiss" pattern is common in many mobile a...
website/src/cookbook/gestures/dismissible.md/0
{ "file_path": "website/src/cookbook/gestures/dismissible.md", "repo_id": "website", "token_count": 2213 }
1,226
--- title: Create lists with different types of items description: How to implement a list that contains different types of assets. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/lists/mixed_list/"?> You might need to create lists that displa...
website/src/cookbook/lists/mixed-list.md/0
{ "file_path": "website/src/cookbook/lists/mixed-list.md", "repo_id": "website", "token_count": 2022 }
1,227
--- title: Fetch data from the internet description: How to fetch data over the internet using the http package. --- <?code-excerpt path-base="cookbook/networking/fetch_data/"?> Fetching data from the internet is necessary for most apps. Luckily, Dart and Flutter provide tools, such as the `http` package, for this ty...
website/src/cookbook/networking/fetch-data.md/0
{ "file_path": "website/src/cookbook/networking/fetch-data.md", "repo_id": "website", "token_count": 3706 }
1,228
--- title: Performance profiling description: How to profile performance for a Flutter app. --- <?code-excerpt path-base="cookbook/testing/integration/profiling/"?> When it comes to mobile apps, performance is critical to user experience. Users expect apps to have smooth scrolling and meaningful animations free of st...
website/src/cookbook/testing/integration/profiling.md/0
{ "file_path": "website/src/cookbook/testing/integration/profiling.md", "repo_id": "website", "token_count": 3039 }
1,229
--- title: JSON and serialization short-title: JSON description: How to use JSON with Flutter. --- <?code-excerpt path-base="development/data-and-backend/json/"?> It is hard to think of a mobile app that doesn't need to communicate with a web server or easily store structured data at some point. When making network-c...
website/src/data-and-backend/serialization/json.md/0
{ "file_path": "website/src/data-and-backend/serialization/json.md", "repo_id": "website", "token_count": 5534 }
1,230
--- title: Build and release a Windows desktop app description: How to release a Flutter app to the Microsoft Store. short-title: windows --- One convenient approach to distributing Windows apps is the [Microsoft Store][microsoftstore]. This guide provides a step-by-step walkthrough of packaging and deploying a Flutte...
website/src/deployment/windows.md/0
{ "file_path": "website/src/deployment/windows.md", "repo_id": "website", "token_count": 2728 }
1,231
--- title: First week experience of Flutter description: > You've gotten a taste of using the Flutter framework; now go beyond to learn the basics of Flutter. --- ## Welcome to the next level of Flutter! If you are new to Flutter, and have already worked through [your first Flutter codelab][], this section of the...
website/src/get-started/fwe/index.md/0
{ "file_path": "website/src/get-started/fwe/index.md", "repo_id": "website", "token_count": 861 }
1,232
## macOS setup ### Additional macOS requirements For macOS desktop development, you need the following in addition to the Flutter SDK: * [Xcode][] * [CocoaPods][] if you use plugins [CocoaPods]: https://cocoapods.org/ [Xcode]: {{site.apple-dev}}/xcode/
website/src/get-started/install/_deprecated/_macos-desktop-setup.md/0
{ "file_path": "website/src/get-started/install/_deprecated/_macos-desktop-setup.md", "repo_id": "website", "token_count": 86 }
1,233
--- title: Start building Flutter Android apps on macOS description: Configure your system to develop Flutter mobile apps on macOS and Android. short-title: Make Android apps target: Android config: macOSAndroid devos: macOS next: title: Create a test app path: /get-started/test-drive --- {% include docs/install/r...
website/src/get-started/install/macos/mobile-android.md/0
{ "file_path": "website/src/get-started/install/macos/mobile-android.md", "repo_id": "website", "token_count": 305 }
1,234
--- layout: toc title: Packages & plugins description: > Content covering using and developing packages and plugins for Flutter apps. ---
website/src/packages-and-plugins/index.md/0
{ "file_path": "website/src/packages-and-plugins/index.md", "repo_id": "website", "token_count": 35 }
1,235
--- title: Targeting ChromeOS with Android description: Platform-specific considerations for building for ChromeOS with Flutter. --- This page discusses considerations unique to building Android apps that support ChromeOS with Flutter. ## Flutter & ChromeOS tips & tricks For the current versions of ChromeOS, only ce...
website/src/platform-integration/android/chromeos.md/0
{ "file_path": "website/src/platform-integration/android/chromeos.md", "repo_id": "website", "token_count": 532 }
1,236
--- title: Adding iOS app extensions description: Learn how to add app extensions to your Flutter apps --- iOS app extensions allow you to expand functionality outside your app. Your app could appear as a home screen widget, or you can make portions of your app available within other apps. To learn more about app ext...
website/src/platform-integration/ios/app-extensions.md/0
{ "file_path": "website/src/platform-integration/ios/app-extensions.md", "repo_id": "website", "token_count": 3374 }
1,237
--- title: Add Linux devtools to Flutter from Android start description: Configure your system to develop Flutter mobile apps also on Linux. short-title: Starting from Android --- To add Linux desktop as a Flutter app target, follow this procedure. ## Install Linux compilation tools 1. Allocate a minimum of 5 GB of ...
website/src/platform-integration/linux/install-linux/install-linux-from-android.md/0
{ "file_path": "website/src/platform-integration/linux/install-linux/install-linux-from-android.md", "repo_id": "website", "token_count": 160 }
1,238
--- title: Add Chrome DevTools to Flutter from Android on ChromeOS start description: Configure your system to develop Flutter web apps on ChromeOS. short-title: Starting from Android on ChromeOS --- To add web as a Flutter app target for ChromeOS with Android, follow this procedure. ## Configure Chrome as the web De...
website/src/platform-integration/web/install-web/install-web-from-android-on-chromeos.md/0
{ "file_path": "website/src/platform-integration/web/install-web/install-web-from-android-on-chromeos.md", "repo_id": "website", "token_count": 153 }
1,239
--- title: Deprecated API removed after v3.13 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 3.13 stable release have been removed. All affe...
website/src/release/breaking-changes/3-13-deprecations.md/0
{ "file_path": "website/src/release/breaking-changes/3-13-deprecations.md", "repo_id": "website", "token_count": 3942 }
1,240
--- title: AnnotatedRegionLayers return local position relative to clipping region description: > Provide annotation searches with reliable and meaningful local positions. --- ## Summary The local position returned by `AnnotatedRegionLayers` in an annotation search has been changed to be relative to the clipping re...
website/src/release/breaking-changes/annotations-return-local-position-relative-to-object.md/0
{ "file_path": "website/src/release/breaking-changes/annotations-return-local-position-relative-to-object.md", "repo_id": "website", "token_count": 916 }
1,241
--- title: Migrate useDeleteButtonTooltip to deleteButtonTooltipMessage of Chips description: > Deprecated useDeleteButtonTooltip of chips that have a delete button in favor of deleteButtonTooltipMessage. --- ## Summary Using `useDeleteButtonTooltip` of any chip that has a delete button gives a deprecation warnin...
website/src/release/breaking-changes/chip-usedeletebuttontooltip-migration.md/0
{ "file_path": "website/src/release/breaking-changes/chip-usedeletebuttontooltip-migration.md", "repo_id": "website", "token_count": 752 }
1,242
--- title: Change the enterText method to move the caret to the end of the input text description: > WidgetTester.enterText and TestTextInput.enterText now move the caret to the end of the input text. --- ## Summary The `WidgetTester.enterText` and `TestTextInput.enterText` methods now move the caret to the end o...
website/src/release/breaking-changes/enterText-trailing-caret.md/0
{ "file_path": "website/src/release/breaking-changes/enterText-trailing-caret.md", "repo_id": "website", "token_count": 999 }
1,243
--- title: iOS FlutterViewController splashScreenView made nullable description: > FlutterViewController splashScreenView changed from nonnull to nullable. --- ## Summary The `FlutterViewController` property `splashScreenView` has been changed from `nonnull` to `nullable`. Old declaration of `splashScreenView`: `...
website/src/release/breaking-changes/ios-flutterviewcontroller-splashscreenview-nullable.md/0
{ "file_path": "website/src/release/breaking-changes/ios-flutterviewcontroller-splashscreenview-nullable.md", "repo_id": "website", "token_count": 742 }
1,244
--- title: Nullable CupertinoThemeData.brightness description: > CupertinoThemeData.brightness is now nullable, and it returns the value specified by the user (defaults to null) as is. --- ## Summary [`CupertinoThemeData.brightness`] is now nullable. ## Context [`CupertinoThemeData.brightness`][] is now used to...
website/src/release/breaking-changes/nullable-cupertinothemedata-brightness.md/0
{ "file_path": "website/src/release/breaking-changes/nullable-cupertinothemedata-brightness.md", "repo_id": "website", "token_count": 716 }
1,245
--- title: Migration guide for RouteSettings copyWith description: Removal of RouteSettings copyWith and how to migrate --- ## Summary The `RouteSettings.copyWith` method is removed, and apps that use it need to use the constructor to create a new `RouteSettings` instance instead. ## Context With the introduction o...
website/src/release/breaking-changes/routesettings-copywith-migration.md/0
{ "file_path": "website/src/release/breaking-changes/routesettings-copywith-migration.md", "repo_id": "website", "token_count": 314 }
1,246
--- title: ThemeData's accent properties have been deprecated description: > The ThemeData accentColor, accentColorBrightness, accentIconTheme, and accentTextTheme properties have been deprecated. --- ## Summary The ThemeData [accentColor][], [accentColorBrightness][], [accentIconTheme][] and [accentTextTheme][] ...
website/src/release/breaking-changes/theme-data-accent-properties.md/0
{ "file_path": "website/src/release/breaking-changes/theme-data-accent-properties.md", "repo_id": "website", "token_count": 1956 }
1,247
--- title: Change log for Flutter 1.2.2 short-title: 1.2.2 change log description: Change log for Flutter 1.2.2 containing a list of all PRs merged for this release. --- ## PRs closed in this release of flutter/flutter From Fri Nov 29 19:41:00 2018 -0800 to Thu Feb 21 20:22:00 2019 -0800 [21157](https://github.co...
website/src/release/release-notes/changelogs/changelog-1.2.1.md/0
{ "file_path": "website/src/release/release-notes/changelogs/changelog-1.2.1.md", "repo_id": "website", "token_count": 43225 }
1,248
--- title: Flutter 2.2.0 release notes short-title: 2.2.0 release notes description: Release notes for Flutter 2.2.0. --- This page has release notes for 2.2.0. For information about subsequent bug-fix releases, see [Hotfixes to the Stable Channel][]. [Hotfixes to the Stable Channel]: https://github.com/flutter/flutte...
website/src/release/release-notes/release-notes-2.2.0.md/0
{ "file_path": "website/src/release/release-notes/release-notes-2.2.0.md", "repo_id": "website", "token_count": 389406 }
1,249
--- title: Books about Flutter description: Extra, extra! Here's a collection of books about Flutter. toc: false --- Here's a collection of books about Flutter, in alphabetical order. If you find another one that we should add, [file an issue][] and (feel free to) submit a PR ([sample][]) to add it yourself. Also, ch...
website/src/resources/books.md/0
{ "file_path": "website/src/resources/books.md", "repo_id": "website", "token_count": 471 }
1,250
--- title: Common Flutter errors description: How to recognize and resolve common Flutter framework errors. --- <?code-excerpt path-base="testing/common_errors"?> ## Introduction This page explains several frequently-encountered Flutter framework errors (including layout errors) and gives suggestions on how to resol...
website/src/testing/common-errors.md/0
{ "file_path": "website/src/testing/common-errors.md", "repo_id": "website", "token_count": 5362 }
1,251
--- layout: toc title: DevTools description: Content covering the Dart and Flutter DevTools. ---
website/src/tools/devtools/index.md/0
{ "file_path": "website/src/tools/devtools/index.md", "repo_id": "website", "token_count": 27 }
1,252
--- short-title: 2.15.0 release notes description: Release notes for Dart and Flutter DevTools version 2.15.0. toc: false --- {% include_relative release-notes-2.15.0-src.md %}
website/src/tools/devtools/release-notes/release-notes-2.15.0.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.15.0.md", "repo_id": "website", "token_count": 61 }
1,253
--- short-title: 2.23.1 release notes description: Release notes for Dart and Flutter DevTools version 2.23.1. toc: false --- {% include_relative release-notes-2.23.1-src.md %}
website/src/tools/devtools/release-notes/release-notes-2.23.1.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.23.1.md", "repo_id": "website", "token_count": 61 }
1,254
--- short-title: 2.28.4 release notes description: Release notes for Dart and Flutter DevTools version 2.28.4. toc: false --- {% include_relative release-notes-2.28.4-src.md %}
website/src/tools/devtools/release-notes/release-notes-2.28.4.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.28.4.md", "repo_id": "website", "token_count": 61 }
1,255
--- short-title: 2.8.0 release notes description: Release notes for Dart and Flutter DevTools version 2.8.0. toc: false --- {% include_relative release-notes-2.8.0-src.md %}
website/src/tools/devtools/release-notes/release-notes-2.8.0.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.8.0.md", "repo_id": "website", "token_count": 61 }
1,256
--- layout: toc title: Accessibility & internationalization short-title: a11y & i18n description: > Content covering accessibility and internationalization in Flutter apps. ---
website/src/ui/accessibility-and-internationalization/index.md/0
{ "file_path": "website/src/ui/accessibility-and-internationalization/index.md", "repo_id": "website", "token_count": 46 }
1,257
--- title: Building user interfaces with Flutter short-title: UI description: Introduction to user interface development in Flutter. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="ui/widgets_intro/"?> {% assign api = site.api | append: '/flutter' -%} ...
website/src/ui/index.md/0
{ "file_path": "website/src/ui/index.md", "repo_id": "website", "token_count": 10247 }
1,258
--- title: Deep linking description: Navigate to routes when the app receives a new URL. --- Flutter supports deep linking on iOS, Android, and web browsers. Opening a URL displays that screen in your app. With the following steps, you can launch and display routes by using named routes (either with the [`routes`][rou...
website/src/ui/navigation/deep-linking.md/0
{ "file_path": "website/src/ui/navigation/deep-linking.md", "repo_id": "website", "token_count": 1918 }
1,259
--- title: Scrolling widgets short-title: Scrolling description: A catalog of Flutter's widgets that enable or support scrolling. --- {% include docs/catalogpage.html category="Scrolling" %}
website/src/ui/widgets/scrolling.md/0
{ "file_path": "website/src/ui/widgets/scrolling.md", "repo_id": "website", "token_count": 52 }
1,260
name: flutter_site description: Dart-based tools for building docs.flutter.dev. publish_to: none environment: sdk: ^3.3.0 dependencies: args: ^2.4.2 io: ^1.0.4 linkcheck: ^3.0.0 path: ^1.9.0 dev_dependencies: analysis_defaults: path: ../../site-shared/packages/analysis_defaults
website/tool/flutter_site/pubspec.yaml/0
{ "file_path": "website/tool/flutter_site/pubspec.yaml", "repo_id": "website", "token_count": 124 }
1,261
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/adaptive_app/step_04/android/gradle.properties/0
{ "file_path": "codelabs/adaptive_app/step_04/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
0
#import "GeneratedPluginRegistrant.h"
codelabs/adaptive_app/step_06/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/adaptive_app/step_06/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
1
// 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:io' show Platform; import 'package:extension_google_sign_in_as_googleapis_auth/extension_google_sign_in_as_googleapis_auth.dart'; import 'pac...
codelabs/adaptive_app/step_07/lib/src/adaptive_login.dart/0
{ "file_path": "codelabs/adaptive_app/step_07/lib/src/adaptive_login.dart", "repo_id": "codelabs", "token_count": 1496 }
2
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/animated-responsive-layout/step_04/android/gradle.properties/0
{ "file_path": "codelabs/animated-responsive-layout/step_04/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
3
#import "GeneratedPluginRegistrant.h"
codelabs/animated-responsive-layout/step_04/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/animated-responsive-layout/step_04/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
4
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_05/macos/Flutter/Flutter-Debug.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_05/macos/Flutter/Flutter-Debug.xcconfig", "repo_id": "codelabs", "token_count": 19 }
5
// 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 '../destinations.dart'; class DisappearingNavigationRail extends StatelessWidget { const DisappearingNav...
codelabs/animated-responsive-layout/step_06/lib/widgets/disappearing_navigation_rail.dart/0
{ "file_path": "codelabs/animated-responsive-layout/step_06/lib/widgets/disappearing_navigation_rail.dart", "repo_id": "codelabs", "token_count": 687 }
6
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_06/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_06/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
7
// 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 '../animations.dart'; class NavRailTransition extends StatefulWidget { const NavRailTransition( {su...
codelabs/animated-responsive-layout/step_07/lib/transitions/nav_rail_transition.dart/0
{ "file_path": "codelabs/animated-responsive-layout/step_07/lib/transitions/nav_rail_transition.dart", "repo_id": "codelabs", "token_count": 660 }
8
// 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:go_router/go_router.dart'; import '../../../shared/classes/classes.dart'; import '../../../shared/...
codelabs/boring_to_beautiful/final/lib/src/features/artists/view/artist_screen.dart/0
{ "file_path": "codelabs/boring_to_beautiful/final/lib/src/features/artists/view/artist_screen.dart", "repo_id": "codelabs", "token_count": 3397 }
9
// 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 '../providers/providers.dart'; import './classes.dart'; class Artist { const Artist({ required this.id, required this.name, required ...
codelabs/boring_to_beautiful/final/lib/src/shared/classes/artist.dart/0
{ "file_path": "codelabs/boring_to_beautiful/final/lib/src/shared/classes/artist.dart", "repo_id": "codelabs", "token_count": 241 }
10
// 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:adaptive_components/adaptive_components.dart'; import 'package:flutter/material.dart'; import '../../../shared/classes/classes.dart'; impo...
codelabs/boring_to_beautiful/step_01/lib/src/features/home/view/home_screen.dart/0
{ "file_path": "codelabs/boring_to_beautiful/step_01/lib/src/features/home/view/home_screen.dart", "repo_id": "codelabs", "token_count": 3784 }
11
// 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'; // Add Google Fonts Package import extension TypographyUtils on BuildContext { ThemeData get theme => Theme.of(t...
codelabs/boring_to_beautiful/step_01/lib/src/shared/extensions.dart/0
{ "file_path": "codelabs/boring_to_beautiful/step_01/lib/src/shared/extensions.dart", "repo_id": "codelabs", "token_count": 1241 }
12
// 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 'package:flutter_bloc/flutter_bloc.dart'; import '../classes/classes.dart'; import '....
codelabs/boring_to_beautiful/step_01/lib/src/shared/views/bottom_bar.dart/0
{ "file_path": "codelabs/boring_to_beautiful/step_01/lib/src/shared/views/bottom_bar.dart", "repo_id": "codelabs", "token_count": 12106 }
13
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <desktop_window/desktop_window_plugin.h> #include <dynamic_color/dynamic_color_plugin_c_api.h> #include <url_launcher_windows/url_launcher_windows.h> void RegisterPlugins(flutter::PluginRegistry* registry) {...
codelabs/boring_to_beautiful/step_01/windows/flutter/generated_plugin_registrant.cc/0
{ "file_path": "codelabs/boring_to_beautiful/step_01/windows/flutter/generated_plugin_registrant.cc", "repo_id": "codelabs", "token_count": 216 }
14
name: Brick Breaker with Flame steps: - name: step_03 steps: - name: Remove generated code rmdir: step_03 - name: Create project flutter: create brick_breaker --empty - name: Strip DEVELOPMENT_TEAM strip-lines-containing: DEVELOPMENT_TEAM = path: brick_breaker/ios...
codelabs/brick_breaker/codelab_rebuild.yaml/0
{ "file_path": "codelabs/brick_breaker/codelab_rebuild.yaml", "repo_id": "codelabs", "token_count": 27046 }
15
export 'play_area.dart';
codelabs/brick_breaker/step_04/lib/src/components/components.dart/0
{ "file_path": "codelabs/brick_breaker/step_04/lib/src/components/components.dart", "repo_id": "codelabs", "token_count": 10 }
16
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/brick_breaker/step_10/android/gradle.properties/0
{ "file_path": "codelabs/brick_breaker/step_10/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
17
#include "Generated.xcconfig"
codelabs/dart-patterns-and-records/step_03/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_03/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
18
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/dart-patterns-and-records/step_03/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_03/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
19
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/dart-patterns-and-records/step_04/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_04/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
20
#include "Generated.xcconfig"
codelabs/dart-patterns-and-records/step_08/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_08/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
21
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/dart-patterns-and-records/step_09/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_09/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
22
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/dart-patterns-and-records/step_10/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/dart-patterns-and-records/step_10/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
23
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/ffigen_codelab/step_03/example/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/ffigen_codelab/step_03/example/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
24
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.ffigen_app"> </manifest>
codelabs/ffigen_codelab/step_06/android/src/main/AndroidManifest.xml/0
{ "file_path": "codelabs/ffigen_codelab/step_06/android/src/main/AndroidManifest.xml", "repo_id": "codelabs", "token_count": 44 }
25
// Copyright 2017, 2020, 2022 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. import 'package:ffigen_app/ffigen_app.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; impo...
codelabs/ffigen_codelab/step_07/example/lib/main.dart/0
{ "file_path": "codelabs/ffigen_codelab/step_07/example/lib/main.dart", "repo_id": "codelabs", "token_count": 3020 }
26
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/ffigen_codelab/step_07/example/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/ffigen_codelab/step_07/example/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
27
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/firebase-auth-flutterfire-ui/complete/android/gradle.properties/0
{ "file_path": "codelabs/firebase-auth-flutterfire-ui/complete/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
28
import 'package:flutter/material.dart'; import 'auth_gate.dart'; class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMate...
codelabs/firebase-auth-flutterfire-ui/start/lib/app.dart/0
{ "file_path": "codelabs/firebase-auth-flutterfire-ui/start/lib/app.dart", "repo_id": "codelabs", "token_count": 151 }
29
#include "Generated.xcconfig"
codelabs/firebase-emulator-suite/start/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/firebase-emulator-suite/start/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
30
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/firebase-emulator-suite/start/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/firebase-emulator-suite/start/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
31
# Get to know Firebase for Flutter codelab This code supports the [Get to know Firebase for Flutter][] codelab. The directories are the state of the project at the end of the numbered step in the codelab. [Get to know Firebase for Flutter]: https://firebase.google.com/codelabs/firebase-get-to-know-flutter
codelabs/firebase-get-to-know-flutter/README.md/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/README.md", "repo_id": "codelabs", "token_count": 93 }
32
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/firebase-get-to-know-flutter/step_05/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/step_05/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
33
// 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 'app_state.dart'; import 'src/widgets.dart'; class YesNoSelection extends StatelessWidget { const YesNoS...
codelabs/firebase-get-to-know-flutter/step_09/lib/yes_no_selection.dart/0
{ "file_path": "codelabs/firebase-get-to-know-flutter/step_09/lib/yes_no_selection.dart", "repo_id": "codelabs", "token_count": 1096 }
34
function ci_codelabs () { local channel="$1" shift # ffigen_codelab/step_07 needs to build the native library before running the tests pushd ffigen_codelab/step_07/example # RUNNER_OS from https://stackoverflow.com/a/72926104/2142626 if [ $RUNNER_OS = 'Linux' ]; then sudo se...
codelabs/flutter_ci_script_shared.sh/0
{ "file_path": "codelabs/flutter_ci_script_shared.sh", "repo_id": "codelabs", "token_count": 941 }
35
# 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 writing, ...
codelabs/github-client/window_to_front/pubspec.yaml/0
{ "file_path": "codelabs/github-client/window_to_front/pubspec.yaml", "repo_id": "codelabs", "token_count": 988 }
36
/* * 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_4/lib/main.dart/0
{ "file_path": "codelabs/google-maps-in-flutter/step_4/lib/main.dart", "repo_id": "codelabs", "token_count": 588 }
37
#import "GeneratedPluginRegistrant.h"
codelabs/haiku_generator/finished/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/haiku_generator/finished/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
38
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
codelabs/haiku_generator/step0/android/gradle.properties/0
{ "file_path": "codelabs/haiku_generator/step0/android/gradle.properties", "repo_id": "codelabs", "token_count": 31 }
39
import '../../models/product.dart'; abstract class ProductRepository { Future<List<Product>> getAllProducts(); }
codelabs/haiku_generator/step0/lib/domain/repositories/abstract/product_repository.dart/0
{ "file_path": "codelabs/haiku_generator/step0/lib/domain/repositories/abstract/product_repository.dart", "repo_id": "codelabs", "token_count": 35 }
40
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/haiku_generator/step0/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/haiku_generator/step0/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
41
#import "GeneratedPluginRegistrant.h"
codelabs/haiku_generator/step1/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/haiku_generator/step1/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
42
org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
codelabs/haiku_generator/step2/android/gradle.properties/0
{ "file_path": "codelabs/haiku_generator/step2/android/gradle.properties", "repo_id": "codelabs", "token_count": 31 }
43
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/haiku_generator/step2/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/haiku_generator/step2/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
44
#import "GeneratedPluginRegistrant.h"
codelabs/haiku_generator/step3/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/haiku_generator/step3/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
45
// Import will depend on App ID. package com.mydomain.homescreen_widgets import android.appwidget.AppWidgetManager import android.appwidget.AppWidgetProvider import android.content.Context import android.widget.RemoteViews // New import. import es.antonborri.home_widget.HomeWidgetPlugin /** * Implementation of App...
codelabs/homescreen_codelab/step_05/android/app/src/main/java/com/mydomain/homescreen_widgets/NewsWidget.kt/0
{ "file_path": "codelabs/homescreen_codelab/step_05/android/app/src/main/java/com/mydomain/homescreen_widgets/NewsWidget.kt", "repo_id": "codelabs", "token_count": 469 }
46
#import "GeneratedPluginRegistrant.h"
codelabs/homescreen_codelab/step_05/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/homescreen_codelab/step_05/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
47
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleDisplayName</key> <string>dash clicker</string> <key>...
codelabs/in_app_purchases/complete/app/ios/Runner/Info-Debug.plist/0
{ "file_path": "codelabs/in_app_purchases/complete/app/ios/Runner/Info-Debug.plist", "repo_id": "codelabs", "token_count": 911 }
48
import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; import '../logic/dash_counter.dart'; import '../logic/dash_purchases.dart'; import '../logic/dash_upgrades.dart'; class HomePage extends StatelessWidget { const HomePage({super.key}); @override Wid...
codelabs/in_app_purchases/complete/app/lib/pages/home_page.dart/0
{ "file_path": "codelabs/in_app_purchases/complete/app/lib/pages/home_page.dart", "repo_id": "codelabs", "token_count": 1351 }
49