text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
package com.example.simplistic_editor import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
samples/simplistic_editor/android/app/src/main/kotlin/com/example/simplistic_editor/MainActivity.kt/0
{ "file_path": "samples/simplistic_editor/android/app/src/main/kotlin/com/example/simplistic_editor/MainActivity.kt", "repo_id": "samples", "token_count": 40 }
1,212
# testing_app A Sample app that shows different types of testing in Flutter. This particular sample uses the [Provider][] package but any other state management approach would do. [provider]: https://pub.dev/packages/provider ## Goals for this sample Show how to perform: - Widget Testing, - Integration Testing, -...
samples/testing_app/README.md/0
{ "file_path": "samples/testing_app/README.md", "repo_id": "samples", "token_count": 834 }
1,213
#import "GeneratedPluginRegistrant.h"
samples/testing_app/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "samples/testing_app/ios/Runner/Runner-Bridging-Header.h", "repo_id": "samples", "token_count": 13 }
1,214
// Copyright 2018 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:flutter/cupertino.dart'; import 'package:go_router/go_router.dart'; import 'package:provider/provider.dart'; import 'package:veggieseasons/dat...
samples/veggieseasons/lib/screens/details.dart/0
{ "file_path": "samples/veggieseasons/lib/screens/details.dart", "repo_id": "samples", "token_count": 5931 }
1,215
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="description" content="A new Flutter project."> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-status-bar-style" conten...
samples/veggieseasons/web/index.html/0
{ "file_path": "samples/veggieseasons/web/index.html", "repo_id": "samples", "token_count": 229 }
1,216
<!DOCTYPE html> <html> <head> <base href="$FLUTTER_BASE_HREF"> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="description" content="web_startup_analyzer example"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-...
samples/web/_packages/web_startup_analyzer/example/web/index.html/0
{ "file_path": "samples/web/_packages/web_startup_analyzer/example/web/index.html", "repo_id": "samples", "token_count": 600 }
1,217
name: tool publish_to: none environment: sdk: ^3.2.0 dependencies: markdown: ^7.0.0 path: ^1.8.0 dev_dependencies: lints: ^3.0.0
samples/web/_tool/pubspec.yaml/0
{ "file_path": "samples/web/_tool/pubspec.yaml", "repo_id": "samples", "token_count": 70 }
1,218
// Copyright 2020 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 'dart:html'; class Carousel { final bool withArrowKeyControl; final Element container = querySelector('.slider-container')!; final List<Element>...
samples/web/samples_index/lib/src/carousel.dart/0
{ "file_path": "samples/web/samples_index/lib/src/carousel.dart", "repo_id": "samples", "token_count": 2661 }
1,219
.dockerignore .gitignore AUTHORS CONTRIBUTING.md LICENSE node_modules/ README.md
website/.dockerignore/0
{ "file_path": "website/.dockerignore", "repo_id": "website", "token_count": 34 }
1,220
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // A simple radial transition. The destination route is basic, // with no Card, Column, or Text. import 'dart:math' as math; import 'package:flutter/mat...
website/examples/_animation/basic_radial_hero_animation/lib/main.dart/0
{ "file_path": "website/examples/_animation/basic_radial_hero_animation/lib/main.dart", "repo_id": "website", "token_count": 2103 }
1,221
// ignore_for_file: unused_local_variable // #docregion Starter import 'package:flutter/material.dart'; void main() { runApp( const MaterialApp( home: Page1(), ), ); } class Page1 extends StatelessWidget { const Page1({super.key}); @override Widget build(BuildContext context) { return Sca...
website/examples/cookbook/animation/page_route_animation/lib/starter.dart/0
{ "file_path": "website/examples/cookbook/animation/page_route_animation/lib/starter.dart", "repo_id": "website", "token_count": 1077 }
1,222
# Theme Cookbook recipe ## Objective This recipe explains and demonstrates the following: - How to set and apply color and font values to an entire Flutter app. - How to override the overall theme's color and font values for one or more components in a Flutter app. ## Source Code https://docs.flutter.dev/cookboo...
website/examples/cookbook/design/themes/README.md/0
{ "file_path": "website/examples/cookbook/design/themes/README.md", "repo_id": "website", "token_count": 88 }
1,223
import 'package:flutter/material.dart'; // #docregion FilterSelector @immutable class FilterSelector extends StatefulWidget { const FilterSelector({ super.key, }); @override State<FilterSelector> createState() => _FilterSelectorState(); } class _FilterSelectorState extends State<FilterSelector> { @over...
website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt1.dart/0
{ "file_path": "website/examples/cookbook/effects/photo_filter_carousel/lib/excerpt1.dart", "repo_id": "website", "token_count": 697 }
1,224
import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { const appTitle = 'Form Styling Demo'; return MaterialApp( title: appTitle, home: Scaffold( app...
website/examples/cookbook/forms/text_input/lib/main.dart/0
{ "file_path": "website/examples/cookbook/forms/text_input/lib/main.dart", "repo_id": "website", "token_count": 644 }
1,225
// ignore_for_file: directives_ordering, prefer_const_constructors import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; // #docregion imports import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_core/firebase_core.dart'; import 'firebase_options.dart'; // #enddo...
website/examples/cookbook/games/firestore_multiplayer/lib/main.dart/0
{ "file_path": "website/examples/cookbook/games/firestore_multiplayer/lib/main.dart", "repo_id": "website", "token_count": 288 }
1,226
import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { const title = 'Cached Images'; return Materia...
website/examples/cookbook/images/cached_images/lib/main.dart/0
{ "file_path": "website/examples/cookbook/images/cached_images/lib/main.dart", "repo_id": "website", "token_count": 330 }
1,227
import 'package:flutter/material.dart'; class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { // #docregion CustomScrollView return Scaffold( // No appBar property provided, only the body. body: CustomScrollView( // Add the a...
website/examples/cookbook/lists/floating_app_bar/lib/starter.dart/0
{ "file_path": "website/examples/cookbook/lists/floating_app_bar/lib/starter.dart", "repo_id": "website", "token_count": 165 }
1,228
import 'package:flutter/material.dart'; void main() => runApp(const SpacedItemsList()); class SpacedItemsList extends StatelessWidget { const SpacedItemsList({super.key}); @override Widget build(BuildContext context) { const items = 4; return MaterialApp( title: 'Flutter Demo', debugShowCh...
website/examples/cookbook/lists/spaced_items/lib/main.dart/0
{ "file_path": "website/examples/cookbook/lists/spaced_items/lib/main.dart", "repo_id": "website", "token_count": 626 }
1,229
import 'package:flutter_test/flutter_test.dart'; import 'package:shared_preferences/shared_preferences.dart'; void main() { setUpAll(() { // #docregion setup SharedPreferences.setMockInitialValues(<String, Object>{ 'counter': 2, }); // #enddocregion setup }); test('sanity check readmeSnipp...
website/examples/cookbook/persistence/key_value/test/prefs_test.dart/0
{ "file_path": "website/examples/cookbook/persistence/key_value/test/prefs_test.dart", "repo_id": "website", "token_count": 168 }
1,230
import 'dart:async'; import 'dart:io'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; Future<void> main() async { // #docregion init // Ensure that plugin services are initialized so that `availableCameras()` // can be called before `runApp()` WidgetsFlutterBinding.ensureInitiali...
website/examples/cookbook/plugins/picture_using_camera/lib/main.dart/0
{ "file_path": "website/examples/cookbook/plugins/picture_using_camera/lib/main.dart", "repo_id": "website", "token_count": 1596 }
1,231
import 'package:flutter_test/flutter_test.dart'; void main() { Foo foo = Foo(); // #docregion Expect expect(foo.runtimeType.toString(), equals('Foo')); // #enddocregion Expect } class Foo { Foo(); }
website/examples/deployment/obfuscate/lib/main.dart/0
{ "file_path": "website/examples/deployment/obfuscate/lib/main.dart", "repo_id": "website", "token_count": 77 }
1,232
import 'dart:convert'; import 'user.dart'; const jsonString = ''' { "name": "John Smith", "email": "john@example.com" } '''; void exampleJson() { // #docregion fromJson final userMap = jsonDecode(jsonString) as Map<String, dynamic>; final user = User.fromJson(userMap); // #enddocregion fromJson print(...
website/examples/development/data-and-backend/json/lib/serializable/main.dart/0
{ "file_path": "website/examples/development/data-and-backend/json/lib/serializable/main.dart", "repo_id": "website", "token_count": 189 }
1,233
// ignore_for_file: import_of_legacy_library_into_null_safe import 'package:battery/battery.dart'; // #docregion Test import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); testWidgets('Can ...
website/examples/development/plugin_api_migration/lib/test.dart/0
{ "file_path": "website/examples/development/plugin_api_migration/lib/test.dart", "repo_id": "website", "token_count": 171 }
1,234
import 'package:flutter/material.dart'; class MyWidget extends StatelessWidget { const MyWidget({super.key}); @override Widget build(BuildContext context) { // #docregion InputHint return const Center( child: TextField( decoration: InputDecoration(hintText: 'This is a hint'), ), ...
website/examples/get-started/flutter-for/android_devs/lib/form.dart/0
{ "file_path": "website/examples/get-started/flutter-for/android_devs/lib/form.dart", "repo_id": "website", "token_count": 132 }
1,235
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; void main() { runApp( const App(), ); } // #docregion Routes // Defines the route name as a constant // so that it's reusable. const detailsPageRouteName = '/details'; class App extends StatelessWidget { const App({ super....
website/examples/get-started/flutter-for/ios_devs/lib/navigation.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/navigation.dart", "repo_id": "website", "token_count": 1246 }
1,236
import 'package:flutter/material.dart'; void main() { runApp(const SampleApp()); } class SampleApp extends StatelessWidget { const SampleApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return const MaterialApp( title: 'Sample App', ...
website/examples/get-started/flutter-for/ios_devs/lib/validation_errors.dart/0
{ "file_path": "website/examples/get-started/flutter-for/ios_devs/lib/validation_errors.dart", "repo_id": "website", "token_count": 736 }
1,237
// Flutter import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Welcome to Flutter', home: Scaffold( appBar: AppBar( ...
website/examples/get-started/flutter-for/react_native_devs/lib/widget_tree.dart/0
{ "file_path": "website/examples/get-started/flutter-for/react_native_devs/lib/widget_tree.dart", "repo_id": "website", "token_count": 199 }
1,238
import 'package:flutter/material.dart'; class ImageAssetExample extends StatelessWidget { const ImageAssetExample({super.key}); // #docregion ImageAsset @override Widget build(BuildContext context) { return Image.asset('images/my_icon.png'); } // #enddocregion ImageAsset } class AssetImageExample ext...
website/examples/get-started/flutter-for/xamarin_devs/lib/images.dart/0
{ "file_path": "website/examples/get-started/flutter-for/xamarin_devs/lib/images.dart", "repo_id": "website", "token_count": 183 }
1,239
import 'dart:convert'; import 'package:flutter/material.dart'; void main() { runApp(const PlantsApp()); } class Plant { Plant(this.name, this.species); final String name; final String species; } class PlantsApp extends StatelessWidget { const PlantsApp({super.key}); // This widget is the root of your...
website/examples/integration_test_migration/lib/main.dart/0
{ "file_path": "website/examples/integration_test_migration/lib/main.dart", "repo_id": "website", "token_count": 2267 }
1,240
name: gen_l10n_example publish_to: none description: >- Example of an internationalized Flutter app that uses `flutter gen-l10n`. environment: sdk: ^3.3.0 # #docregion FlutterLocalizations dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter intl: any # #enddocregion FlutterLocali...
website/examples/internationalization/gen_l10n_example/pubspec.yaml/0
{ "file_path": "website/examples/internationalization/gen_l10n_example/pubspec.yaml", "repo_id": "website", "token_count": 193 }
1,241
name: constraints description: example for ui/layout/constraints version: 1.0.0 environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../../example_utils flutter: uses-material-design: true
website/examples/layout/constraints/pubspec.yaml/0
{ "file_path": "website/examples/layout/constraints/pubspec.yaml", "repo_id": "website", "token_count": 98 }
1,242
import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart' show debugPaintSizeEnabled; void main() { debugPaintSizeEnabled = false; // Set to true for visual layout runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); static const showGrid = true; // S...
website/examples/layout/grid_and_list/lib/main.dart/0
{ "file_path": "website/examples/layout/grid_and_list/lib/main.dart", "repo_id": "website", "token_count": 994 }
1,243
import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { const String appTitle = 'Flutter layout demo'; return MaterialApp( title: appTitle, home: Scaffold( ...
website/examples/layout/lakes/step3/lib/main.dart/0
{ "file_path": "website/examples/layout/lakes/step3/lib/main.dart", "repo_id": "website", "token_count": 1900 }
1,244
// box.dart import 'package:flutter/material.dart'; /// A simple blue 30x30 box. class DeferredBox extends StatelessWidget { const DeferredBox({super.key}); @override Widget build(BuildContext context) { return Container( height: 30, width: 30, color: Colors.blue, ); } }
website/examples/perf/deferred_components/lib/box.dart/0
{ "file_path": "website/examples/perf/deferred_components/lib/box.dart", "repo_id": "website", "token_count": 116 }
1,245
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'provider.dart'; class AnotherMonstrousWidget extends SomeExpensiveWidget { const AnotherMonstrousWidget({ super.child, super.key, }); } class ChildUsingDescendant extends StatelessWidget { const ChildUsingDescendant...
website/examples/state_mgmt/simple/lib/src/performance.dart/0
{ "file_path": "website/examples/state_mgmt/simple/lib/src/performance.dart", "repo_id": "website", "token_count": 1240 }
1,246
class MyBackend { void sendError(Object error, StackTrace stack) {} }
website/examples/testing/errors/lib/backend.dart/0
{ "file_path": "website/examples/testing/errors/lib/backend.dart", "repo_id": "website", "token_count": 23 }
1,247
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; enum ScreenType { handset, tablet, desktop, watch } // #docregion FormFactor class FormFactor { static double desktop = 900; static double tablet = 600; static double handset = 300; } // #enddocregion FormFactor // #docregion getF...
website/examples/ui/layout/adaptive_app_demos/lib/global/device_size.dart/0
{ "file_path": "website/examples/ui/layout/adaptive_app_demos/lib/global/device_size.dart", "repo_id": "website", "token_count": 758 }
1,248
name: visual_debugging_example publish_to: none description: Examples of visual debugging. environment: sdk: ^3.3.0 dependencies: flutter: sdk: flutter dev_dependencies: example_utils: path: ../example_utils flutter_test: sdk: flutter
website/examples/visual_debugging/pubspec.yaml/0
{ "file_path": "website/examples/visual_debugging/pubspec.yaml", "repo_id": "website", "token_count": 98 }
1,249
{% comment %} For headings use h3 elements. {% endcomment -%} <div class="site-banner site-banner--default" role="alert"> Flutter and Dart's latest releases are helping to define the future of app development. <a href="https://medium.com/flutter/starting-2024-strong-with-flutter-and-dart-cae9845264fe">Read the ...
website/src/_includes/banner.html/0
{ "file_path": "website/src/_includes/banner.html", "repo_id": "website", "token_count": 118 }
1,250
1. Click the **Attach debugger to Android process** button. (![Tiny green bug superimposed with a light grey arrow](/assets/images/docs/testing/debugging/native/android-studio/attach-process-button.png)) {{site.alert.tip}} If this button doesn't appear in the **Projects** menu bar, verify that you o...
website/src/_includes/docs/debug/debug-android-attach-process.md/0
{ "file_path": "website/src/_includes/docs/debug/debug-android-attach-process.md", "repo_id": "website", "token_count": 935 }
1,251
## Configure iOS development {% assign prompt1='$' %} {% assign devos = include.devos %} {% assign target = include.target %} {% assign attempt = include.attempt %} ### Configure Xcode {% if attempt=="first" %} To develop Flutter apps for {{target}}, install Xcode to compile to native bytecode. 1. To configure the...
website/src/_includes/docs/install/compiler/xcode.md/0
{ "file_path": "website/src/_includes/docs/install/compiler/xcode.md", "repo_id": "website", "token_count": 1116 }
1,252
{% assign os = include.os %} {% assign target = include.target %} To develop Flutter on {{os}}: {% if os == "ChromeOS" %} 1. Enable [Linux][] on your Chromebook. {% endif %} 1. Verify that you have the following tools installed: `bash`, `file`, `mkdir`, `rm`, `which` ```terminal $ which bash file mkdir r...
website/src/_includes/docs/install/reqs/linux/software.md/0
{ "file_path": "website/src/_includes/docs/install/reqs/linux/software.md", "repo_id": "website", "token_count": 789 }
1,253
<div class="tab-pane" id="androidstudio" role="tabpanel" aria-labelledby="androidstudio-tab" markdown="1"> ### Create your sample Flutter app {#create-app} 1. Launch the IDE. 1. Click **New Flutter Project** at the top of the **Welcome to Android Studio** dialog. 1. Under **Generators**, click **Flutter**. 1. V...
website/src/_includes/docs/install/test-drive/androidstudio.md/0
{ "file_path": "website/src/_includes/docs/install/test-drive/androidstudio.md", "repo_id": "website", "token_count": 825 }
1,254
{% if entries -%} ### Topics {% for topic in entries -%} {% if topic.permalink == nil -%} {% if topic contains 'header' %} #### {{topic.header}} {% else -%} - {{topic.title}} {% endif -%} {% else -%} - [{{topic.title}}]({{topic.permalink}}) {% endif -%} {% endfor %} {% endif -%}
website/src/_includes/mini-toc.md/0
{ "file_path": "website/src/_includes/mini-toc.md", "repo_id": "website", "token_count": 122 }
1,255
module Jekyll ## # Used with permission. Based on code posted at # biosphere.cc/software-engineering/jekyll-breadcrumbs-navigation-plugin/. # # Patch Jekyll's Page class class Page ## # We add a custom method to the page variable, that returns an ordered list of its # parent pages ready for it...
website/src/_plugins/breadcrumb.rb/0
{ "file_path": "website/src/_plugins/breadcrumb.rb", "repo_id": "website", "token_count": 1500 }
1,256
// Material Design Colors // // Colors based off the material design palette // https://material.google.com/style/color.html#color-color-palette $amber-50: #FFF8E1; $amber-100: #FFECB3; $amber-200: #FFE082; $amber-300: #FFD54F; $amber-400: #FFCA28; $amber-500: #FFC107; $amber-600: #FFB300; $amber-700: #FFA000; $amber-...
website/src/_sass/base/_material-colors.scss/0
{ "file_path": "website/src/_sass/base/_material-colors.scss", "repo_id": "website", "token_count": 1834 }
1,257
@use '../base/variables' as *; @use '../vendor/bootstrap'; .site-toc { ul { padding-left: 0; margin-left: 0; list-style: none; flex-direction: column; } &__title { font-family: $site-font-family-alt; font-size: 18px; margin-bottom: bootstrap.bs-spacer(2); } } #site-toc--side { p...
website/src/_sass/components/_toc.scss/0
{ "file_path": "website/src/_sass/components/_toc.scss", "repo_id": "website", "token_count": 950 }
1,258
--- layout: toc title: Add Flutter to iOS description: Content covering adding Flutter to existing iOS apps. ---
website/src/add-to-app/ios/index.md/0
{ "file_path": "website/src/add-to-app/ios/index.md", "repo_id": "website", "token_count": 30 }
1,259
<svg xmlns="http://www.w3.org/2000/svg"> <symbol id="twitter" viewBox="0 0 1200 1227" fill="currentColor"> <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L1...
website/src/assets/images/social/twitter.svg/0
{ "file_path": "website/src/assets/images/social/twitter.svg", "repo_id": "website", "token_count": 234 }
1,260
--- title: Animate the properties of a container description: How to animate properties of a container using implicit animations. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/animation/animated_container/"?> The [`Container`][] class provid...
website/src/cookbook/animation/animated-container.md/0
{ "file_path": "website/src/cookbook/animation/animated-container.md", "repo_id": "website", "token_count": 2623 }
1,261
--- title: Create gradient chat bubbles description: How to implement gradient chat bubbles. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/effects/gradient_bubbles"?> Traditional chat apps display messages in chat bubbles with solid color ba...
website/src/cookbook/effects/gradient-bubbles.md/0
{ "file_path": "website/src/cookbook/effects/gradient-bubbles.md", "repo_id": "website", "token_count": 5851 }
1,262
--- title: Games description: A catalog of recipes to help you build games with Flutter. --- {% include docs/cookbook-group-index.md -%} - [Add ads to your mobile Flutter app or game](/cookbook/plugins/google-mobile-ads)
website/src/cookbook/games/index.md/0
{ "file_path": "website/src/cookbook/games/index.md", "repo_id": "website", "token_count": 68 }
1,263
--- title: Work with long lists description: Use ListView.builder to implement a long or infinite list. js: - defer: true url: https://old-dartpad-3ce3f.web.app/inject_embed.dart.js --- <?code-excerpt path-base="cookbook/lists/long_lists/"?> The standard [`ListView`][] constructor works well for small lists. To...
website/src/cookbook/lists/long-lists.md/0
{ "file_path": "website/src/cookbook/lists/long-lists.md", "repo_id": "website", "token_count": 1156 }
1,264
--- title: Delete data on the internet description: How to use the http package to delete data on the internet. --- <?code-excerpt path-base="cookbook/networking/delete_data/"?> This recipe covers how to delete data over the internet using the `http` package. This recipe uses the following steps: 1. Add the `http...
website/src/cookbook/networking/delete-data.md/0
{ "file_path": "website/src/cookbook/networking/delete-data.md", "repo_id": "website", "token_count": 3396 }
1,265
--- title: An introduction to integration testing description: Learn about integration testing in Flutter. short-title: Introduction --- <?code-excerpt path-base="cookbook/testing/integration/introduction/"?> Unit tests and widget tests are handy for testing individual classes, functions, or widgets. However, they ge...
website/src/cookbook/testing/integration/introduction.md/0
{ "file_path": "website/src/cookbook/testing/integration/introduction.md", "repo_id": "website", "token_count": 2691 }
1,266
--- layout: toc title: Serialization description: Content covering serialization in Flutter apps. ---
website/src/data-and-backend/serialization/index.md/0
{ "file_path": "website/src/data-and-backend/serialization/index.md", "repo_id": "website", "token_count": 26 }
1,267
--- title: Build and release a web app description: How to prepare for and release a web app. short-title: Web --- During a typical development cycle, you test an app using `flutter run -d chrome` (for example) at the command line. This builds a _debug_ version of your app. This page helps you prepare a _release_ ver...
website/src/deployment/web.md/0
{ "file_path": "website/src/deployment/web.md", "repo_id": "website", "token_count": 2457 }
1,268
--- title: Flutter fundamentals description: Learn the basic building blocks of Flutter. prev: title: Learn more permalink: /get-started/learn-more next: title: Layouts permalink: /get-started/fwe/layout --- On this page, there are a few videos, articles, and a short tutorial that introduce many of the foundat...
website/src/get-started/fwe/fundamentals.md/0
{ "file_path": "website/src/get-started/fwe/fundamentals.md", "repo_id": "website", "token_count": 1287 }
1,269
## iOS setup ### Install Xcode To develop Flutter apps for iOS, you need a Mac with Xcode installed. 1. Install the latest stable version of Xcode (using [web download][] or the [Mac App Store][]). 1. To configure the Xcode command-line tools to use the installed version, run the following commands. ...
website/src/get-started/install/_deprecated/_ios-setup.md/0
{ "file_path": "website/src/get-started/install/_deprecated/_ios-setup.md", "repo_id": "website", "token_count": 4057 }
1,270
--- title: Choose your first type of app description: Configure your system to develop Flutter on macOS. short-title: macOS target-list: [Desktop, iOS, Android, Web] js: [{url: '/assets/js/temp/macos-install-redirector.js'}] --- {% assign os = 'macos' -%} {% assign recommend = 'iOS' %} {% capture rec-target -%} [{{...
website/src/get-started/install/macos/index.md/0
{ "file_path": "website/src/get-started/install/macos/index.md", "repo_id": "website", "token_count": 811 }
1,271
--- title: Flutter Favorite program description: Guidelines for identifying a plugin or package as a Flutter Favorite. --- ![The Flutter Favorite program logo](/assets/images/docs/development/packages-and-plugins/FlutterFavoriteLogo.png){:width="20%"} The aim of the **Flutter Favorite** program is to identify package...
website/src/packages-and-plugins/favorites.md/0
{ "file_path": "website/src/packages-and-plugins/favorites.md", "repo_id": "website", "token_count": 1177 }
1,272
--- title: "Binding to native Android code using dart:ffi" description: "To use C code in your Flutter program, use the dart:ffi library." --- <?code-excerpt path-base="development/platform_integration"?> Flutter mobile and desktop apps can use the [dart:ffi][] library to call native C APIs. _FFI_ stands for [_foreig...
website/src/platform-integration/android/c-interop.md/0
{ "file_path": "website/src/platform-integration/android/c-interop.md", "repo_id": "website", "token_count": 2206 }
1,273
--- layout: toc title: Platform integration description: > Content covering integration with different platforms in Flutter apps. ---
website/src/platform-integration/index.md/0
{ "file_path": "website/src/platform-integration/index.md", "repo_id": "website", "token_count": 31 }
1,274
--- title: Add Linux devtools for Flutter description: Configure your system to develop Flutter for Linux. short-title: Add Linux DevTools target-list: [Android, Web] --- To choose the guide to add Linux devtools to your Flutter configuration, click the [Getting Started path][] you followed. <div class="card-deck mb-...
website/src/platform-integration/linux/install-linux/index.md/0
{ "file_path": "website/src/platform-integration/linux/install-linux/index.md", "repo_id": "website", "token_count": 478 }
1,275
--- title: Add Web devtools for Flutter description: Configure your system to develop Flutter for Web. short-title: Add Chrome DevTools target-list: [windows-desktop, android-on-windows, linux-desktop, android-on-linux, macos-desktop, android-on-macos, ios-on-macos, android-on-chromeos] --- To choose the guide to add ...
website/src/platform-integration/web/install-web/index.md/0
{ "file_path": "website/src/platform-integration/web/install-web/index.md", "repo_id": "website", "token_count": 1026 }
1,276
--- title: Add Windows devtools to Flutter from Android start description: Configure your system to develop Flutter apps on Windows desktop. short-title: Starting from Android --- To add Windows desktop as a Flutter app target, follow this procedure. ## Install and configure Visual Studio 1. Allocate a minimum of 26...
website/src/platform-integration/windows/install-windows/install-windows-from-android.md/0
{ "file_path": "website/src/platform-integration/windows/install-windows/install-windows-from-android.md", "repo_id": "website", "token_count": 266 }
1,277
--- title: Deprecated API removed after v3.10 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.10 stable release have been removed. All affec...
website/src/release/breaking-changes/3-10-deprecations.md/0
{ "file_path": "website/src/release/breaking-changes/3-10-deprecations.md", "repo_id": "website", "token_count": 4117 }
1,278
--- title: Replace AnimationSheetBuilder.display with collate description: > AnimationSheetBuilder.display and sheetSize are deprecated in favor of collate. --- ## Summary The `AnimationSheetBuilder.display` and `sheetSize` methods are deprecated, and should be replaced with `AnimationSheetBuilder.collate`. ## C...
website/src/release/breaking-changes/animation-sheet-builder-display.md/0
{ "file_path": "website/src/release/breaking-changes/animation-sheet-builder-display.md", "repo_id": "website", "token_count": 1530 }
1,279
--- title: Updated `Checkbox.fillColor` behavior description: > Improved `Checkbox.fillColor` behavior applies the fill color to the background when the checkbox is unselected. --- ## Summary The `Checkbox.fillColor` is now applied to the checkbox's background when the checkbox is unselected. ## Context Previou...
website/src/release/breaking-changes/checkbox-fillColor.md/0
{ "file_path": "website/src/release/breaking-changes/checkbox-fillColor.md", "repo_id": "website", "token_count": 1073 }
1,280
--- title: Eliminating nullOk Parameters 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 the `nullOk` parameter on multiple `of` static accessors and related accessors to use alternate ...
website/src/release/breaking-changes/eliminating-nullok-parameters.md/0
{ "file_path": "website/src/release/breaking-changes/eliminating-nullok-parameters.md", "repo_id": "website", "token_count": 3922 }
1,281
--- title: Insert content text input client description: > Add a new method to the TextInputClient interface to allow Android virtual keyboards to insert rich content into Flutter TextFields. --- ## Summary Added an `insertContent` method to the `TextInputClient` interface to allow Android's image keyboard featu...
website/src/release/breaking-changes/insert-content-text-input-client.md/0
{ "file_path": "website/src/release/breaking-changes/insert-content-text-input-client.md", "repo_id": "website", "token_count": 714 }
1,282
--- title: Removing Notification.visitAncestor description: > Notifications only traverse ancestors that are notification listeners. --- ## Summary Notifications are more efficient by traversing only ancestors that are notification listeners. ## Context The notification API traversed the element tree in order to ...
website/src/release/breaking-changes/notifications.md/0
{ "file_path": "website/src/release/breaking-changes/notifications.md", "repo_id": "website", "token_count": 901 }
1,283
--- title: Route transition record and transition delegate updates description: > Changes to the rule on how transition delegate resolve route transition. --- ## Summary A new boolean getter `isWaitingForExitingDecision` was added to the route transition record and the `isEntering` getter was renamed to `isWaitingF...
website/src/release/breaking-changes/route-transition-record-and-transition-delegate.md/0
{ "file_path": "website/src/release/breaking-changes/route-transition-record-and-transition-delegate.md", "repo_id": "website", "token_count": 1637 }
1,284
--- title: TextSelectionTheme migration description: > The default properties for text selection are migrating to TextSelectionTheme. --- ## Summary The `ThemeData` properties that controlled the look of selected text in Material widgets have been moved into their own `TextSelectionTheme`. These properties include ...
website/src/release/breaking-changes/text-selection-theme.md/0
{ "file_path": "website/src/release/breaking-changes/text-selection-theme.md", "repo_id": "website", "token_count": 1078 }
1,285
--- title: Change log for Flutter 1.12.13 short-title: 1.12.13 change log description: Change log for Flutter 1.12.13 containing a list of all PRs merged for this release. --- ## PRs closed in this release of flutter/flutter From Sun Aug 19 17:37:00 2019 -0700 to Mon Nov 25 12:05:00 2019 -0800 [34188](https://githu...
website/src/release/release-notes/changelogs/changelog-1.12.13.md/0
{ "file_path": "website/src/release/release-notes/changelogs/changelog-1.12.13.md", "repo_id": "website", "token_count": 84214 }
1,286
--- title: Flutter 2.10.0 release notes short-title: 2.10.0 release notes description: Release notes for Flutter 2.10.0. --- This page has release notes for 2.10.0. For information about subsequent bug-fix releases, see [Hotfixes to the Stable Channel][]. [Hotfixes to the Stable Channel]: https://github.com/flutter/fl...
website/src/release/release-notes/release-notes-2.10.0.md/0
{ "file_path": "website/src/release/release-notes/release-notes-2.10.0.md", "repo_id": "website", "token_count": 215889 }
1,287
--- title: Flutter architectural overview description: A high-level overview of the architecture of Flutter, including the core principles and concepts that form its design. --- <?code-excerpt path-base="resources/architectural_overview/"?> This article is intended to provide a high-level overview of the architecture...
website/src/resources/architectural-overview.md/0
{ "file_path": "website/src/resources/architectural-overview.md", "repo_id": "website", "token_count": 13255 }
1,288
--- title: Debug Flutter apps from code description: How to enable various debugging tools from your code and at the command line. --- <?code-excerpt path-base="testing/code_debugging"?> This guide describes which debugging features you can enable in your code. For a full list of debugging and profiling tools, check ...
website/src/testing/code-debugging.md/0
{ "file_path": "website/src/testing/code-debugging.md", "repo_id": "website", "token_count": 9081 }
1,289
--- title: DevTools extensions description: Learn how to use and build DevTools extensions. --- ## What are DevTools extensions? [DevTools extensions](https://pub.dev/packages/devtools_extensions) are developer tools provided by third-party packages that are tightly integrated into the DevTools tooling suite. Extensi...
website/src/tools/devtools/extensions.md/0
{ "file_path": "website/src/tools/devtools/extensions.md", "repo_id": "website", "token_count": 501 }
1,290
# DevTools 2.15.0 release notes The 2.15.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 * The DevTools 2.15 release includ...
website/src/tools/devtools/release-notes/release-notes-2.15.0-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.15.0-src.md", "repo_id": "website", "token_count": 573 }
1,291
# DevTools 2.23.1 release notes The 2.23.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 * Update DevTools to the new Mater...
website/src/tools/devtools/release-notes/release-notes-2.23.1-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.23.1-src.md", "repo_id": "website", "token_count": 1653 }
1,292
# DevTools 2.28.4 release notes The 2.28.4 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.4-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.28.4-src.md", "repo_id": "website", "token_count": 275 }
1,293
# DevTools 2.8.0 release notes The 2.8.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 * Improvements for initial page load...
website/src/tools/devtools/release-notes/release-notes-2.8.0-src.md/0
{ "file_path": "website/src/tools/devtools/release-notes/release-notes-2.8.0-src.md", "repo_id": "website", "token_count": 1251 }
1,294
--- title: Accessibility description: Information on Flutter's accessibility support. --- Ensuring apps are accessible to a broad range of users is an essential part of building a high-quality app. Applications that are poorly designed create barriers to people of all ages. The [UN Convention on the Rights of Persons ...
website/src/ui/accessibility-and-internationalization/accessibility.md/0
{ "file_path": "website/src/ui/accessibility-and-internationalization/accessibility.md", "repo_id": "website", "token_count": 4198 }
1,295
--- title: Flutter's fonts and typography description: Learn about Flutter's support for typography. --- [_Typography_][] covers the style and appearance of type or fonts: it specifies how heavy the font is, the slant of the font, the spacing between the letters, and other visual aspects of the text. All fonts are _n...
website/src/ui/design/text/typography.md/0
{ "file_path": "website/src/ui/design/text/typography.md", "repo_id": "website", "token_count": 1608 }
1,296
--- title: Build a Flutter layout short-title: Layout tutorial description: Learn how to build a layout in Flutter. diff2html: true --- {% assign api = site.api | append: '/flutter' -%} {% capture examples -%} {{site.repo.this}}/tree/{{site.branch}}/examples {%- endcapture -%} {% assign rawExFile = '<https://raw.githu...
website/src/ui/layout/tutorial.md/0
{ "file_path": "website/src/ui/layout/tutorial.md", "repo_id": "website", "token_count": 7066 }
1,297
--- title: Painting and effect widgets short-title: Painting description: > A catalog of Flutter's widgets that provide effects and custom painting. --- {% include docs/catalogpage.html category="Painting and effects" %}
website/src/ui/widgets/painting.md/0
{ "file_path": "website/src/ui/widgets/painting.md", "repo_id": "website", "token_count": 58 }
1,298
// 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/args.dart'; import 'package:path/path.dart' as path; final bool _runningInCi = Platform.environment['CI'] == 'true...
website/tool/flutter_site/lib/src/utils.dart/0
{ "file_path": "website/tool/flutter_site/lib/src/utils.dart", "repo_id": "website", "token_count": 909 }
1,299
#include "Generated.xcconfig"
codelabs/adaptive_app/step_03/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_03/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
0
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/adaptive_app/step_03/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_03/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
1
#include "../../Flutter/Flutter-Release.xcconfig" #include "Warnings.xcconfig"
codelabs/adaptive_app/step_06/macos/Runner/Configs/Release.xcconfig/0
{ "file_path": "codelabs/adaptive_app/step_06/macos/Runner/Configs/Release.xcconfig", "repo_id": "codelabs", "token_count": 32 }
2
#include "Generated.xcconfig"
codelabs/animated-responsive-layout/step_03/ios/Flutter/Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_03/ios/Flutter/Release.xcconfig", "repo_id": "codelabs", "token_count": 12 }
3
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_03/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_03/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
4
include: ../../analysis_options.yaml
codelabs/animated-responsive-layout/step_06/analysis_options.yaml/0
{ "file_path": "codelabs/animated-responsive-layout/step_06/analysis_options.yaml", "repo_id": "codelabs", "token_count": 12 }
5
org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true
codelabs/animated-responsive-layout/step_07/android/gradle.properties/0
{ "file_path": "codelabs/animated-responsive-layout/step_07/android/gradle.properties", "repo_id": "codelabs", "token_count": 30 }
6
#import "GeneratedPluginRegistrant.h"
codelabs/animated-responsive-layout/step_07/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "codelabs/animated-responsive-layout/step_07/ios/Runner/Runner-Bridging-Header.h", "repo_id": "codelabs", "token_count": 13 }
7
#include "Generated.xcconfig"
codelabs/animated-responsive-layout/step_08/ios/Flutter/Debug.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_08/ios/Flutter/Debug.xcconfig", "repo_id": "codelabs", "token_count": 12 }
8
#include "ephemeral/Flutter-Generated.xcconfig"
codelabs/animated-responsive-layout/step_08/macos/Flutter/Flutter-Release.xcconfig/0
{ "file_path": "codelabs/animated-responsive-layout/step_08/macos/Flutter/Flutter-Release.xcconfig", "repo_id": "codelabs", "token_count": 19 }
9
export 'ball.dart'; export 'play_area.dart';
codelabs/brick_breaker/step_06/lib/src/components/components.dart/0
{ "file_path": "codelabs/brick_breaker/step_06/lib/src/components/components.dart", "repo_id": "codelabs", "token_count": 18 }
10
include: ../../analysis_options.yaml
codelabs/brick_breaker/step_09/analysis_options.yaml/0
{ "file_path": "codelabs/brick_breaker/step_09/analysis_options.yaml", "repo_id": "codelabs", "token_count": 12 }
11