1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
Eric Windmill
2999d738b8 Dart 3.9 / Flutter 3.35 [first LLM release] (#2714)
I got carried away with Gemini and basically rewrote CI and the release
process for the new LLM reality. This work was largely completed by
Gemini.

- Bump all SDK versions to the current beta (3.9.0-0)
- Run `flutter channel beta`
- Wrote `ci_script.dart` to replace the bash scripts
- Converted repository to pub workspace #2499 
- Added llm.md and release.md
- Added redirect for deprecated Samples Index

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).
2025-08-14 12:26:24 -07:00
Eric Windmill
fe4156713f Move experimental (#2680)
Removes the remaining samples in `experimental`. They're now in the
flutter/demos repository.

*List which issues are fixed by this PR. For larger changes, raising an
issue first helps
reduce redundant work.*

#2520 

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).
2025-07-08 10:25:41 -04:00
Kevin Moore
6cf81895d1 [material_3_demo] Refactor application code into multiple small libraries (#2581) 2025-02-18 09:41:16 -06:00
Thomas Anderl
3ae8c207ce Fixed hex color picker in material 3 demo (#2578)
This pull request fixes the problem where the color picker wasn't
handling hex values correctly.

Fixes #2577
2025-02-12 20:52:14 -08:00
Eric Windmill
719fd72c38 Flutter 3.29 beta (#2571) 2025-02-12 18:08:01 -05:00
Eric Windmill
f25adf4529 Flutter3.27 (#2483)
Updating samples for the next stable release
2024-12-11 14:34:29 -05:00
James Williams
bd09ba04f7 Adding copyright license to recently added files. Minor text label tweak. (#2450) 2024-09-26 07:33:51 +10:00
James Williams
a7df23f2ef Improve color display in M3 Demo (#2438)
- Added the color scheme schematic from Material Theme Builder aligning
how colors are displayed here and in documentation across Android and
Figma.
- On desktop, individual colors can be copied to the clipboard
- View adapts from the existing single column view to the new schematic
at 500dp width.

### Before:
<img width="1727" alt="Screenshot 2024-09-12 at 2 40 15 PM"
src="https://github.com/user-attachments/assets/37423d79-174a-4691-b0e1-8f18c947550a">


### After:


![mobile](https://github.com/user-attachments/assets/43a7bfbd-6217-4d3f-a1d6-902c99260905)


![Screenshot_20240912_144150](https://github.com/user-attachments/assets/48df7ad4-44a1-4802-8dac-06006dfb6bb1)

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[Discord]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md

---------

Co-authored-by: Eric Windmill <ewindmill@google.com>
2024-09-23 14:44:03 -04:00
Brett Morgan
8d208d7fd4 CI Fix, part #2 (#2423) 2024-09-01 17:25:33 +10:00
Qun Cheng
2fc80aae12 Flutter 3.24 update, Add CarouselView examples to demo 3 (#2377)
This PR is to include `CarouselView` to M3 demo app.


https://github.com/user-attachments/assets/7db76c06-aa7e-4461-9baa-51fd5c4e6b38



## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

---------

Co-authored-by: Eric Windmill <ewindmill@google.com>
2024-08-06 15:12:50 -04:00
Qun Cheng
649e0e4db9 Update ColorScheme to show the newly added color roles (#2299)
This PR is to fix #2289 and add newly added `ColorScheme` roles since
https://github.com/flutter/flutter/pull/144273

---------

Co-authored-by: Parker Lougheed <parlough@gmail.com>
2024-05-22 13:22:04 -05:00
Kevin Moore
a858f4701e Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292)
Also removed the web measurement experiment from the material 3 demo
2024-05-14 22:33:41 -07:00
Eric Windmill
3172aff8f8 Updates for 3.22 (#2266)
Updates for 3.22

---------

Co-authored-by: Brett Morgan <brettmorgan@google.com>
Co-authored-by: Qun Cheng <chengqunq@gmail.com>
Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
2024-05-14 10:37:24 -04:00
Kevin Moore
5b6d214d2a [material_3_demo] Use switch expressions (#2193) 2024-03-06 20:44:05 +01:00
Kevin Moore
e5f3bacaf8 [material_3_demo] bump min SDK, move time and date components together (#2192)
Add some icons
Fix component names
2024-03-06 11:03:13 -08:00
John Ryan
b05384a4a6 Add web_startup_analyzer to material_3_demo (#2152) 2024-02-01 06:04:47 -08:00
Qun Cheng
f741c8ff08 Remove extra parameter from BottomSheet (#2080)
This PR is to fix the warning which is mentioned in #2079

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.
2023-11-07 13:49:26 -06:00
Hrishikesh Kadam
49bc4d9d02 Add surfaceTint, outlineVariant, scrim and re-arrange (#2070)
Re-arrange colors according to [Baseline color scheme tokens]

[Baseline color scheme tokens]:
https://m3.material.io/styles/color/the-color-system/tokens#e26e130c-fa67-48e1-81ca-d28f6e4ed398

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2023-11-02 12:33:57 +10:00
Midori
e461787dc1 Reopen #1740 Fix dialog text (#1931) 2023-07-06 17:54:20 +08:00
Biso
51223a0efa Add null safety check before displaying SnackBar (#1866) 2023-06-03 16:48:09 +10:00
Kevin Moore
4f01fbb9c1 Material 3 demo: add tooltips to expanded color picker widgets (#1848) 2023-05-26 12:04:49 -07:00
Qun Cheng
13cf346c1f Update time picker to use 24-hour format (#1821) 2023-05-16 10:12:14 -07:00
Qun Cheng
1d6e5a0ece Use SliverList and cache content height (#1802) 2023-05-12 11:06:50 -07:00
Brett Morgan
36e7a6ab04 Update for Flutter 3.10 beta (#1746)
## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

---------

Co-authored-by: David Iglesias <ditman@gmail.com>
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com>
Co-authored-by: John Ryan <ryjohn@google.com>
2023-05-11 06:16:31 +10:00
Rydmike
faade5f486 FIX: https://github.com/flutter/samples/issues/1752 and https://githu… (#1753)
…b.com/flutter/samples/issues/1751

Fixes for:

The screen that shows Material elevation and row that says "Surface Tint
Color Only" has shadow and shown elevation dp is wrong.

FIX: https://github.com/flutter/samples/issues/1751
FIX: https://github.com/flutter/samples/issues/1752

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2023-05-02 14:44:23 +10:00
Pierre-Louis
79bd62952d Improvements to M3 demo app (#1647)
* improvements

* fix focus

* add comment

* add comment

* copy changes to root material_3_demo

* fix large breakpoint

* fix large breakpoint

* Create integration_test.dart

* refactor main.dart into home.dart and constants.dart

* add integration_test to pubspec

* copy to root material_3_demo

* remove removal of constraints

* address feedback
2023-02-14 19:18:36 +01:00
Brett Morgan
e1f3fb020e Revert "Improvements to M3 demo app (#1630)" (#1643)
This reverts commit 6207e34192.
2023-02-08 13:39:28 +01:00
Pierre-Louis
6207e34192 Improvements to M3 demo app (#1630) 2023-02-08 15:27:16 +10:00
Qun Cheng
0a9f7eae6c Update m3 demo in the base directory (#1615)
Co-authored-by: Qun Cheng <quncheng@google.com>
2023-01-31 17:39:18 -08:00
Brett Morgan
5401bb88b4 Flutter 3.7.0 (#1556)
* Update `simplistic_editor` for Flutter 3.4 beta

* Re-enable beta and master CI

* Disable on master

* Added sample code for using plugins and channels from background isolates.

* goderbauer feedback 1

* goderbauer feedback2

* goderbauer feedback 3

* Add `background_isolate_channels` to CI

* Enable beta CI

* Enable all `stable` CI projects

* `dart fix --apply`

* `print` -> `denugPrint`

* Make deps min version not pinned

* Drop `_isDebug`

* Remove unused import

* `dart format`

* Fixup `linting_tool`

* Fixup `form_app`

* Enable all `master` CI

* Basic fixes

* Patch `simplistic_editor`

* Fix nl at eol

* Comment out `simplistic_editor`

* Incorporating @bleroux's latest changes

* Clean up CI scripts

* Copy `experimental/material_3_demo` to top level

* Update `game_template`

* Update `animations`

* Update `desktop_photo_search`

* Update `flutter_maps_firestore`

* Update `form_app`

* Update `infinite_list`

* Update `isolate_example`

* Update `jsonexample`

* Update `navigation_and_routing`

* Update `place_tracker`

* Update `platform_channels`

* Update `platform_design`

* Update `provider_shopper`

* Fixup `context_menus`

* `dart format`

* Update the main `material_3_demo`

* Make `tool/flutter_ci_script_stable.sh` executable again

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Aaron Clarke <aaclarke@google.com>
2023-01-25 09:08:51 +10:00
xster
ce35e45702 add thumbnails to the books example to make memory leaks easier to test (#1353)
* add thumbnails to the books example to make memory leaks easier to test

* also add profile build

* migrate material 3 demo code to avoid warning

* Revert "migrate material 3 demo code to avoid warning"

This reverts commit 7df37d9f65.

* fix lints in various packages

* DoNothingAndStopPropagationIntent const conflicts between stable and beta, add lint ignore for now
2022-08-23 23:45:12 -07:00
Qun Cheng
dbefd89ca9 Added license headers for M3 demo app (#1328)
* Added header for all files

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-07-17 21:38:58 -07:00
Brett Morgan
58bc5d7a58 Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key`

* `flutter format`
2022-05-13 12:31:56 -07:00
Qun Cheng
52ef797b9a Made elements on component screen stay compact on wider screen, take 2 (#1267)
* Revert "Revert "Made elements on component screen stay compact on wider screen (#1258)" (#1266)"

This reverts commit 53c83adc71.

* ran flutter format for the changed files

* fixed test

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-05-12 17:28:32 -07:00
Brett Morgan
53c83adc71 Revert "Made elements on component screen stay compact on wider screen (#1258)" (#1266)
This reverts commit a9eaf1a733.
2022-05-13 08:41:34 +10:00
Qun Cheng
a9eaf1a733 Made elements on component screen stay compact on wider screen (#1258) 2022-05-13 06:44:37 +10:00
Brett Morgan
ccd68f34e2 Beta (#1234) 2022-05-11 12:48:11 -07:00
Qun Cheng
6694b00dae Added M3 demo app (#1189)
* Added M3 demo app

* Changed to use the centralized lint configuration.

* Moved the app at the root level

* Added to CI

* Added app to beta CI and commented app on stable CI file

* Update README.md

* Addressed comments

* fixed comments

* Reverted app name in CI files.

* Added project to the Pub Dependabot config

* Linting pass for current beta channel standards

Co-authored-by: Qun Cheng <quncheng@google.com>
Co-authored-by: Craig Labenz <craig.labenz@gmail.com>
2022-05-06 08:29:31 -07:00