1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
dependabot[bot] 1e2990c8cf Bump lints from 5.1.1 to 6.0.0 in /code_sharing/server (#2619)
Bumps [lints](https://github.com/dart-lang/core/tree/main/pkgs) from 5.1.1 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dart-lang/core/releases">lints's releases</a>.</em></p>
<blockquote>
<h2>package:lints v6.0.0</h2>
<ul>
<li><code>core</code>:
<ul>
<li>added <a href="https://dart.dev/lints/strict_top_level_inference">strict_top_level_inference</a> (<a href="https://redirect.github.com/dart-lang/core/issues/836">dart-lang/core#836</a>)</li>
</ul>
</li>
<li><code>recommended</code>:
<ul>
<li>added <a href="https://dart.dev/lints/unnecessary_underscores">unnecessary_underscores</a> (<a href="https://redirect.github.com/dart-lang/core/issues/856">dart-lang/core#856</a>)</li>
</ul>
</li>
<li>Require Dart 3.8.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="228112c086"><code>228112c</code></a> prep to publish 6.0.0 of package:lints (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/878">#878</a>)</li>
<li><a href="e32c7b96b9"><code>e32c7b9</code></a> Fix StreamGroup.broadcast() close() not completing when streams close. (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/876">#876</a>)</li>
<li><a href="af37fe54c3"><code>af37fe5</code></a> Adds <code>[Heap]PriorityQueue.of</code> constructor. (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/734">#734</a>)</li>
<li><a href="635dfa32c2"><code>635dfa3</code></a> [collection] explicitly make BoolList abstract interface (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/875">#875</a>)</li>
<li><a href="a6e81e0b74"><code>a6e81e0</code></a> Make URL strategy better at recognizing URLs. (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/873">#873</a>)</li>
<li><a href="61e677100b"><code>61e6771</code></a> Check for mandatory when using option (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/871">#871</a>)</li>
<li><a href="db610bb595"><code>db610bb</code></a> Adjust the implements clause of IntX (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/866">#866</a>)</li>
<li><a href="22d8879fcb"><code>22d8879</code></a> [package:lints] fix the changelog (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/867">#867</a>)</li>
<li><a href="9f43210084"><code>9f43210</code></a> add strict_top_level_inference to the core lint set (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/864">#864</a>)</li>
<li><a href="15c7fe9958"><code>15c7fe9</code></a> add unnecessary_underscores to recommended (<a href="https://github.com/dart-lang/core/tree/main/pkgs/issues/863">#863</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/dart-lang/core/commits/lints-v6.0.0/pkgs">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lints&package-manager=pub&previous-version=5.1.1&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
2025-05-21 06:45:58 +00:00
2025-02-13 03:33:57 +00:00
2025-02-12 18:08:01 -05:00
2025-03-05 08:50:05 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2023-11-14 07:02:36 +11:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2025-05-19 08:38:13 -07:00
2025-05-19 08:38:13 -07:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2022-05-28 07:01:26 +10:00
2022-05-10 15:08:43 +02:00
2018-06-08 14:36:44 -07:00

Flutter samples

Build Status

A collection of open source samples that illustrate best practices for Flutter.

Index

Quickstarts

  • asset_transformation - Demonstrates how to transform images' color scales and formats.
  • background_isolate_channels - Demonstrates how to use long-lived isolates.
  • code_sharing - Demonstrates how to share business logic between Flutter client and Dart server using package:shelf )
  • context_menus - This sample shows how to create and customize cross-platform context menus, such as the text selection toolbar on mobile or the right click menu on desktop.
  • desktop_photo_search - Demonstrates desktop features in both Material and FluentUI design systems.
  • dynamic_theme - A developer sample demonstrating how to call on-device Flutter APIs based on output from the Gemini API.
  • form_app - A sample demonstrating different types of forms and best practices.
  • game_template - (note: deprecated!) A starter game in Flutter with all the bells and whistles of a mobile (iOS & Android) game.
  • gemini_tasks - A developer sample written in Flutter demonstrating how to interact with a to-do list in natural language using the Gemini API.
  • google_maps - Demonstrates the Google Maps for Flutter plugin.
  • infinite_list - A Flutter sample app that shows an implementation of the "infinite list" UX pattern.
  • isolate_example - A sample application that demonstrate best practices when using isolates.
  • navigation_and_routing - A sample that shows how to use go_router API to handle common navigation scenarios.
  • place_tracker - A sample place tracking app that uses the google_maps_flutter plugin.
  • platform_design - This sample project shows a Flutter app that maximizes application code reuse while adhering to different design patterns on Android and iOS.
  • provider_counter - The starter Flutter application, but using package:provider to manage state.
  • provider_shopper - A Flutter sample app that shows a state management approach using package:provider.
  • simple_shader - A simple Flutter fragment shaders sample project.
  • simplistic_calculator - A calculator to demonstrate a simple start for a desktop Flutter app.
  • simplistic_editor - This sample text editor showcases the use of TextEditingDeltas and a DeltaTextInputClient to expand and contract styled ranges of text.
  • testing_app - A sample app that shows different types of testing in Flutter.
  • web_embedding - This directory contains examples of how to embed Flutter in web apps (without iframes).
    • element_embedding_demo - Modifies the index.html of a flutter app so it is launched in a custom hostElement. This is the most basic embedding example.
    • ng-flutter - A simple Angular app (and component) that replicates the above example, but in an Angular style.

Native platform samples

  • add-to-app - Collection of samples that demonstrate embedding Flutter a view into a native app.
    • fullscreen — Embeds a full screen instance of Flutter into an existing iOS or Android app.
    • prebuilt_module — Embeds a full screen instance of Flutter as a prebuilt library that can be loaded into an existing iOS or Android app.
    • plugin — Embeds a full screen Flutter instance that is using plugins into an existing iOS or Android app.
    • books — Mimics a real world use-case of embedding Flutter into an existing Android app and demonstrates using Pigeon to communicate between Flutter and the host application.
    • multiple_flutters — Shows the usage of the Flutter Engine Group APIs to embed multiple instances of Flutter into an existing app with low memory cost.
    • android_view — Shows how to integrate a Flutter add-to-app module at a view level for Android.
  • android_splash_screen
  • ios_app_clip
  • platform_channels - A sample app which demonstrates how to use MethodChannel, EventChannel, BasicMessageChannel and MessageCodec in Flutter.
  • platform_view_swift - A Flutter sample app that combines a native iOS UIViewController with a full-screen Flutter view.

Demo galleries

Demo apps

Flutter sample code

Samples are correct and concise code that developers can quickly understand and easily reuse with minimal side effects. Samples teach developers how to be successful using Flutter and Dart. They are maintained on an ongoing basis to reflect changing APIs and best practices.

Types of samples

There are two types of sample code in this repository:

  • Quickstarts provide a starting point to extend. They answer the question, "What is the minimal amount of code needed to implement this feature?"
  • Demo apps are meant to be built and ran. They demo the product, not how to write code.

A majority of samples in this repository are quickstarts.

Usage

Every sample in this repo is fully runnable. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

Important

If you want to run an add-to-app sample, there are additional requirements. We suggest reading the add-to-app documentation.

Tip: minimize download size

As this repository is quite big, you can use svn to download a single example. For example:

svn co https://github.com/flutter/samples/trunk/provider_shopper

You can also use a partial clone to skip blob objects that aren't currently checked out, while including the full commit history:

git clone --filter=blob:none https://github.com/flutter/samples.git

Interested in contributing?

See the contributor's guide!

Questions or issues?

If you have a general question about one of these samples or how to adapt its techniques for one of your own apps, try one of these resources:

If you run into a bug in one of the samples, please file an issue in the flutter/samples issue tracker.

Description
No description provided
Readme 1 GiB
Languages
Dart 71%
C++ 11.4%
CMake 8.7%
Kotlin 2.2%
Swift 1.9%
Other 4.8%