text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
// #docregion FullApp import 'package:flutter/material.dart'; // Include the Google Fonts package to provide more text format options // https://pub.dev/packages/google_fonts import 'package:google_fonts/google_fonts.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({...
website/examples/cookbook/design/themes/lib/main.dart/0
{ "file_path": "website/examples/cookbook/design/themes/lib/main.dart", "repo_id": "website", "token_count": 1990 }
1,600
import 'package:flutter/material.dart'; // #docregion ExpandableFab @immutable class ExpandableFab extends StatefulWidget { const ExpandableFab({ super.key, this.initialOpen, required this.distance, required this.children, }); final bool? initialOpen; final double distance; final List<Widget...
website/examples/cookbook/effects/expandable_fab/lib/excerpt1.dart/0
{ "file_path": "website/examples/cookbook/effects/expandable_fab/lib/excerpt1.dart", "repo_id": "website", "token_count": 189 }
1,601
import 'package:flutter/material.dart'; const routeHome = '/'; const routeSettings = '/settings'; const routePrefixDeviceSetup = '/setup/'; const routeDeviceSetupStart = '/setup/$routeDeviceSetupStartPage'; const routeDeviceSetupStartPage = 'find_devices'; const routeDeviceSetupSelectDevicePage = 'select_device'; cons...
website/examples/cookbook/effects/nested_nav/lib/original_example.dart/0
{ "file_path": "website/examples/cookbook/effects/nested_nav/lib/original_example.dart", "repo_id": "website", "token_count": 6104 }
1,602
import 'package:flutter/material.dart'; @immutable class FilterSelector extends StatefulWidget { const FilterSelector({ super.key, required this.filters, required this.onFilterChanged, this.padding = const EdgeInsets.symmetric(vertical: 24), }); final List<Color> filters; final void Function(C...
website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt3.dart/0
{ "file_path": "website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt3.dart", "repo_id": "website", "token_count": 1050 }
1,603
import 'package:flutter/material.dart'; void main() { runApp( const MaterialApp( home: ExampleStaggeredAnimations(), debugShowCheckedModeBanner: false, ), ); } class ExampleStaggeredAnimations extends StatefulWidget { const ExampleStaggeredAnimations({ super.key, }); @override Sta...
website/examples/cookbook/effects/staggered_menu_animation/lib/main.dart/0
{ "file_path": "website/examples/cookbook/effects/staggered_menu_animation/lib/main.dart", "repo_id": "website", "token_count": 3624 }
1,604
import 'package:flutter/material.dart'; // Define a custom Form widget. class MyCustomForm extends StatefulWidget { const MyCustomForm({super.key}); @override State<MyCustomForm> createState() => _MyCustomFormState(); } // Define a corresponding State class. // This class holds data related to the form. class ...
website/examples/cookbook/forms/focus/lib/step2.dart/0
{ "file_path": "website/examples/cookbook/forms/focus/lib/step2.dart", "repo_id": "website", "token_count": 298 }
1,605
// ignore_for_file: directives_ordering import 'package:flutter/material.dart'; import 'package:logging/logging.dart' hide Level; import 'package:provider/provider.dart'; import '../game_internals/board_state.dart'; // #docregion imports import 'package:cloud_firestore/cloud_firestore.dart'; import '../multiplayer/f...
website/examples/cookbook/games/firestore_multiplayer/lib/play_session/play_session_screen.dart/0
{ "file_path": "website/examples/cookbook/games/firestore_multiplayer/lib/play_session/play_session_screen.dart", "repo_id": "website", "token_count": 533 }
1,606
name: cached_images description: Example for cached_images cookbook recipe publish_to: none version: 1.0.0+1 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.6 cached_network_image: ^3.3.1 dev_dependencies: example_utils: path: ../../../example_utils flutter_te...
website/examples/cookbook/images/cached_images/pubspec.yaml/0
{ "file_path": "website/examples/cookbook/images/cached_images/pubspec.yaml", "repo_id": "website", "token_count": 154 }
1,607
name: floating_app_bar description: Example for floating_app_bar cookbook recipe environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../../../example_utils flutter: uses-material-design: true
website/examples/cookbook/lists/floating_app_bar/pubspec.yaml/0
{ "file_path": "website/examples/cookbook/lists/floating_app_bar/pubspec.yaml", "repo_id": "website", "token_count": 95 }
1,608
name: spaced_items description: Example for spaced_items cookbook recipe environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../../../example_utils flutter: uses-material-design: true
website/examples/cookbook/lists/spaced_items/pubspec.yaml/0
{ "file_path": "website/examples/cookbook/lists/spaced_items/pubspec.yaml", "repo_id": "website", "token_count": 91 }
1,609
import 'package:flutter/material.dart'; void main() { runApp(const MaterialApp( title: 'Navigation Basics', home: FirstRoute(), )); } class FirstRoute extends StatelessWidget { const FirstRoute({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( ...
website/examples/cookbook/navigation/navigation_basics/lib/main.dart/0
{ "file_path": "website/examples/cookbook/navigation/navigation_basics/lib/main.dart", "repo_id": "website", "token_count": 498 }
1,610
name: hero_animations description: Hero animations environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter http: ^1.2.0 dev_dependencies: example_utils: path: ../../../example_utils flutter: uses-material-design: true
website/examples/cookbook/networking/authenticated_requests/pubspec.yaml/0
{ "file_path": "website/examples/cookbook/networking/authenticated_requests/pubspec.yaml", "repo_id": "website", "token_count": 96 }
1,611
import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; // #docregion Http import 'package:http/http.dart' as http; // #enddocregion Http // #docregion createAlbum Future<Album> createAlbum(String title) async { final response = await http.post( Uri.parse('https://jsonplaceholder.typ...
website/examples/cookbook/networking/send_data/lib/main.dart/0
{ "file_path": "website/examples/cookbook/networking/send_data/lib/main.dart", "repo_id": "website", "token_count": 1315 }
1,612
import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; // ignore_for_file: unused_local_variable Future<void> main() async { // Ensure that plugin services are initialized so that `availableCameras()` // can be called before `runApp()` WidgetsFlutterBinding.ensureInit...
website/examples/cookbook/plugins/picture_using_camera/lib/main_step5.dart/0
{ "file_path": "website/examples/cookbook/plugins/picture_using_camera/lib/main_step5.dart", "repo_id": "website", "token_count": 1191 }
1,613
// #docregion Timeline import 'package:flutter_driver/flutter_driver.dart' as driver; import 'package:integration_test/integration_test_driver.dart'; Future<void> main() { return integrationDriver( responseDataCallback: (data) async { if (data != null) { final timeline = driver.Timeline.fromJson( ...
website/examples/cookbook/testing/integration/profiling/test_driver/perf_driver.dart/0
{ "file_path": "website/examples/cookbook/testing/integration/profiling/test_driver/perf_driver.dart", "repo_id": "website", "token_count": 388 }
1,614
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; // #docregion main void main() { // Define a test. The TestWidgets function also provides a WidgetTester // to work with. The WidgetTester allows you to build and interact // with widgets in the test environment. testWidge...
website/examples/cookbook/testing/widget/introduction/test/main_step3_test.dart/0
{ "file_path": "website/examples/cookbook/testing/widget/introduction/test/main_step3_test.dart", "repo_id": "website", "token_count": 334 }
1,615
#!/bin/sh # Fail this script if any subcommand fails. set -e # The default execution directory of this script is the ci_scripts directory. cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. # Install Flutter using git. git clone https://github.com/flutter/flutter.git --depth 1...
website/examples/deployment/xcode_cloud/ci_post_clone.sh/0
{ "file_path": "website/examples/deployment/xcode_cloud/ci_post_clone.sh", "repo_id": "website", "token_count": 234 }
1,616
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'user.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** User _$UserFromJson(Map<String, dynamic> json) => User( json['n...
website/examples/development/data-and-backend/json/lib/serializable/user.g.dart/0
{ "file_path": "website/examples/development/data-and-backend/json/lib/serializable/user.g.dart", "repo_id": "website", "token_count": 154 }
1,617
name: plugin_api_migration description: A new Flutter project. # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: none # Remove this line if you wish to publish to pub.dev # The following defines the...
website/examples/development/plugin_api_migration/pubspec.yaml/0
{ "file_path": "website/examples/development/plugin_api_migration/pubspec.yaml", "repo_id": "website", "token_count": 568 }
1,618
import 'package:flutter/material.dart'; void main() => runApp(const SignUpApp()); class SignUpApp extends StatelessWidget { const SignUpApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( routes: { '/': (context) => const SignUpScreen(), }, ); } } ...
website/examples/get-started/codelab_web/lib/starter.dart/0
{ "file_path": "website/examples/get-started/codelab_web/lib/starter.dart", "repo_id": "website", "token_count": 1256 }
1,619
import 'package:flutter/material.dart'; // #docregion Map void main() { runApp(MaterialApp( home: const MyAppHome(), // Becomes the route named '/'. routes: <String, WidgetBuilder>{ '/a': (context) => const MyPage(title: 'page A'), '/b': (context) => const MyPage(title: 'page B'), '/c': (co...
website/examples/get-started/flutter-for/android_devs/lib/intent.dart/0
{ "file_path": "website/examples/get-started/flutter-for/android_devs/lib/intent.dart", "repo_id": "website", "token_count": 490 }
1,620
// #docregion Theme import 'package:flutter/material.dart'; class SampleApp extends StatelessWidget { const SampleApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Sample App', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Color...
website/examples/get-started/flutter-for/android_devs/lib/theme.dart/0
{ "file_path": "website/examples/get-started/flutter-for/android_devs/lib/theme.dart", "repo_id": "website", "token_count": 246 }
1,621
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; // #docregion main void main() { runApp(const MyApp()); } // #enddocregion main // #docregion myapp class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { // Returns a ...
website/examples/get-started/flutter-for/ios_devs/lib/get_started.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/get_started.dart", "repo_id": "website", "token_count": 295 }
1,622
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; void main() { runApp( const App(), ); } // Define the name of the route as a constant so that // you can use it in the Navigator to push the route using // its name, as well as use it to create the list of your app-routes. const ...
website/examples/get-started/flutter-for/ios_devs/lib/popback.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/popback.dart", "repo_id": "website", "token_count": 1666 }
1,623
// Nothing to see here, move along...
website/examples/get-started/flutter-for/react_native_devs/my_widgets/lib/my_widgets.dart/0
{ "file_path": "website/examples/get-started/flutter-for/react_native_devs/my_widgets/lib/my_widgets.dart", "repo_id": "website", "token_count": 10 }
1,624
import 'dart:async'; import 'dart:convert'; import 'dart:isolate'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; void main() { runApp(const SampleApp()); } class SampleApp extends StatelessWidget { const SampleApp({super.key}); @override Widget build(BuildContext context) ...
website/examples/get-started/flutter-for/xamarin_devs/lib/isolates.dart/0
{ "file_path": "website/examples/get-started/flutter-for/xamarin_devs/lib/isolates.dart", "repo_id": "website", "token_count": 1049 }
1,625
import 'package:flutter_driver/driver_extension.dart'; import 'package:integration_test_migration/main.dart' as app; void main() { enableFlutterDriverExtension(); app.main(); }
website/examples/integration_test_migration/test_driver/main.dart/0
{ "file_path": "website/examples/integration_test_migration/test_driver/main.dart", "repo_id": "website", "token_count": 62 }
1,626
{ "title": "Hello World", "@title": { "description": "Title for the Demo application", "type": "text" } }
website/examples/internationalization/intl_example/lib/l10n/intl_en.arb/0
{ "file_path": "website/examples/internationalization/intl_example/lib/l10n/intl_en.arb", "repo_id": "website", "token_count": 46 }
1,627
// Basic Flutter widget test. // Learn more at https://docs.flutter.dev/testing/overview#widget-tests. import 'package:flutter_test/flutter_test.dart'; import 'package:layout/main.dart'; void main() { testWidgets('Example app smoke test', (tester) async { // Build our app and trigger a frame. await tester.p...
website/examples/layout/grid_and_list/test/widget_test.dart/0
{ "file_path": "website/examples/layout/grid_and_list/test/widget_test.dart", "repo_id": "website", "token_count": 139 }
1,628
name: layout description: >- Sample app from "Building Layouts", https://docs.flutter.dev/ui/layout. version: 1.0.0 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.6 dev_dependencies: example_utils: path: ../../../example_utils flutter_test: sdk: flutter fl...
website/examples/layout/lakes/step6/pubspec.yaml/0
{ "file_path": "website/examples/layout/lakes/step6/pubspec.yaml", "repo_id": "website", "token_count": 158 }
1,629
name: deferred_components description: Samples to showcase deferred component imports/loading. publish_to: none environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter provider: ^6.1.1 dev_dependencies: example_utils: path: ../../example_utils flutter_test: sdk: flutter test: ^1.24.9 f...
website/examples/perf/deferred_components/pubspec.yaml/0
{ "file_path": "website/examples/perf/deferred_components/pubspec.yaml", "repo_id": "website", "token_count": 136 }
1,630
import 'package:flutter/material.dart'; /// This is here so we don't need to show Scaffold and AppBar in the snippet. /// We need Scaffold+AppBar so that the smoke test can get out of this page. class HelperScaffoldWrapper extends StatelessWidget { const HelperScaffoldWrapper({super.key}); @override Widget buil...
website/examples/state_mgmt/simple/lib/src/set_state.dart/0
{ "file_path": "website/examples/state_mgmt/simple/lib/src/set_state.dart", "repo_id": "website", "token_count": 442 }
1,631
// ignore_for_file: directives_ordering import 'dart:io'; // #docregion log import 'dart:developer' as developer; void main() { developer.log('log me', name: 'my.app.category'); developer.log('log me 1', name: 'my.other.category'); developer.log('log me 2', name: 'my.other.category'); } // #enddocregion log v...
website/examples/testing/code_debugging/lib/main.dart/0
{ "file_path": "website/examples/testing/code_debugging/lib/main.dart", "repo_id": "website", "token_count": 148 }
1,632
// ignore_for_file: directives_ordering import './backend.dart'; import 'package:flutter/services.dart'; // #docregion CatchError import 'package:flutter/material.dart'; import 'dart:ui'; void main() { MyBackend myBackend = MyBackend(); PlatformDispatcher.instance.onError = (error, stack) { myBackend.sendEr...
website/examples/testing/errors/lib/excerpts.dart/0
{ "file_path": "website/examples/testing/errors/lib/excerpts.dart", "repo_id": "website", "token_count": 517 }
1,633
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; class ShortcutsExample extends StatelessWidget { const ShortcutsExample({super.key}); // #docregion ShortcutsExample @override Widget build(BuildContext context) { return Shortcuts( shortcuts: <LogicalKeySet, Intent>{ ...
website/examples/ui/advanced/actions_and_shortcuts/lib/samples.dart/0
{ "file_path": "website/examples/ui/advanced/actions_and_shortcuts/lib/samples.dart", "repo_id": "website", "token_count": 2231 }
1,634
import 'package:flutter/widgets.dart'; import 'package:provider/provider.dart'; /// Provides a top level scope for targeted actions. /// /// Targeted actions are useful for making actions that are bound to children or /// siblings of the focused widget available for invocation that wouldn't /// normally be visible to ...
website/examples/ui/layout/adaptive_app_demos/lib/global/targeted_actions.dart/0
{ "file_path": "website/examples/ui/layout/adaptive_app_demos/lib/global/targeted_actions.dart", "repo_id": "website", "token_count": 2032 }
1,635
import 'package:flutter/material.dart'; class Counter extends StatefulWidget { // This class is the configuration for the state. // It holds the values (in this case nothing) provided // by the parent and used by the build method of the // State. Fields in a Widget subclass are always marked // "final". ...
website/examples/ui/widgets_intro/lib/main_counter.dart/0
{ "file_path": "website/examples/ui/widgets_intro/lib/main_counter.dart", "repo_id": "website", "token_count": 615 }
1,636
{ "name": "docs.flutter.dev", "version": "0.0.0", "private": true, "description": "Source for https://docs.flutter.dev", "type": "module", "repository": { "type": "git", "url": "https://github.com/flutter/website.git" }, "engines": { "node": ">=20.10.0", "pnpm": ">=8.14.0" }, "packag...
website/package.json/0
{ "file_path": "website/package.json", "repo_id": "website", "token_count": 241 }
1,637
<section id="cookie-notice"> <div class="container"> <p>Google uses cookies to deliver its services, to personalize ads, and to analyze traffic. You can adjust your privacy controls anytime in your <a href="https://myaccount.google.com/data-and-personalization" target="_blank" rel="noopener">Google ...
website/src/_includes/cookie-notice.html/0
{ "file_path": "website/src/_includes/cookie-notice.html", "repo_id": "website", "token_count": 185 }
1,638
#### Build the iOS version of the Flutter app in the Terminal To generate the needed iOS platform dependencies, run the `flutter build` command. ```terminal flutter build ios --config-only --no-codesign --debug ``` ```terminal Warning: Building for device with codesigning disabled. You will have to manually codesign...
website/src/_includes/docs/debug/debug-flow-ios.md/0
{ "file_path": "website/src/_includes/docs/debug/debug-flow-ios.md", "repo_id": "website", "token_count": 1444 }
1,639
#### Set up your target Android device {% include docs/help-link.md location='android-device' section='#android-setup' %} {% assign devos = include.devos %} {% assign target = include.target %} {% assign compiler = include.compiler %} {% assign attempt = include.attempt %} To configure your Flutter app to run on a p...
website/src/_includes/docs/install/devices/android-physical.md/0
{ "file_path": "website/src/_includes/docs/install/devices/android-physical.md", "repo_id": "website", "token_count": 481 }
1,640
{% assign terminal=include.terminal %} ### Remove Flutter from your Windows Path variable {:.no_toc} To remove Flutter commands from {{terminal}}, remove Flutter from the `PATH` environment variable. {% include docs/install/reqs/windows/open-envvars.md %} 1. Under **User variables for (username)** section, look ...
website/src/_includes/docs/install/reqs/linux/unset-path.md/0
{ "file_path": "website/src/_includes/docs/install/reqs/linux/unset-path.md", "repo_id": "website", "token_count": 210 }
1,641
{{site.alert.warning}} If VS Code was running during your initial Flutter setup, you might need to restart it for VS Code's Flutter plugin to detect the Flutter SDK. {{site.alert.end}}
website/src/_includes/docs/install/test-drive/restart-vscode.md/0
{ "file_path": "website/src/_includes/docs/install/test-drive/restart-vscode.md", "repo_id": "website", "token_count": 52 }
1,642
{% comment %} This include file requires the material symbols font. Style the button pair using the `#page-github-links` selector. {% endcomment -%} {% assign repo = page.repo | default: site.repo.this -%} {% capture path -%} {{repo}}/tree/{{site.branch}}/{{site.source}}/{{page.path}} {%- endcapture -%} {% assign titl...
website/src/_includes/page-github-links.html/0
{ "file_path": "website/src/_includes/page-github-links.html", "repo_id": "website", "token_count": 370 }
1,643
# 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 'nokogiri' require 'open3' require_relative 'dart_site_util' module DartSite class CodeDiffCore ...
website/src/_plugins/code_diff_core.rb/0
{ "file_path": "website/src/_plugins/code_diff_core.rb", "repo_id": "website", "token_count": 1547 }
1,644
// Colors $flutter-color-blue: #043875; $flutter-color-teal: #158477; $flutter-color-blue-on-dark: #B8EAFE; $flutter-color-blue-500: #0468D7; $flutter-color-blue-600: #0553B1; $flutter-color-dark-blue: #042B59; $flutter-color-grey-500: #E8EAED; $flutter-color-fuchsia: #E64637; $flutter-color-yellow: #FFF275; $flutter-c...
website/src/_sass/base/_variables.scss/0
{ "file_path": "website/src/_sass/base/_variables.scss", "repo_id": "website", "token_count": 764 }
1,645
@use '../base/variables' as *; @use '../vendor/bootstrap'; .not-found { font-size: 20px; h1 { color: $flutter-color-dark-blue; font-size: 80px; margin-bottom: bootstrap.bs-spacer(3); } &__wrapper { padding: bootstrap.bs-spacer(10) 0; text-align: center; } &__illo { margin-bottom:...
website/src/_sass/pages/_not-found.scss/0
{ "file_path": "website/src/_sass/pages/_not-found.scss", "repo_id": "website", "token_count": 350 }
1,646
--- title: Multiple Flutter screens or views short-title: Add multiple Flutters description: > How to integrate multiple instances of Flutter engine, screens, or views to your application. --- ## Scenarios If you're integrating Flutter into an existing app, or gradually migrating an existing app to use Flutter, ...
website/src/add-to-app/multiple-flutters.md/0
{ "file_path": "website/src/add-to-app/multiple-flutters.md", "repo_id": "website", "token_count": 1163 }
1,647
<?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="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="842px" height="1042.66px" viewBox="0 0 842 1042.66"...
website/src/assets/images/branding/flutter/logo/1080.svg/0
{ "file_path": "website/src/assets/images/branding/flutter/logo/1080.svg", "repo_id": "website", "token_count": 2250 }
1,648
// Number of releases to show by default (rest will be behind a "show all" link). const releasesToShow = 99999; // The Flutter SDK archive filename prefix. const FILE_NAME_PREFIX = 'flutter_'; const filenameReplacement = new RegExp(`^(.*) (.*?)\\b${FILE_NAME_PREFIX}\\w+_v?[X|0-9]+\\..* (.*)`, 'm'); // const filenameR...
website/src/assets/js/archive.js/0
{ "file_path": "website/src/assets/js/archive.js", "repo_id": "website", "token_count": 3906 }
1,649
--- title: Fade a widget in and out description: How to fade a widget in and out. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/animation/opacity_animation/"?> UI developers often need to show and hide elements on screen. However, quickly po...
website/src/cookbook/animation/opacity-animation.md/0
{ "file_path": "website/src/cookbook/animation/opacity-animation.md", "repo_id": "website", "token_count": 2334 }
1,650
--- title: Create a nested navigation flow description: How to implement a flow with nested navigation. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/effects/nested_nav"?> Apps accumulate dozens and then hundreds of routes over time. Some of...
website/src/cookbook/effects/nested-nav.md/0
{ "file_path": "website/src/cookbook/effects/nested-nav.md", "repo_id": "website", "token_count": 10044 }
1,651
--- title: Handle taps description: How to handle tapping and dragging. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/gestures/handling_taps/"?> You not only want to display information to users, you want users to interact with your app. Use...
website/src/cookbook/gestures/handling-taps.md/0
{ "file_path": "website/src/cookbook/gestures/handling-taps.md", "repo_id": "website", "token_count": 1384 }
1,652
--- title: List with spaced items description: How to create a list with spaced or expanded items js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/lists/spaced_items/"?> Perhaps you want to create a list where all list items are spaced evenly,...
website/src/cookbook/lists/spaced-items.md/0
{ "file_path": "website/src/cookbook/lists/spaced-items.md", "repo_id": "website", "token_count": 2718 }
1,653
--- title: Networking description: A catalog of recipes for networking in your Flutter app. --- {% include docs/cookbook-group-index.md %}
website/src/cookbook/networking/index.md/0
{ "file_path": "website/src/cookbook/networking/index.md", "repo_id": "website", "token_count": 41 }
1,654
--- title: Unit description: A catalog of recipes for adding unit testing to your Flutter app. --- {% include docs/cookbook-group-index.md %}
website/src/cookbook/testing/unit/index.md/0
{ "file_path": "website/src/cookbook/testing/unit/index.md", "repo_id": "website", "token_count": 42 }
1,655
--- title: Start thinking declaratively description: How to think about declarative programming. prev: title: Intro path: /development/data-and-backend/state-mgmt next: title: Ephemeral versus app state path: /development/data-and-backend/state-mgmt/ephemeral-vs-app --- If you're coming to Flutter from an impe...
website/src/data-and-backend/state-mgmt/declarative.md/0
{ "file_path": "website/src/data-and-backend/state-mgmt/declarative.md", "repo_id": "website", "token_count": 581 }
1,656
--- title: Embedded support for Flutter description: > Details of how Flutter supports the creation of embedded experiences. --- If you would like to embed Flutter engine into a car, a refrigerator, a thermostat... you CAN! For example, you might embed Flutter in the following situations: * Using Flutter on an "emb...
website/src/embedded/index.md/0
{ "file_path": "website/src/embedded/index.md", "repo_id": "website", "token_count": 582 }
1,657
--- title: Layouts description: Learn how to create layouts in Flutter. prev: title: Flutter fundamentals path: /get-started/fwe/fundamentals next: title: State management --- Given that Flutter is a UI toolkit, you’ll spend a lot of time creating layouts with Flutter widgets. In this section, you’ll learn how...
website/src/get-started/fwe/layout.md/0
{ "file_path": "website/src/get-started/fwe/layout.md", "repo_id": "website", "token_count": 2195 }
1,658
### Update your path Independent of how you installed Flutter, you need to add the Flutter SDK to your `PATH`. You can add Flutter to your `PATH` either for the current session or for all sessions going forward. {% include docs/dart-tool.md %} #### Update your path for the current session only To update your `PATH`...
website/src/get-started/install/_deprecated/_path-linux-chromeos.md/0
{ "file_path": "website/src/get-started/install/_deprecated/_path-linux-chromeos.md", "repo_id": "website", "token_count": 710 }
1,659
--- title: Start building Flutter iOS apps on macOS description: Configure your system to develop Flutter mobile apps on macOS and iOS. short-title: Make iOS apps target: iOS config: macOSiOS devos: macOS next: title: Create a test app path: /get-started/test-drive --- {% include docs/install/reqs/macos/base.md ...
website/src/get-started/install/macos/mobile-ios.md/0
{ "file_path": "website/src/get-started/install/macos/mobile-ios.md", "repo_id": "website", "token_count": 305 }
1,660
--- title: Using packages description: How to use packages in your Flutter app. --- <?code-excerpt path-base="development/plugin_api_migration"?> Flutter supports using shared packages contributed by other developers to the Flutter and Dart ecosystems. This allows quickly building an app without having to develop eve...
website/src/packages-and-plugins/using-packages.md/0
{ "file_path": "website/src/packages-and-plugins/using-packages.md", "repo_id": "website", "token_count": 4924 }
1,661
--- layout: toc title: Android description: Content covering integration with Android in Flutter apps. ---
website/src/platform-integration/android/index.md/0
{ "file_path": "website/src/platform-integration/android/index.md", "repo_id": "website", "token_count": 26 }
1,662
--- title: Leveraging Apple's System APIs and Frameworks description: Learn about Flutter plugins that offer equivalent functionalities to Apple's frameworks --- When you come from iOS development, you might need to find Flutter plugins that offer the same abilities as Apple's system libraries. This might include acce...
website/src/platform-integration/ios/apple-frameworks.md/0
{ "file_path": "website/src/platform-integration/ios/apple-frameworks.md", "repo_id": "website", "token_count": 4024 }
1,663
--- title: Add Linux devtools to Flutter from web start description: Configure your system to develop Flutter mobile apps on Linux. short-title: Starting from web --- To add Linux as a Flutter app target for Linux, follow this procedure. ## Install Linux compilation tools 1. Allocate a minimum of 5 GB of storage for...
website/src/platform-integration/linux/install-linux/install-linux-from-web.md/0
{ "file_path": "website/src/platform-integration/linux/install-linux/install-linux-from-web.md", "repo_id": "website", "token_count": 155 }
1,664
--- title: Add web DevTools to Flutter from Android on Linux start description: Configure your system to develop Flutter web apps on Linux. short-title: Starting from Android on Linux --- To add web as a Flutter app target for Linux with Android, follow this procedure. ## Configure Chrome as the web DevTools tools {...
website/src/platform-integration/web/install-web/install-web-from-android-on-linux.md/0
{ "file_path": "website/src/platform-integration/web/install-web/install-web-from-android-on-linux.md", "repo_id": "website", "token_count": 144 }
1,665
--- title: Flutter crash reporting description: >- How Google uses crash reporting, what is collected, and how to opt out. --- If you have not opted-out of Flutter's analytics and crash reporting, when a `flutter` command crashes, it attempts to send a crash report to Google in order to help Google contribute improv...
website/src/reference/crash-reporting.md/0
{ "file_path": "website/src/reference/crash-reporting.md", "repo_id": "website", "token_count": 504 }
1,666
--- title: Deprecated API removed after v3.16 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.16 stable release have been removed. All affe...
website/src/release/breaking-changes/3-16-deprecations.md/0
{ "file_path": "website/src/release/breaking-changes/3-16-deprecations.md", "repo_id": "website", "token_count": 2048 }
1,667
--- title: Removal of AssetManifest.json description: >- Built Flutter apps will no longer include an AssetManifest.json asset file. --- ## Summary Flutter apps currently include an asset file named AssetManifest.json. This file effectively contains a list of assets. Application code can read it using the [AssetB...
website/src/release/breaking-changes/asset-manifest-dot-json.md/0
{ "file_path": "website/src/release/breaking-changes/asset-manifest-dot-json.md", "repo_id": "website", "token_count": 914 }
1,668
--- title: Clip Behavior description: > Flutter unifies clipBehavior and defaults to not clip in most cases. --- ## Summary Flutter now defaults to _not_ clip except for a few specialized widgets (such as `ClipRect`). To override the no-clip default, explicitly set `clipBehavior` in widgets constructions. ## Conte...
website/src/release/breaking-changes/clip-behavior.md/0
{ "file_path": "website/src/release/breaking-changes/clip-behavior.md", "repo_id": "website", "token_count": 2583 }
1,669
--- title: FloatingActionButton and ThemeData's accent properties description: > Remove FloatingActionButton's undocumented use of the ThemeData accentTextTheme property, and its unnecessary use of accentIconTheme. --- ## Summary Removed Flutter's `FloatingActionButton` (FAB) dependency on `ThemeData` accent pr...
website/src/release/breaking-changes/fab-theme-data-accent-properties.md/0
{ "file_path": "website/src/release/breaking-changes/fab-theme-data-accent-properties.md", "repo_id": "website", "token_count": 1417 }
1,670
--- title: Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system description: >- The raw key event subsystem has been superseded by the key event subsystem, and APIs that use RawKeyEvent and RawKeyboard are converted to KeyEvent and HardwareKeyboard. --- ## Summary For some time now (years)...
website/src/release/breaking-changes/key-event-migration.md/0
{ "file_path": "website/src/release/breaking-changes/key-event-migration.md", "repo_id": "website", "token_count": 4159 }
1,671
--- title: Rebuild optimization for OverlayEntries and Routes description: OverlayEntries only rebuild on explicit state changes. --- ## Summary This optimization improves performance for route transitions, but it may uncover missing calls to `setState` in your app. ## Context Prior to this change, an `OverlayEntry...
website/src/release/breaking-changes/overlay-entry-rebuilds.md/0
{ "file_path": "website/src/release/breaking-changes/overlay-entry-rebuilds.md", "repo_id": "website", "token_count": 1135 }
1,672
--- title: SnackBars managed by the ScaffoldMessenger description: > SnackBars are now managed by the ScaffoldMessenger, and persist across routes. --- ## Summary The `SnackBar` API within the `Scaffold` is now handled by the `ScaffoldMessenger`, one of which is available by default within the context of a `Materia...
website/src/release/breaking-changes/scaffold-messenger.md/0
{ "file_path": "website/src/release/breaking-changes/scaffold-messenger.md", "repo_id": "website", "token_count": 2308 }
1,673
--- title: ThemeData's toggleableActiveColor property has been deprecated description: > Material Widgets that use toggleableActiveColor property are migrated to use Material ColorScheme. --- ## Summary The Material widgets `Switch`, `SwitchListTile`, `Checkbox`, `CheckboxListTile`, `Radio`, `RadioListTile` now u...
website/src/release/breaking-changes/toggleable-active-color.md/0
{ "file_path": "website/src/release/breaking-changes/toggleable-active-color.md", "repo_id": "website", "token_count": 1245 }
1,674
--- title: Change log for Flutter 1.5.4 short-title: 1.5.4 change log description: Change log for Flutter 1.5.4 containing a list of all PRs merged for this release. --- ## PRs closed in this release of flutter/flutter From Thu Feb 21 20:22:00 2019 -0800 to Wed May 1 16:56:00 2019 -0700 [21834](https://github.com/...
website/src/release/release-notes/changelogs/changelog-1.5.4.md/0
{ "file_path": "website/src/release/release-notes/changelogs/changelog-1.5.4.md", "repo_id": "website", "token_count": 49670 }
1,675
--- title: Flutter 2.5.0 release notes short-title: 2.5.0 release notes description: Release notes for Flutter 2.5.0. --- This page has release notes for 2.5.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.5.0.md/0
{ "file_path": "website/src/release/release-notes/release-notes-2.5.0.md", "repo_id": "website", "token_count": 443172 }
1,676
--- title: Bootstrap into Dart description: How to get started with the Dart programming language. --- New to the [Dart][] language? We compiled our favorite resources to help you quickly learn Dart. Many people have reported that [Dart is easy and fun to learn][]. We hope these resources make Dart easy for you to lea...
website/src/resources/bootstrap-into-dart.md/0
{ "file_path": "website/src/resources/bootstrap-into-dart.md", "repo_id": "website", "token_count": 611 }
1,677
--- title: Debugging Flutter apps description: How to debug your Flutter app. --- <?code-excerpt path-base="testing/debugging"?> There's a wide variety of tools and features to help debug Flutter applications. Here are some of the available tools: * [VS Code][](recommended) and [Android Studio/IntelliJ][], (enabl...
website/src/testing/debugging.md/0
{ "file_path": "website/src/testing/debugging.md", "repo_id": "website", "token_count": 531 }
1,678
--- title: Using the Flutter inspector description: Learn how to use the Flutter inspector to explore a Flutter app's widget tree. --- <?code-excerpt path-base="../examples/visual_debugging/"?> {{site.alert.note}} The inspector works with all Flutter applications. {{site.alert.end}} ## What is it? The Flutter wid...
website/src/tools/devtools/inspector.md/0
{ "file_path": "website/src/tools/devtools/inspector.md", "repo_id": "website", "token_count": 6148 }
1,679
# DevTools 2.16.0 release notes The 2.16.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 This release includes several bug ...
website/src/tools/devtools/release-notes/release-notes-2.16.0-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.16.0-src.md", "repo_id": "website", "token_count": 161 }
1,680
# DevTools 2.24.0 release notes The 2.24.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 * Improve the overall performance ...
website/src/tools/devtools/release-notes/release-notes-2.24.0-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.24.0-src.md", "repo_id": "website", "token_count": 553 }
1,681
# DevTools 2.28.5 release notes The 2.28.5 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). This was a cherry-pick release on top of DevTools 2.28...
website/src/tools/devtools/release-notes/release-notes-2.28.5-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.28.5-src.md", "repo_id": "website", "token_count": 335 }
1,682
# DevTools 2.9.1 release notes The 2.9.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). ## Debugger updates * Improve support for inspecting la...
website/src/tools/devtools/release-notes/release-notes-2.9.1-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.9.1-src.md", "repo_id": "website", "token_count": 426 }
1,683
--- title: Internationalizing Flutter apps short-title: i18n description: How to internationalize your Flutter app. --- <?code-excerpt path-base="internationalization"?> {% comment %} Consider updating the number of languages when touching this page. {% endcomment %} {% assign languageCount = '115' -%} {{site.alert...
website/src/ui/accessibility-and-internationalization/internationalization.md/0
{ "file_path": "website/src/ui/accessibility-and-internationalization/internationalization.md", "repo_id": "website", "token_count": 15696 }
1,684
--- title: Using Actions and Shortcuts description: How to use Actions and Shortcuts in your Flutter app. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- This page describes how to bind physical keyboard events to actions in the user interface. For instance, to define keyboard s...
website/src/ui/interactivity/actions-and-shortcuts.md/0
{ "file_path": "website/src/ui/interactivity/actions-and-shortcuts.md", "repo_id": "website", "token_count": 7087 }
1,685
--- title: Navigation and routing description: Overview of Flutter's navigation and routing features --- Flutter provides a complete system for navigating between screens and handling deep links. Small applications without complex deep linking can use [`Navigator`][], while apps with specific deep linking and navigati...
website/src/ui/navigation/index.md/0
{ "file_path": "website/src/ui/navigation/index.md", "repo_id": "website", "token_count": 2010 }
1,686
--- title: Styling widgets short-title: Styling description: A catalog of Flutter's theming and responsiveness widgets. --- {% include docs/catalogpage.html category="Styling" %}
website/src/ui/widgets/styling.md/0
{ "file_path": "website/src/ui/widgets/styling.md", "repo_id": "website", "token_count": 51 }
1,687
#include "Generated.xcconfig"
codelabs/adaptive_app/step_03/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_03/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
0
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/adaptive_app/step_03/macos/Flutter/Flutter-Debug.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_03/macos/Flutter/Flutter-Debug.xcconfig", "repo_id": "codelabs", "token_count": 19 }
1
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/adaptive_app/step_06/android/gradle.properties/0
{ "file_path": "codelabs/adaptive_app/step_06/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
2
#include "../../Flutter/Flutter-Debug.xcconfig" #include "Warnings.xcconfig"
codelabs/adaptive_app/step_06/macos/Runner/Configs/Debug.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_06/macos/Runner/Configs/Debug.xcconfig", "repo_id": "codelabs", "token_count": 32 }
3
#include "Generated.xcconfig"
codelabs/animated-responsive-layout/step_03/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_03/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
4
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_03/macos/Flutter/Flutter-Debug.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_03/macos/Flutter/Flutter-Debug.xcconfig", "repo_id": "codelabs", "token_count": 19 }
5
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/animated-responsive-layout/step_04/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_04/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
6
#include "Generated.xcconfig"
codelabs/animated-responsive-layout/step_06/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_06/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
7
include: ../../analysis_options.yaml
codelabs/animated-responsive-layout/step_07/analysis_options.yaml/0
{ "file_path": "codelabs/animated-responsive-layout/step_07/analysis_options.yaml", "repo_id": "codelabs", "token_count": 12 }
8
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_08/macos/Flutter/Flutter-Debug.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_08/macos/Flutter/Flutter-Debug.xcconfig", "repo_id": "codelabs", "token_count": 19 }
9
#import "GeneratedPluginRegistrant.h"
codelabs/boring_to_beautiful/final/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/boring_to_beautiful/final/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
10
#import "GeneratedPluginRegistrant.h"
codelabs/boring_to_beautiful/step_02/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/boring_to_beautiful/step_02/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
11